View previous topic :: View next topic
|
Author |
Message |
vishabus
New User
Joined: 25 Oct 2006 Posts: 24 Location: India
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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.... |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Thanks O, I know I saw it somewhere.... |
|
Back to top |
|
|
vishabus
New User
Joined: 25 Oct 2006 Posts: 24 Location: India
|
|
|
|
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 |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
|