Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Single JCL for compiling many program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kapiltamrakar

New User


Joined: 24 May 2009
Posts: 41
Location: Hyderabad

PostPosted: Fri May 07, 2010 10:28 am    Post subject: Single JCL for compiling many program
Reply with quote

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
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 07, 2010 10:34 am    Post subject:
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Fri May 07, 2010 7:32 pm    Post subject:
Reply with quote

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
View user's profile Send private message
kapiltamrakar

New User


Joined: 24 May 2009
Posts: 41
Location: Hyderabad

PostPosted: Thu May 13, 2010 2:35 am    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 13, 2010 7:57 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us