Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Multi line change all command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
vishabus

New User


Joined: 25 Oct 2006
Posts: 24
Location: India

PostPosted: Thu May 24, 2007 2:59 am    Post subject: Multi line change all command
Reply with quote

Hi,

I have a query. While trying to do a change all I faced a scenario where the strings involved were quite lengthy. As such I wasn't able to use the complete change all command in one go. I did achieved the end result by replacing the large string first by XXXX and then replacing XXXX by the required string.

However, I do remember there was a way of doing it in a better manner. Can anybody help me with that?

Thanks,
vishwajeet
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu May 24, 2007 5:00 am    Post subject:
Reply with quote

I recall seeing and using a command that expanded the command line to two lines...kind of like that =6 ......
But, dang, I can't remember what it was.... icon_cry.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu May 24, 2007 10:41 am    Post subject:
Reply with quote

There is an extended command line for TSO commands and for SDSF command, but no such thing for ISPF editor commands.

You can write your tiny REXX with panel to accept the commands and issue them using edit macro.

O.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu May 24, 2007 4:08 pm    Post subject:
Reply with quote

Thanks O, I know I saw it somewhere....
Back to top
View user's profile Send private message
vishabus

New User


Joined: 25 Oct 2006
Posts: 24
Location: India

PostPosted: Thu May 24, 2007 7:41 pm    Post subject: Re: Multi line change all command
Reply with quote

hey ... I was finally able to recall. We can use change all command in two steps

F all string-1
c * string-2 all
Back to top
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Fri May 25, 2007 3:23 pm    Post subject:
Reply with quote

Hi,

Check the below link for the topic

http://ibmmainframes.com/viewtopic.php?t=15878&highlight=command+line+split

Cheers
Ashwin
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 965
Location: Richmond, Virginia

PostPosted: Fri May 25, 2007 5:46 pm    Post subject:
Reply with quote

Thanks vishabus - I've learned something today I could have used for the last 20 odd years (actually, only half of them were odd).

From F1 Help:

If you want to use the same string that was used in the previous FIND
command, use an * (asterisk).
Example - ===> find * 40 60

If you want to use the same string that was used in the previous CHANGE
command, use an * (asterisk).
Example - ===> chg * * 40 60
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us