View previous topic :: View next topic
|
Author |
Message |
jilumudi_manohar
New User
Joined: 27 May 2009 Posts: 11 Location: Hyderabad
|
|
|
|
Hi,
Let me explain my issue.
I have a main progm which is calling Sub Program,While calling it is passing the JOBNAME to SUB PROGRAM.In SUB PROGRAM by using some CA7 scripts it is triggering the job in CA7.
Ex: CALL SUBPROGRAM(JOBNAME)
Now I got a requirement to remove the SUBPROGRAM and asked to replace that with JCL to demand the job in CA7.
Here I have a JCL commands to replace the SUB PROGRAM code.
Can any one Please tell me how to do this.
Thanks,
Manohar |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I would have thought that the answer would be exceptionally straight forward.
The PL/1 program generates the CA-7 control statement(s) and the JCL of the subsequent step invokes the required program to process those statements. |
|
Back to top |
|
|
jilumudi_manohar
New User
Joined: 27 May 2009 Posts: 11 Location: Hyderabad
|
|
|
|
Sorry I didn't get you .. Can you please elaborate ur words.
My requirement is .. needs to replace the CA7 scrits in the SUBPROGRAM with the new JCL and remove the SUBPROGRAM.
Thanks, |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
expat wrote: |
The PL/1 program generates the CA-7 control statement(s) |
The PL/1 program is used to generate the required CA-7 control statements. These statements are then written to a file which is passed to the next step of the batch job.
expat wrote: |
the JCL of the subsequent step invokes the required program to process those statements. |
This step reads the file created in the previous step and interfaces with CA-7 to trigger the required job.
Anything else ? |
|
Back to top |
|
|
jilumudi_manohar
New User
Joined: 27 May 2009 Posts: 11 Location: Hyderabad
|
|
|
|
Thanku for the info.
One curious question.
Can we pass the data from PL/1 to JCL?
Thanks, |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the concept has been told and repeated gazillions times
the only thing You can pass back to <JCL> is a numeric return code!
look at the relevant language manuals for the PLIRETC builtin |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
NO, not unless you wish to generate and submit a second job from the first job, which to my mind is a complete and utter waste of time given the current requirement. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Or write the data into a file in one step and read it form the file in the next. . . |
|
Back to top |
|
|
CyberKing
New User
Joined: 13 Sep 2007 Posts: 7 Location: Victoria,BC,Canada
|
|
|
|
I've implemented the similiar thing, my JCL need read a flat file whose name is changed daily, I put the file name into a RUNCNTL file, then in my PL/I code, I modify the file name --- hope this will help you ... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
hope this will help you ... |
After 2 years and 4 months, I suspect there's not a lot of help you are providing, CyberKing. |
|
Back to top |
|
|
|