View previous topic :: View next topic |
Author |
Message |
dubasir Beginner
Joined: 13 Dec 2004 Posts: 20 Topics: 9
|
Posted: Thu Oct 20, 2005 5:23 am Post subject: How to edit a member & Change the contents using TSO Cha |
|
|
Using the CLIST program, I want to open the PDS member in Edit mode and then I want to give search for a particular string in that member and upon finding the particular occurance I want to replace those occurences with some other. Like we do in JCL : " Change abc xxx all".
Please let me know how can we do in CLIST.
Thanks in advance. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Oct 20, 2005 7:10 am Post subject: |
|
|
dubasir,
Any particular reason for using CLIST? A simple rexx edit macro will do what you want.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
dubasir Beginner
Joined: 13 Dec 2004 Posts: 20 Topics: 9
|
Posted: Thu Oct 20, 2005 7:17 am Post subject: |
|
|
Ok..the thing is we had never executed the REXX commands. If you can let me know the things with Syntax, I would be very greatefull to you. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Oct 20, 2005 7:30 am Post subject: |
|
|
I'm wondering if the O/P might be considering using the TSO EDIT command via a CLIST, something like this:
Code: |
PROC 0
EDIT 'USERID.PDS(MEMBER)' CNTL NONUM ASIS OLD
VERIFY ON
TOP
F 'ABC'
C * /ABC/XXX/
TOP
END SAVE
|
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Oct 20, 2005 10:02 am Post subject: |
|
|
That and the ALLMBRS example in the doc should get you started. |
|
Back to top |
|
|
dubasir Beginner
Joined: 13 Dec 2004 Posts: 20 Topics: 9
|
Posted: Fri Oct 21, 2005 2:12 am Post subject: Thanks |
|
|
Thanks to everyone for your valuable suggestions. Finally I got the required thing. The mistake I had done was, I included a "FREE ALL" Statement in the CLIST program, there by it's not picking up the proc.
Anyway thanks again, for everyone. |
|
Back to top |
|
|
|
|