MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to edit a member & Change the contents using TSO Cha

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
dubasir
Beginner


Joined: 13 Dec 2004
Posts: 20
Topics: 9

PostPosted: Thu Oct 20, 2005 5:23 am    Post subject: How to edit a member & Change the contents using TSO Cha Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Oct 20, 2005 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dubasir
Beginner


Joined: 13 Dec 2004
Posts: 20
Topics: 9

PostPosted: Thu Oct 20, 2005 7:17 am    Post subject: Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Oct 20, 2005 7:30 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Oct 20, 2005 8:05 am    Post subject: Reply with quote

dubasir,

Check this link which shows an example

http://www.mvsforums.com/helpboards/viewtopic.php?t=4834

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Oct 20, 2005 10:02 am    Post subject: Reply with quote

That and the ALLMBRS example in the doc should get you started.
Back to top
View user's profile Send private message Visit poster's website
dubasir
Beginner


Joined: 13 Dec 2004
Posts: 20
Topics: 9

PostPosted: Fri Oct 21, 2005 2:12 am    Post subject: Thanks Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group