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
 

 

How to free a file?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: How to free a file?
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: 686
Location: Earth

PostPosted: Mon Mar 17, 2008 3:04 pm    Post subject:
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    Post subject: Reply to: How to free a file?
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: 195
Location: India

PostPosted: Wed Mar 19, 2008 2:55 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Mar 19, 2008 4:34 pm    Post subject: Reply to: How to free a file?
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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