Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Need help on Overriding

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
Ashsih

New User


Joined: 20 Dec 2007
Posts: 16
Location: India

PostPosted: Tue Jan 29, 2008 10:26 am    Post subject: Need help on Overriding
Reply with quote

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
View user's profile Send private message
References
PostPosted: Tue Jan 29, 2008 10:26 am    Post subject: Re: Need help on Overriding Reply with quote

muthuvel

Active User


Joined: 29 Nov 2005
Posts: 178
Location: Chennai

PostPosted: Tue Jan 29, 2008 11:00 am    Post subject: Reply to: Need help on Overriding
Reply with quote

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
View user's profile Send private message
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

PostPosted: Thu Jan 31, 2008 11:09 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 6033
Location: 221 B Baker St

PostPosted: Thu Jan 31, 2008 11:21 pm    Post subject:
Reply with quote

Hello,

Either way should work. . .
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 160
Location: Deerfield IL

PostPosted: Thu Jan 31, 2008 11:41 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 6033
Location: 221 B Baker St

PostPosted: Fri Feb 01, 2008 12:38 am    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1