The input file has a record length of 80 FB (This will contain only detail records). I have another input file which has the date with format CCYYMMDD in the first position with record length 80 and FB.
My requirement is to add a header and trailer record as follows.
Or, to add when you've copied the code to generate the symbol/SYMNAMES:
//STEP0001 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
//SYMNAMES DD * replace this with your dsn and ditch the single line of data beneath
//SORTOUT DD SYSOUT=*
//SYSIN DD *