View previous topic :: View next topic
|
Author |
Message |
gayathrivenkatachalam
New User
Joined: 16 Apr 2005 Posts: 5 Location: india
|
|
|
|
hi,
i have a jcl query
The requirement is as follows,
*************************************************************
1. I can have up to 5 nos. of input datasets
(I know the actual name of all the five input datasets but not sure about how many files are actually existing)
*************************************************************
now i have written a cobol program which will create one output dataset for each input dataset.
My run jcl is having 5 steps with the same program being executed in each step. the only difference is that the DSN of the input and the output datasets is going to change in each step.
Here are the Issues,
1.is there a way of looping the program instead of having 5 steps to run the same program and dynamically changing the file names?
2.also suppose i have only 3 input datasets which are actually present and i need to execute only the corresponding steps which use the particular datasets as input. How to handle this situation? |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
HI,
Quote: |
.is there a way of looping the program instead of having 5 steps to run the same program and dynamically changing the file names? |
As per my knowledge, it is not possible thru JCL.
Regards
Rupesh |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
gayathrivenkatachalam wrote: |
1.is there a way of looping the program instead of having 5 steps to run the same program and dynamically changing the file names? |
Yes. Search the forums for examples of calling the BPXWDYN program.
gayathrivenkatachalam wrote: |
2.also suppose i have only 3 input datasets which are actually present and i need to execute only the corresponding steps which use the particular datasets as input. How to handle this situation? |
Again, search the forums. There are many examples of how to check for non-existing datasets using the IDCAMS program. |
|
Back to top |
|
|
|