View previous topic :: View next topic
|
Author |
Message |
cma rajith
New User
Joined: 28 May 2008 Posts: 30 Location: India
|
|
|
|
Hi,
My requirement is at the end of my Rexx program, to delete the records from the file which i created during the execution of program.I cannot use ISREDIT as I don't want to show this file to the user.
The file has to be empty for the next run of the program, I can't delete the file due to some constraints in the requirement. Can anyone please guide me?
Thanks,
Ceema |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Your requirements are clear as mud.
Please tell us what you really want to do? In what environment (fore- or background) does your REXX exec run? Which user cannot see what and why not? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Hi,
I think your requirement is to delete all the records from the files which were created while executing the REXX exec.
If yes, you can add one step each for the files that you had created in the exec.
Code: |
/* REXX */
"EXECIO 0 DISKW DDNAME (FINIS" |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why do you assume that by using ISREDIT that you will expose the file to the user |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can invoke IDCAMS REPRO from within REXX. Copy the file to itself with COUNT(0).
O. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
cma rajith wrote: |
I cannot use ISREDIT as I don't want to show this file to the user. |
Use REPRO or EXECIO as suggested.
Just be aware that you are doing the right thing, but for the wrong reason: if you edit a file with a macro, and the macro closes the file (with or without saving), nothing will appear on the user's screen. |
|
Back to top |
|
|
cma rajith
New User
Joined: 28 May 2008 Posts: 30 Location: India
|
|
|
|
Thanks a lot to All..
I have used REPRO and it fullfills my requirement.. |
|
Back to top |
|
|
|