I have a dataset that has been created dynamically from an FTP listing to merge files that were created by the FTP step. The contents of the dataset is like:
//SORTIN DD DISP=SHR,DSN=TEST.WK.FILE1.DAT
// DD DISP=SHR,DSN=TEST.WK.FILE2.DAT
// DD DISP=SHR,DSN=TEST.WK.FILE3.DAT
// DD DISP=SHR,DSN=TEST.WK.FILE4.DAT
Is it possible to use this dataset directly as input to another sort card so that the sortin is replaced by the contents of the dataset rather than the dataset itself? Basically, is there a way to override the SORTIN dataset with the contents of the dataset instead of the dataset.
(Is there an option other than to save this dataset as a PDS member and use INCLUDE option in the jcl)
It's difficult to understand what you're trying to do from your description.
If you have a data set that contain JCL statements and you want to include those JCL statements in a job to be executed, you could copy the JCL statements to the internal reader as part of a job to be executed.