|
View previous topic :: View next topic
|
| Author |
Message |
usharaniA
New User
Joined: 22 Jan 2008 Posts: 85 Location: India
|
|
|
|
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 |
|
 |
usharaniA
New User
Joined: 22 Jan 2008 Posts: 85 Location: India
|
|
|
|
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 |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
since you managed to OPEN and WRITE to the file,
address the same service/application and CLOSE and FREE the file. |
|
| Back to top |
|
 |
usharaniA
New User
Joined: 22 Jan 2008 Posts: 85 Location: India
|
|
|
|
| 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 |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
| 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 |
|
 |
|
|