I am trying to create a job which can compile many program at a time.
My requirement is below.
I am having a compile JCL. Each time we just change the program name and submit the job. I would like to automate this process by having all the programs in PDS as member and the job can read all the members and submit the compile jcl for all the members one by one.
Thank you Dick and Marso for your reply,
Marso the way you suggested will not work in my case because I want to automate this process, but in your way I will always need to modify the jcl steps which is containing the program names, and calling the PROC.
Dick, As per your suggestions I am following the below procedure for accomplish my task.
1) PDS1 contained all the programs as members to be compiled, so I am listing that PDS1 members on a PS1 file.
2) Now I am splitting the PS1 file (as a different members of PDS2 by IEBGENER GENERATE Utility) for separating the member name from the PS1 file as I will need the name of the program which I need to compile.
3) Now I am copying the PDS2 member which contains the member names, into a PS2 file.
4) I am having the compile jcl in PS3 file which is used in my organization for compiling the programs.
Till This point I have completed my work, but now following problem I am facing,
I want to replace the member name present in PS3 file with the first member name present in PS2 file. For doing the same , I am having following options,
a) By using FINDREP we can replace the member name present in PS3 file from the member name present in PS2 file. For doing the same I am trying to get syntax, but till now, I didn’t get it.
b) By using OVERLAY, we can put the member name in the PS3 jcl , but when I tried for putting member name depending upon the collum no, it is appearing on all the rows, on the same collum. For avoiding this I am also trying to find the syntax for using OVERLAY for first place only in PS3 file.
After changing the member name in PS3 file, I will submit the job by INTRDR.
Please help me for accomplishing the above task, and please let me know if I am going to a complex way. Also suggest me any alternate way for doing the above task.