View previous topic :: View next topic
|
Author |
Message |
kapiltamrakar
New User
Joined: 24 May 2009 Posts: 41 Location: Hyderabad
|
|
|
|
Hi all,
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.
Please give me any suggestion.
Regards,
Kapil. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Place all of the member names of the source code in a member (or other file).
Create a process that will read this and will generate the compile jcl for each member.
Submit the created jcl. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Create a procedure. In the proc use a variable for the program name.
Then you will need only one line for each program compile:
Code: |
//XXX EXEC yourproc,PROG=prog1
//XXX EXEC yourproc,PROG=prog2
//XXX EXEC yourproc,PROG=prog3 |
and so on |
|
Back to top |
|
|
kapiltamrakar
New User
Joined: 24 May 2009 Posts: 41 Location: Hyderabad
|
|
|
|
Hi All,
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.
Thanks in Advance.
Regards,
Kapil |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If i was creating a process to make my life easier, i would not restrict myself to using only utilities. . .
I would write a bit of actual code in a language i knew well so it would only take very little time and would be easily cloned for some similar requirement when one was needed. . . |
|
Back to top |
|
|
|