View previous topic :: View next topic
|
Author |
Message |
satish1978
New User
Joined: 22 Jun 2006 Posts: 13 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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 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
New User
Joined: 22 Jun 2006 Posts: 13 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: 305 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 Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
|