Most applications will use either HIST_COPY or HDX_RCOPY to copy the HISTORY from input to output file. They will then use HIST_ADD and then HIST_PTXT. Note that USI_INPNAME and USI_OUTNAME should be used to obtain the input and output file names as required.
At present HISTORY, the application, will display ANY component written to a HISTORY record. However, it is preferable to write all HISTORY comments and values into a CHARACTER*80 array, and to add this to the HISTORY record using HIST_PTXT.