hi. I'm using a PARM statement and symbols to create a dynamic report heading using ICETOOL. See below JCL, cards, and error message and see if you can tell what I'm doing wrong. I don't see any problem with this - looks just like the manual to me. We're using DFSORT V1R10. Thanks
Then, doing a COPY, and identifying which sort of record you have, generate one of however many SYMNAMES/SYMBOLS you need, Put those to the SORTOUT.
Change your existing step to include //SYMNAMES DD .. with the SORTOUT dsn from the previous step, and //SYMNOUT DD SYSOUT=whatever is your standard.
Include the SYMNAMES you have generated into your code.
You can even call the generated symnames JPn. You won't have to change the code when you get the upgrade, except to drop out the bit with the generated symbols/symnames. OK, not really a good idea as it will crash your production job... call them something else :-)
There are examples of generating symnames if you search here.
//STEPSYM EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD * (you'd have your chosen arrangement to allow parameterisation here)
SITE AAAA AA
//SORTOUT DD DSN=&&S1,DISP=(,PASS),SPACE=(TRK,(1,0),RLSE)
//SYSIN DD * (I hope this would be a PDS as well)
SITE,C'AAAA AA '
EDIT: Yes, you can get your annotations in there as well.
Thanks Bill. I think I'll use this approach since my Systems folks just informed me that it might be months before we do another IPL. I've used Symbols like this before, too. I just thought it would be really slick to utilize JCL symbolics.