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
 

 

Can we call JOB statement within COBOL program?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
kotaravindra

New User


Joined: 19 Feb 2004
Posts: 2

PostPosted: Fri Feb 20, 2004 11:41 am    Post subject: Can we call JOB statement within COBOL program?
Reply with quote

Hi,
Can any body tell me the procedure to call the JCL statements within the COBOL program.


Thanks & Regards
Ravindra
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Feb 21, 2004 11:20 pm    Post subject:
Reply with quote

Hi Ravindra,

Your ques is a bit confusing. One doesn't "CALL" Jcl from a COBOL pgm. I'm assuming you mean something else.

Do you want to start a Job from a COBOL pgm? If so, use the search facility using "INTRDR" or "internal reader" as your search argument. If not, please explain your intent.

Regards, Jack.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Mon Feb 23, 2004 9:52 pm    Post subject: job stmts thru cobol
Reply with quote

hi ravindra,

As jack said one can't call jcl stmts from cobol program.but it is possible to execute a set of jcl stmts from cobol pgm.

by using the following command we can do that:


EXEC CICS SPOOL WRITE(VAR-NAME)
END-EXEC.



VAR-NAME is a cobol host structure containing jcl stmts.

You can even submit a jcl thru cobol pgm.AFAIK we cant call jcl stmts.if iam wrong someone can correct me.


THANKS AND REGARDS
ANU
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Tue Feb 24, 2004 12:28 pm    Post subject:
Reply with quote

Hello,

As suggested by jack you could have searched for INTRDR,

Check out the following link for more details.

Also....please search before posting.

http://ibmmainframes.com/expertforum/viewtopic.php?t=132

Hope this helps,

Regards
Mayuresh Tendulkar
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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