View previous topic :: View next topic
|
Author |
Message |
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
Hi All... ,
I need concept on below.
Job
EXEC prcA
STEP3.INFILE DD DSN = XYZ.JF1
....
prcA
..
..
STEP3 exec pgm=pgmA
infile DD DSN = XYZ.PF1
...
The above code overrides XYZ.PF1 file in proc by XYZ.JF1 file in job.
Now my proc has below concatenated DDs
prcA
..
..
STEP3 exec pgm=pgmA
infile DD DSN = XYZ.PF1
DD DSN =XYZ.PF2
DD DSN =XYZ.PF3
the requirement is i need to override only file XYZ.PF2 in proc through JOB.
Please let me know the concept on this. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What do you think that you should do.
What have you tried so far to learn for yourself.
What were the results that have caused your concerns. |
|
Back to top |
|
|
Mukesh Pandey
Active User
Joined: 11 Nov 2008 Posts: 143 Location: India
|
|
|
|
expat..
as per my understanding below override in job should work. its too dificult to compile our own pgm in our project as it causes concern hence i did not try it but need to know for my own understanding
Job
EXEC prcA
STEP3.INFILE DD DSN = DUMMY
DD DSN = XYZ.JF2
DD DSN = DUMMY
....
Please correct me if i am wrong. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
To perform a simple test, you do not have to compile a program, pass go, or collect £200.
All you need is a simple instream PROC using IEBGENER with 3 simple input files, and then you can very easily test and verify the results of what you have coded. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
There is a manuals link on this page. Click it, find the JCL Language Reference manual, and read section 5.2.1.2 to find out how concatenated overrides work (hint: your code won't do what you think it will). |
|
Back to top |
|
|
|