Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10309
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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us