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

How can a cobol program can run a jcl?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rsm_deepak

New User


Joined: 06 Apr 2005
Posts: 30
Location: visakhapatnam

PostPosted: Tue Aug 01, 2006 12:56 pm
Reply with quote

I just want to know "To write a cobol pgm that run a jcl"....
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Aug 01, 2006 4:51 pm
Reply with quote

1. Use dynamic allocation to allocate a file to INTRDR. Write the JCL lines into this file, and then put the EOJ sign.

2. Allocate a member; Write the JCL lines into this member; Use TSO's SUBMIT to submit that member.

O.
Back to top
View user's profile Send private message
vijayakumar.yellala

New User


Joined: 19 Apr 2006
Posts: 63
Location: Chennai

PostPosted: Wed Aug 02, 2006 12:38 pm
Reply with quote

Hello,

can u please elaborate this....
Back to top
View user's profile Send private message
crrindia

Active User


Joined: 02 Jul 2005
Posts: 124
Location: Gurgaon

PostPosted: Wed Aug 02, 2006 1:49 pm
Reply with quote

Hi Can you please provide us a sample code for this.

Thanks!
Rathna.
Back to top
View user's profile Send private message
syntelraj
Warnings : 1

New User


Joined: 28 Jul 2006
Posts: 10
Location: Pune

PostPosted: Thu Aug 03, 2006 2:21 pm
Reply with quote

You have to simply write the all the JCL staments into SYSOUT or output file in both the cases the output file or SYSOUT will be INTRDR i.'e internal reader.
if you are using the SYSOUT then write the staments using DISPLAY statment or if you are using as a file of 80 character length then use WRITE statement to write the JCL statements into INTRDR.

In RUNJCL code the following statement. ( either ).
//SYSOUT DD SYSOUT=(A,INTRDR) use DISPLAY statement
or
//OUTJOB DD SYSOUT=(A,INTRDR) use WRITE statement.

Hope I have answered your question.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top