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:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Paul Gilmartin
Sent: Thursday, September 2, 2021 6:10 AM
To: IBM-MAIN@LISTSERV.UA.EDU
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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to