|
Answer» I am converting mainframe JCL to DOS batch files and need method of creating/using GDG file sets. Any help with this and other JCL conversion would be appreciated.There is no counterpart for a GDG on a PC. On a mainframe, a GDG DSN is in the format of basedsn.G000000V00; You can name a file on the PC with that format, but you cannot refer to it with relative generation numbers.
You could mimic a GDG but only with absolute dataset names.
For command line batch programs you would need a front-end script to determine the current generation DSN, generate the next generation DSN, and pass the PARAMETERS to the program. You would also need a back-end script to determine the oldest generation and then delete it.
For Windows programs, you could simply open the current generation, do your processing and then save the file as the next generation. You would also have to manually delete the oldest generation.
Job statements in JCL translate to the name of your batch file, but forget about any ACCOUNTING information.
Steplib and Joblib translate to either the PATH or the CD commands and will accomplish the same task (ie: pointing to the executable).
Exec statements translate to the executable program name as a line alone in the batch file. You can also pass arguments to the program this way.
DD statements simply don't exist on a PC and most of the DD parameters are meaningless to a PC anyway.
A lot of WORK for so little payoff. Good luck.
|