|
|
| Author |
Message |
satish1978 Warnings : 2 New User
Joined: 22 Jun 2006 Posts: 16 Location: mumbai
|
|
|
|
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 |
|
 |
References
|
Posted: Wed Jan 09, 2008 11:22 am Post subject: Re: DYNAMIC CALL a subpgm by specifying its name in JCL |
 |
|
|
 |
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1460 Location: Bangalore,India
|
|
|
|
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 |
|
 |
satish1978 Warnings : 2 New User
Joined: 22 Jun 2006 Posts: 16 Location: mumbai
|
|
|
|
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 |
|
 |
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 173 Location: Deerfield IL
|
|
|
|
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 |
|
 |
Anuj D.
Senior Member
Joined: 22 Apr 2006 Posts: 1251 Location: Mumbai, India
|
|
| Back to top |
|
 |
|
|