Replace command like srchfor



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Replace command like srchfor

Postby zhinghur » Tue Jan 17, 2012 1:06 am

Hello,

Do we have any commands to replace any text(say ab to xy) from different members in one PDS, without going and doing manual edit with c all command for each member?


Thanks,
Zhingur
zhinghur
 
Posts: 48
Joined: Sun Nov 20, 2011 12:25 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Replace command like srchfor

 

Re: Replace command like srchfor

Postby enrico-sorichetti » Tue Jan 17, 2012 1:54 am

no...
You will have to write an edit macro

see here for an edit macro which applies an <inner> macro to all the members of the PDS being edited

http://ibmmainframes.com/about25947.html

You will have to write Your own <inner> macro to issue the change commands
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Replace command like srchfor

Postby Akatsukami » Tue Jan 17, 2012 1:57 am

enrico-sorichetti wrote:no...
You will have to write an edit macro

Can't this be done with a global edit?
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Replace command like srchfor

Postby Peter_Mann » Tue Jan 17, 2012 2:13 am

Globally change - what ? JCL, COBOL Source? ASM SOURCE ? PANEL- SKELS - MSGS?
there are products (FILEAID,PDSMAN) for example that can change text (ab to xy) in all or some PDS members, but you need to take care, for example; if the source is JCL, the utility is non forgiving, it will change (ab to xyz) with no problems, and not care if the changed text now created an invalid jcl statement, or invalid source statement, I agree with Enrico, learning to write an edit macro and ensuring your changed data is correct is the best route.
ISPF LM - services along with an edit macro can do whatever you need to do to a PDS
http://publib.boulder.ibm.com/infocente ... lmopen.htm
Peter
Peter_Mann
 
Posts: 139
Joined: Fri Jun 24, 2011 7:37 pm
Location: Lowell,AR
Has thanked: 14 times
Been thanked: 3 times

Re: Replace command like srchfor

Postby enrico-sorichetti » Tue Jan 17, 2012 2:25 am

as far as I remember ispf global change is available only by the ADD ON product
ISPF Productivity Tool
as described here
Improving Your Productivity with the ISPF Productivity Tool V5.9 on z/OS
http://www.redbooks.ibm.com/redbooks/pdfs/sg247587.pdf
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Replace command like srchfor

Postby prino » Tue Jan 17, 2012 5:04 am

Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

Re: Replace command like srchfor

Postby zhinghur » Tue Jan 17, 2012 11:23 pm

Thank you everyone.
zhinghur
 
Posts: 48
Joined: Sun Nov 20, 2011 12:25 pm
Has thanked: 0 time
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post