Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> Mainframe Interview Questions
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    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

muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
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
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

Site Director


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

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: 305
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

Site Director


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

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL overriding concept s.saranya srinivasan JCL & VSAM 14 Wed Oct 07, 2015 4:07 pm
No new posts Overriding the default Code page rikdeb PL/I & Assembler 2 Fri Aug 09, 2013 12:12 am
No new posts Overriding SYSOUT of IKJEFT01 to a da... enrico-sorichetti IBM Tools 8 Sun Apr 07, 2013 5:19 am
No new posts Overriding dd statements in cataloged... Harsha1525 JCL & VSAM 15 Thu Jul 26, 2012 3:04 pm
No new posts Overriding DSN1 and DSN2 names in DMB... vishalbshah All Other Mainframe Topics 4 Fri Sep 23, 2011 5:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us