| Author |
Message |
Ashsih
New User
Joined: 20 Dec 2007 Posts: 16 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 |
|
 |
References
|
Posted: Tue Jan 29, 2008 10:26 am Post subject: Re: Need help on Overriding |
 |
|
|
 |
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 178 Location: Chennai
|
|
|
|
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 |
|
 |
Moved: Tue Jan 29, 2008 3:54 pm by superk From JCL to Interview Questions |
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
Global Moderator
Joined: 23 Nov 2006 Posts: 6033 Location: 221 B Baker St
|
|
|
|
Hello,
Either way should work. . . |
|
| Back to top |
|
 |
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 160 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
Global Moderator
Joined: 23 Nov 2006 Posts: 6033 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
|
|