JCL for calling program



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL for calling program

Postby jvinoth » Fri Dec 09, 2011 11:38 am

Can anyone please tell me how to write JCL for calling subprogram..and give me the sample code too
jvinoth
 
Posts: 132
Joined: Fri Nov 18, 2011 3:13 pm
Has thanked: 0 time
Been thanked: 1 time

Re: JCL for calling program

 

Re: JCL for calling program

Postby expat » Fri Dec 09, 2011 1:05 pm

Explain exactly what you mean by calling a sub program. A program called from another program.

Please do not ask for code without first showing exactly what you have already tried yourself, besides, it is impossible for us to give you any JCL coding without all of the program(s) source code.
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: JCL for calling program

Postby dick scherrer » Fri Dec 09, 2011 1:06 pm

The jcl for a program that calls a subprogram should be the same as the jcl for executing a program that does no subprogram call (unless your system stores called programs in a different library.

If you are able to execute a stand-alone program in batch (via jcl) you already have what you need.

If you are not able to execute a stand-alone program, you need to post why not. Once we know where you might be stuck, someone can offer a suggestion.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: JCL for calling program

Postby jvinoth » Fri Dec 09, 2011 3:46 pm

i got the information...need to include the load library of that subprogram in JCL joblib or steplib ...thanks for all
jvinoth
 
Posts: 132
Joined: Fri Nov 18, 2011 3:13 pm
Has thanked: 0 time
Been thanked: 1 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post