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/close output file in rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 35
Location: Pune

PostPosted: Mon Feb 06, 2012 3:47 pm    Post subject: how to free/close output file in rexx
Reply with quote

Hi,

I am using a procedure to write file in rexx, providing the file name from calling program.


CRTFILE:
"ALLOC FI(XXOUT) DA('"OUTFILE"') MOD REUSE SPACE(2,2) LRECL("LRL")
BLKSIZE(27998) RECFM(V,B)"

"EXECIO" LOT.0 "DISKW XXOUT (STEM LOT."
"FREE FI(XXOUT)"

Getting the following error

DATA SET ******* NOT FREED, DATA SET IS OPEN
FILE XXOUT NOT FREED, DATA SET IS OPEN

Please let me know your inputs
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Mon Feb 06, 2012 3:57 pm    Post subject: Reply to: how to free/close output file in rexx
Reply with quote

check the EXECIO FINIS clause as described starting from
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJ4BK90
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 35
Location: Pune

PostPosted: Mon Feb 06, 2012 4:18 pm    Post subject:
Reply with quote

Thank you.

I have used below lines and it is working fine

"EXECIO 0 DISKW XXOUT (FINIS)"
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Mon Feb 06, 2012 8:31 pm    Post subject:
Reply with quote

You could have done it all in 1 command.

"EXECIO" LOT.0 "DISKW XXOUT (STEM LOT. FINIS"
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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