Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
DYNAMIC CALL a subpgm by specifying its name in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
satish1978
Warnings : 2

New User


Joined: 22 Jun 2006
Posts: 16
Location: mumbai

PostPosted: Wed Jan 09, 2008 11:22 am    Post subject: DYNAMIC CALL a subpgm by specifying its name in JCL
Reply with quote

Hi,


I want some sample program and jcl how i can call subprgram dynamically what i specified in jcl and what i specified in mainprgram and
subprogram.

Please provide me some sample prgram and jcl .
Back to top
View user's profile Send private message
References
PostPosted: Wed Jan 09, 2008 11:22 am    Post subject: Re: DYNAMIC CALL a subpgm by specifying its name in JCL Reply with quote

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1483
Location: Bangalore,India

PostPosted: Wed Jan 09, 2008 12:18 pm    Post subject:
Reply with quote

Satish,

Quote:
I want some sample program and jcl how i can call subprgram dynamically what i specified in jcl and what i specified in mainprgram and
subprogram.

You mean to say you would like to pass the SUBPROG name from JCL.
Back to top
View user's profile Send private message
satish1978
Warnings : 2

New User


Joined: 22 Jun 2006
Posts: 16
Location: mumbai

PostPosted: Wed Jan 09, 2008 12:59 pm    Post subject: i want some example
Reply with quote

yes i want some example of program static and dynamic cobol calling pgm
what i specified in cobol and what i specified in jcl
in jcl i know it specified
DYNAM or NODYNAM option
where i can specified in JCL
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 177
Location: Deerfield IL

PostPosted: Wed Jan 09, 2008 9:42 pm    Post subject:
Reply with quote

If the main program has:
CALL 'subprog' USING ...
The program usually uses a static call.
This also depends on the link options used.

If the main program has:
01 subprog-name PIC X(7) VALUE 'SUBPROG'
CALL subprog-name USING ...
The program uses a dynamic call.

No change is needed to the execution JCL, except in a dynamic call the called subprogram must be in the steplib or joblib.
Back to top
View user's profile Send private message
Anuj D.

Senior Member


Joined: 22 Apr 2006
Posts: 1345
Location: Mumbai, India

PostPosted: Wed Jan 09, 2008 10:58 pm    Post subject:
Reply with quote

Check this link.
And this link.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1