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: 10211
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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