View previous topic :: View next topic
|
Author |
Message |
markanthos
New User
Joined: 28 Apr 2005 Posts: 14 Location: India
|
|
|
|
ASSUME in a JCL :
//prog exe pgm=prog1
In case of COBOL program :
PROGRAM-ID. PROG1.
PDS has a member with the name PROG1
Will the execution of the JCL refer to the program ID of the COBOL or the name of the member of PDS in the dataset? |
|
Back to top |
|
|
gnagakishore
New User
Joined: 26 Mar 2005 Posts: 25 Location: Hyderabad
|
|
|
|
markanthos wrote: |
ASSUME in a JCL :
//prog exe pgm=prog1
In case of COBOL program :
PROGRAM-ID. PROG1.
PDS has a member with the name PROG1
Will the execution of the JCL refer to the program ID of the COBOL or the name of the member of PDS in the dataset? |
it refers name of the member of pds in the dataset. |
|
Back to top |
|
|
narasimharao_koganti
New User
Joined: 26 Apr 2005 Posts: 11 Location: pune
|
|
|
|
hi, regardless of the name in the progaram_id, during execution of the Jcl it will refer to the dataset name. |
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Hi,
Correct me if I am wrong, exec pgm=prog1 will execute the load module
present with the name prog1 that too present in joblib or steplib.
regards,
David. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
i totaly agree with david.
it never checks from where the job is taken..for JES jcl will just act as sequence of command which will be read by internal reader of JES.then it will try to find the program name mentioned in the given steplib or joblib...
PDS where job is present doesn't play any role while executing that job.
correct me if i m wrong |
|
Back to top |
|
|
|