Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Dummy a dataset while picking other concatenated datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
hailashwin

New User


Joined: 16 Oct 2008
Posts: 73
Location: Boston

PostPosted: Thu Aug 21, 2014 1:54 pm    Post subject: Dummy a dataset while picking other concatenated datasets
Reply with quote

Hi,
Consider an ideal situation where I have a step in a proc using 255 datasets(PS) in concatenation. If I have to ignore only the 3rd dataset in concatenation while still picking the rest of the 254 datasets for processing from my JCL, how would I do it?

One round about way, but relatively easier way I see is to create an empty dataset and override it as below.
Code:

//STEP010.XXX   DD                             
//         DD                                     
//         DD DSN=MY.EMPTY.FILE,DISP=SHR


But would like to know if there would be any other way of doing it without me having to unnecessarily create an empty file nor specify all of my concatenated datasets in my Jcl during the override?

Thanks,
Ashwin.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Aug 21, 2014 2:11 pm    Post subject: Reply to: Dummy a dataset while picking other concatenated d
Reply with quote

As far as I know for standard io there is no other way to do it than you have shown. The "trap" in an Interview Question is that if you DUMMY/NULLFILE it you get EOF at that point and 4th-and-onwards don't get read...
Back to top
View user's profile Send private message
hailashwin

New User


Joined: 16 Oct 2008
Posts: 73
Location: Boston

PostPosted: Thu Aug 21, 2014 5:15 pm    Post subject:
Reply with quote

Thanks for your thought, Bill icon_smile.gif
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us