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

How to free a file?


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sriramvempaty

New User


Joined: 02 Aug 2007
Posts: 18
Location: india

PostPosted: Mon Mar 17, 2008 11:30 am
Reply with quote

Hi,
I ran debugger and in between i came out of debugger when my input file is in OPEN state. When i tried running debugger again i'm getting error as DATA SET IS OPEN. Can anybody tell me how to free this file.(i think there is command FREE.... to free the file).
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Mon Mar 17, 2008 3:04 pm
Reply with quote

Yes you are right.
TSO FREE DA('your file name')

You can use TSO ISRDDN panel to see your file allocated there and free it interactively.
Back to top
View user's profile Send private message
sriramvempaty

New User


Joined: 02 Aug 2007
Posts: 18
Location: india

PostPosted: Wed Mar 19, 2008 9:09 am
Reply with quote

Hi,

As u said i tried both the options but didn't worked out.
As a temporary solution every time i face the problem i'm reconnecting to mainframe and my dataset is getting unallocated.
Are there anyother ways thru which we can unallocate the dataset?

Thanks,
sriram.
Back to top
View user's profile Send private message
HappySrinu

Active User


Joined: 22 Jan 2008
Posts: 194
Location: India

PostPosted: Wed Mar 19, 2008 2:55 pm
Reply with quote

try this option..on cmd option 6 in ISPF

TSO FREE FI(SYSEXEC) DA(YOUR.DSN.REXX') SHR

SYSEXEC - DDNAME as said before get from TSO ISRDDN
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Wed Mar 19, 2008 4:34 pm
Reply with quote

The main point is that ...
You cannot free a dataset if it is open

review Your operating procedure in order to leave Your debugging session in a good state
( all files closed )
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Unable to interpret a hex value to De... COBOL Programming 7
No new posts how to eliminate null indicator value... DB2 7
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
Search our Forums:

Back to Top