View previous topic :: View next topic
|
Author |
Message |
Ashsih
New User
Joined: 20 Dec 2007 Posts: 29 Location: India
|
|
|
|
I have following line of code for concat,
//dd1 DD DSN=M1,
// DSN=M2,
// DSN=M3
I INTERVIEW I ASKED HOW TO OVERRIDE M2.
COULD U PLEASE HELP ME!!!! |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
In JCL please code as below,
Code: |
//dd1 DD DSN=M1,
// DSN=<Override which you want>,
// DSN=M3 |
Quote: |
I INTERVIEW I ASKED HOW TO OVERRIDE M2.
COULD U PLEASE HELP ME!!!! |
Please don't use CAPS. |
|
Back to top |
|
|
harikiran2001
New User
Joined: 02 Jan 2008 Posts: 4 Location: bang
|
|
|
|
If for example the folowing statements are under step STEP01 in the proc XYZ.
"
//STEP01 EXEC PGM=ijk
//dd1 DD DSN=M1,
// DSN=M2,
// DSN=M3
"
You should be overriding only the second DSN from the jcl something like this
STEP01 dd1 DSN=
DSN= <Override which you want>,
DSN= |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Either way should work. . . |
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
Maybe I am not understanding, but if you have a proc like:
Code: |
//XYZ PROC
//STEP01 EXEC PGM=...
//DD1 DD DSN=M1,DISP=SHR
// DD DSN=M2,DISP=SHR
// DD DSN=M3,DISP=SHR
|
Would not the way to over-ride only dsn M2 be:
Code: |
//STEP00 EXEC PROC=XYZ
//STEP01.DD1 DD
// DD DSN=DSN2 <OVERRIDE WHICH YOU WANT>
// DD |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Would not the way to over-ride only dsn M2 be: |
Well, from a "pure override" point of view, maybe.
If all 3 were named, it should still work. |
|
Back to top |
|
|
|