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
 

 

How to pass data from PL/1 to JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
jilumudi_manohar

New User


Joined: 27 May 2009
Posts: 8
Location: Hyderabad

PostPosted: Wed Oct 06, 2010 5:36 pm    Post subject: How to pass data from PL/1 to JCL?
Reply with quote

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

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 06, 2010 5:43 pm    Post subject:
Reply with quote

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

New User


Joined: 27 May 2009
Posts: 8
Location: Hyderabad

PostPosted: Wed Oct 06, 2010 6:13 pm    Post subject:
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 06, 2010 6:22 pm    Post subject:
Reply with quote

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

New User


Joined: 27 May 2009
Posts: 8
Location: Hyderabad

PostPosted: Wed Oct 06, 2010 6:28 pm    Post subject:
Reply with quote

Thanku for the info.

One curious question.

Can we pass the data from PL/1 to JCL?

Thanks,
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Wed Oct 06, 2010 6:30 pm    Post subject: Reply to: How to pass data from PL/1 to JCL?
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 06, 2010 6:30 pm    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Wed Oct 06, 2010 8:51 pm    Post subject:
Reply with quote

Hello,

Or write the data into a file in one step and read it form the file in the next. . .
Back to top
View user's profile Send private message
CyberKing

New User


Joined: 13 Sep 2007
Posts: 6
Location: Victoria,BC,Canada

PostPosted: Thu Jan 31, 2013 10:19 pm    Post subject: an alternative way
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jan 31, 2013 11:40 pm    Post subject:
Reply with quote

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

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 0 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 8 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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