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

Close the opened File.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Mar 18, 2009 3:46 pm
Reply with quote

Hi,
My requirement is,
Im running a rexx exec which will open a flat file and my exec append some lines to that opened falt file and write it into a new flat file, now my requirement is i want to close the opened flat file.
, please kindly suggest my any ideas in how to close the opened flat file in rexx.
Back to top
View user's profile Send private message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Mar 18, 2009 3:53 pm
Reply with quote

I haven't opened the file with
ADDRESS ISPEXEC "EDIT DATASET('"FILE"') MACRO("MACRO1")"
so i cant use the isredit end in the macro.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Mar 18, 2009 4:09 pm
Reply with quote

since you managed to OPEN and WRITE to the file,
address the same service/application and CLOSE and FREE the file.
Back to top
View user's profile Send private message
usharaniA

New User


Joined: 22 Jan 2008
Posts: 85
Location: India

PostPosted: Wed Mar 18, 2009 4:29 pm
Reply with quote

actually im not writing any code to open the pds , im invoking a clist which opens the dataset, and the clist is in the system library so i dont have access to edit the clist
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Mar 18, 2009 9:03 pm
Reply with quote

Quote:
Im running a rexx exec which will open a flat file

So that was not true???

Quote:
im invoking a clist which opens the dataset,

Invoke another clist which closes the dataset. Look at the CLIST manual and read about the CLOSFILE instruction.

You might be able to do it from rexx using EXECIO too.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top