Posted: Thu Jul 01, 2010 11:48 am Post subject: Dynamic Input files in a JCL
Hello
In one of my project, I need to find existing datasets , and feed that as input file into a program for a report generation.
I was able to create the list of datasets using the LISTCAT LEVEL command
Then I tried to include this tem file using the INCLUDE command.
But JCL is not working because I can't do INCLUDE using a temp file.
I tried to write this to a PDS member, but still in the same job, i can't execute these two steps. Looks like I have to split this into two jobs.
Is there any way I can do this task in a single job?
Thanks
Jimmy
Thanks Kolusu,
Two problems here.
1. We don't have DFSORT. We use Syncsort. But the link above is excellent and thanks a lot for that.
2. We use Jobtrac scheduler. Although dynamically writting jobs to the scheduler is possible, it is very difficult to break our corporate techinical standards !!!-
If there is no other options, I might have to go for two jobs.
Thanks
JA
Well, did you try to work-upon the logic that is described there in the link? It might or might not work based upon the version of SyncSort your shop is using - but if you try that, you'll come to know what the error is - and from there you can think on any further appraoch, if needed. _________________ Regards,
Anuj
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Fri Jul 02, 2010 9:00 am Post subject:
Jamylady wrote:
2. We use Jobtrac scheduler. Although dynamically writting jobs to the scheduler is possible, it is very difficult to break our corporate techinical standards !!!-
If you need the easier route then code 2 jobs or you can code a cobol program to dynamically invoke IDCAMS and then dynamically allocate the files.
Check this link which has an example of Cobol calling IDCAMS.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum