View previous topic :: View next topic
|
Author |
Message |
Nileshkul
New User
Joined: 09 May 2016 Posts: 43 Location: India
|
|
|
|
Apologies in case some thread already present on this.
I need to remove some punctuation marks/invalid data from a PS file read by REXX. How this can be achieved via REXX? Any pointers would be useful.
Thanks - Nilesh |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1335 Location: Bamberg, Germany
|
|
|
|
Please, show sample Input and desired Output and make use of code tags when doing so. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2141 Location: USA
|
|
|
|
Nileshkul wrote: |
Apologies in case some thread already present on this.
I need to remove some punctuation marks/invalid data from a PS file read by REXX. How this can be achieved via REXX? Any pointers would be useful.
Thanks - Nilesh |
1) What is your level of knowledge about REXX?
2) Why REXX, not any of 100500 other tools?
3) Your goal can be achieved via REXX by means of using various REXX statements, and functions. Do you know what a REXX statement is? Do you know what a REXX function is?
4) A PS dataset (not file!!!) cannot be changed in-place. Another (updated) dataset needs to be created. Do you understand this? If not, you must start from learning the basics of zOS, before going to REXX. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 734 Location: Denmark
|
|
|
|
EXECIO DISKR to read the dataset to a stem or the stack.
Use the POS function to find data, then use the DELSTR function to remove it.
EXECIO DISKW to write the dataset from the stem or stack.
You can use EXECIO DISKRU and EXECIO DISKW to read and rewrite one record at a time, but DISKR, process the data, then DISKW is probably simpler and safer. |
|
Back to top |
|
|
|