View previous topic :: View next topic
|
Author |
Message |
kotaravindra
New User
Joined: 19 Feb 2004 Posts: 2
|
|
|
|
Hi,
Can any body tell me the procedure to call the JCL statements within the COBOL program.
Thanks & Regards
Ravindra |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
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 |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
Back to top |
|
|
|