IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DYNAMIC CALL a subpgm by specifying its name in JCL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 1436
Location: Bangalore,India

PostPosted: Wed Jan 09, 2008 12:18 pm
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
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
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

Superior Member


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

PostPosted: Wed Jan 09, 2008 10:58 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top