Have you tried adding FREE=CLOSE to the dataset?
The FREE parameter indicates when MVS is to free the resource(s)      
allocated to this DD statement.  The resource(s) can be device(s),    
volume(s), or data set(s).                                            
                                                                      
FREE=CLOSE is ignored when:                                               
                                                                          
-   The data set is a member of a concatenated group.                     
                                                                          
-   The task using the data set abnormally terminates.                    
                                                                          
-   The data set is referenced by another DD statement in the same or     
    subsequent step.  

Lizette
                                                    


><snip>
>To have a comparable test you would need a 3rd step that referenced that
>same data set (or a DD for that data set in the 2nd step).  With your 
>simple
>two-step approach, the system dropped the ENQ after the first step because
>no later step needed it.

>
>That's the part that I missed or missed that thread. I assumed that if the 
>dsn was able to be renamed in step 2, it wasn't used in further steps. 
>This is what I attempted to imply with 'with catalog as the disposition'. 
>Obviously I didn't do too well.
>
>><unsnip>

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

Reply via email to