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
 

 

DYNAMIC CALL a subpgm by specifying its name in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
satish1978

New User


Joined: 22 Jun 2006
Posts: 13
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

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
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

New User


Joined: 22 Jun 2006
Posts: 13
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: 305
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 Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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