IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Multi line change all command


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Thu May 24, 2007 5:00 am
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: 2358
Location: Israel

PostPosted: Thu May 24, 2007 10:41 am
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: 3156
Location: Tucson AZ

PostPosted: Thu May 24, 2007 4:08 pm
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
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
Reply with quote

Hi,

Check the below link for the topic

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

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

Senior Member


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

PostPosted: Fri May 25, 2007 5:46 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
Search our Forums:

Back to Top