IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to pass data from PL/1 to JCL?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jilumudi_manohar

New User


Joined: 27 May 2009
Posts: 11
Location: Hyderabad

PostPosted: Wed Oct 06, 2010 5:36 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Oct 06, 2010 5:43 pm
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: 11
Location: Hyderabad

PostPosted: Wed Oct 06, 2010 6:13 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Oct 06, 2010 6:22 pm
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: 11
Location: Hyderabad

PostPosted: Wed Oct 06, 2010 6:28 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 06, 2010 6:30 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Oct 06, 2010 6:30 pm
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

Moderator Emeritus


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

PostPosted: Wed Oct 06, 2010 8:51 pm
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: 7
Location: Victoria,BC,Canada

PostPosted: Thu Jan 31, 2013 10:19 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Jan 31, 2013 11:40 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top