[Default] On 2 Sep 2021 07:12:26 -0700, in bit.listserv.ibm-main [email protected] (Charles Mills) wrote: I have used
//SORTIN DD DSN=&&X,DISP=(OLD,PASS) //SORTOUT DD DSN=&&X<DISP=(OLD,PASS),VOL=REF=*.SORTIN I'm not certain what would happen if there were 2 separate concurrent OPEN OUTPUT statements to the same output file although I suppose if DISP=(SHR,PASS) they would work. Clark Morris >I would guess that by "fixed file" the OP means "a hard-coded DSN as opposed >to a system temp DSN." > >Can one allocate two DD's to the same temp dataset? Would the following work? >(Untested) > >//DD1 DD DISP=NEW,DSN=&FOO >//DD2 DD DDNAME=DD1 > >I have never done that. I have only used DDNAME= in the situation where I >wrote to that DD rather than the referred-to DD name. > >Charles > > >-----Original Message----- >From: IBM Mainframe Discussion List [mailto:[email protected]] On >Behalf Of Paul Gilmartin >Sent: Thursday, September 2, 2021 6:10 AM >To: [email protected] >Subject: Re: is it possible to allocate two dd to same temp file ? > >On Thu, 2 Sep 2021 01:00:11 -0500, Weizman arbel wrote: > >>i want to free one of them (sortout) >>and browse the file from the second dd. >>( At the moment i am alloc 2nd dd copy the first and free the first ) >>( I do not want a fixed file ) >> >> >Perform the first allocation with: > CALL BPXWDYN 'ALLOC RTDSN(D) RTVOL(V) ...' > >Reallocate with: > CALL BPXWDYN 'ALLOC DSN('D') VOL('V') ...' > >What do you mean by 'fixed file'? > >-- gil > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [email protected] with the message: INFO IBM-MAIN > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
