View previous topic :: View next topic
|
Author |
Message |
Amit Goswami
New User
Joined: 06 Jul 2005 Posts: 11 Location: India
|
|
|
|
I am confused.. Situation i like that
1. I have a JCL
2. JCL executes a program pgm-a
3. pgm-a call another program pgm-b
I need to add file pgm-b. I did like this. I added all File Control and descrrption in pgm-b and declared that file in JCL. I am little bit confused since JCL is executing pgm-a.
Am i right? If not, what should be correct approach. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
... ..agree, sentence construction of your post shows this.. . But this
Quote: |
I added all File Control and descrrption in pgm-b and declared that file in JCL. I am little bit confused since JCL is executing pgm-a. |
is prefectly right. Hopefully Clouds of confusion are fading away.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I am little bit confused since JCL is executing pgm-a. |
There will be one EXECution per step. Regardless of which module uses a dataset, the DD statement for that dataset will follow the EXEC.
You have done this correctly. |
|
Back to top |
|
|
|