IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need help on Overriding


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ashsih

New User


Joined: 20 Dec 2007
Posts: 29
Location: India

PostPosted: Tue Jan 29, 2008 10:26 am
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
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Tue Jan 29, 2008 11:00 am
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
harikiran2001

New User


Joined: 02 Jan 2008
Posts: 4
Location: bang

PostPosted: Thu Jan 31, 2008 11:09 pm
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 31, 2008 11:21 pm
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: 305
Location: Deerfield IL

PostPosted: Thu Jan 31, 2008 11:41 pm
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Feb 01, 2008 12:38 am
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts DFSORT - Overriding default option TU... DFSORT/ICETOOL 3
No new posts Overriding PS data in rexx CLIST & REXX 8
No new posts JCL overriding concept JCL & VSAM 14
No new posts Overriding the default Code page PL/I & Assembler 2
Search our Forums:

Back to Top