IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Unalloc a Dataset which is open


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Sat May 10, 2008 9:29 am
Reply with quote

Hi ALL,

I tried FREE DA('ABC') ...but iam unable to unalloc it because that dataset was open .

But my requirement is to unalloc it , is there any way to overcome this situation ..without logging off from the session

Thx
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat May 10, 2008 12:22 pm
Reply with quote

What are you using the dataset for ???
Back to top
View user's profile Send private message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Sat May 10, 2008 12:39 pm
Reply with quote

Hi,

My actual problem is, Iam invoking a Rexx exec thru another Rexx.

Rexx1 --> Executes Rexx 2 . In rexx2 iam allocating a lib to sysexec and now it is allocated.

When iam trying to execute again the Rexx1--> executes rexx2 .. here the problem occurs .. it is again trying to allocate one more .. time ...As the lib was already allocated ,it fails to allocate again. I tried Free that dataset before it allocates . but it says it was open unable to unallocate the dataset . Is there any way to handle the open dataset and to by pass this particular allocation when it is trying to allocates for the second time


is there any way to overcome this .. situation
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat May 10, 2008 4:00 pm
Reply with quote

Take a look at ALTLIB (and I wish I had a euro for everytime that this has been mentioned).

Use ALTLIB in the main EXEC only once at the start, and then once at the end to reset the additional allocations.

So much cleaner and easier tha doing "hard" changes to already allocated ISPF dd names.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Calling an Open C library function in... CICS 1
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top