Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 962
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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us