You will read FILE01.  The DUMMY forces EOF at that point.

Christopher Y. Blaicher
Senior Software Developer
Austin Development Lab

phone: 512.340.6154
mobile: 512.627.3803
fax: 512.340.6647

10431 Morado Circle 
Austin, TX 78759




-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of 
Quasar Chunawalla
Sent: Tuesday, March 08, 2011 8:45 AM
To: IBM-MAIN@bama.ua.edu
Subject: Re: QSAM concatenation where the first DD is DUMMY?

Well, what if I code this -

//DDO1 DD DSN=FILE01,DISP=SHR
//          DD DUMMY
//          DD DSN=FILE03,DISP=SHR

Does the whole thing get dummied out like before?

Thank you very much,

Quasar chunawalla

Sent on my BlackBerry® from Vodafone

-----Original Message-----
From: J R <jayare...@hotmail.com>
Sender: IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu>
Date:         Tue, 8 Mar 2011 09:35:38 
To: <IBM-MAIN@bama.ua.edu>
Reply-To: IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu>
Subject: Re: QSAM concatenation where the first DD is DUMMY?


You could maybe set up a single empty dataset, say, SYS1.NULLFILE 
or SYS1.DUMMY, that could be used by any job, and refer its DCB 
to the original dataset that you are nullifying.  For example:  

// DD DSN=ORIGINAL.FILE,DISP=SHR  

   becomes   

// DD DSN=SYS1.NULLFILE,DCB=ORIGINAL.FILE,DISP=SHR  

so you just have to insert "SYS1.NULLFILE,DCB=" after "DSN=".  

 
 
> Date: Tue, 8 Mar 2011 06:42:20 -0700
> From: st...@trainersfriend.com
> Subject: Re: QSAM concatenation where the first DD is DUMMY?
> To: IBM-MAIN@bama.ua.edu
> 
> On 3/7/2011 10:36 PM, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) wrote:
> > Would the effect be the same with DSN=NULLFILE ?
> 
> Yes.
> 
> I wish I could test; but, I
> > do not have access to a z system these days. The manuals seem to convey
> > NULLFILE and DUMMY do not differ.
> >
> > Of course, one can actually allocate an empty dataset in ISPF 3.2 and then
> > provide this name in the override. ;-)
> 
> Well, you can also allocate an empty dataset in a prior
> job step, no need to use ISPF. But, unless you are using
> SMS for this allocation, the file will not have an end
> of data indicator, so in the step where you try to
> reference this empty file for input, it will likely fail
> with an abend.
> 
> So, it's a little more complicated. Of course you could
> create an empty file, edit it, including deleting all
> the lines, then exit. Then use that file in multiple
> jobs that use input files with the same DCB attributes.
> 
> 
> > <snippage>
> 
> -- 
> 
> Kind regards,
> 
> -Steve Comstock
> The Trainer's Friend, Inc.
                                          

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to