Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Unalloc a Dataset which is open

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Unalloc a Dataset which is open
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: 8593
Location: Back in jolly old England

PostPosted: Sat May 10, 2008 12:22 pm    Post subject:
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    Post subject: Reply to: Unalloc a Dataset which is open
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: 8593
Location: Back in jolly old England

PostPosted: Sat May 10, 2008 4:00 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us