View previous topic :: View next topic
|
Author |
Message |
venosol Warnings : 1 New User
Joined: 16 Nov 2006 Posts: 43 Location: Bangalore
|
|
|
|
In WORKING-STORAGE SECTION I want to find the the data items that are having with 'WS' and must be replaced by 'WK' for ten lines only.
Is there any comand for that ? I know that we can use C for finding and replacing all. How to replace in some lines only. |
|
Back to top |
|
|
vkphani
New User
Joined: 29 Oct 2003 Posts: 29
|
|
|
|
I don't think that is possible. |
|
Back to top |
|
|
kgumraj
Active User
Joined: 01 May 2006 Posts: 151 Location: Hyderabad
|
|
|
|
Hi,
Mark a label so the you can use as
Code: |
C ALL FIRST SECOND .A .B |
Where .A and .B are lables. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Use,
Press enter.
then press F6 9 times. (this is for repeating same change command)
See, you need to take care while replacing the variables so that you do not wrongly replcace 'other' words than you wanted.
By doing C ALL you have this risk.
When using C ALL .A .B as Kiran suggested use as many chars as possible for example
C ALL 'WS-' 'WK-'. This will replace only variable names starting with 'WS-' not just WS which may be part of other verb/comment/code. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Another option is to exclude the ten lines (using XX XX), then use 'C X ALL ...'.
O. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Dang, so much to learn, so little time to play around with it..... |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
another way is to set boundries using the command BNDS.
~Vamsi |
|
Back to top |
|
|
venosol Warnings : 1 New User
Joined: 16 Nov 2006 Posts: 43 Location: Bangalore
|
|
|
|
shreevamsi wrote: |
another way is to set boundries using the command BNDS.
~Vamsi |
what is the syntax for using BNDS? |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
Hi,
Type BNDS or BND in the line command area of any line and press ENTER.
The bounds line will then be displayed as follows.
000300
=BNDS> < >
000400
The bounds may then be changed by overtyping with < to define the left
bound and > to define the right bound. To remove the bounds line from the display, use the D line command or the RESET primary command.
Bounds are used with scrolling, shift line commands ( ">", "<", ")", "(" ),
text line commands ( "TS", "TF", "TE" ) and FIND , CHANGE , EXCLUDE , and SORT commands. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
General Suggestion for exploring new (to you) TSO features:
There is a wealth of help in the HELP (F1) screens.
Whereas you might not know about the existence of a command or feature (happens to me all the time), once you do, reading up in HELP and then experimenting will enable you with respect to that feature much more than just being told by someone else. |
|
Back to top |
|
|
mainframe_96
New User
Joined: 18 Dec 2006 Posts: 13 Location: usa
|
|
|
|
Most of the time i Use x all, f 'WS-' all
c 'xx' 'yy' x all or
c 'xx' 'yy' nx all
Nx all changes in not excluded lines
X all changes in excluded lines
what ofer71 said will work for you in this case, However if you had to change except for those 10 lines you excluded then use NX. |
|
Back to top |
|
|
jasorn Warnings : 1 Active User
Joined: 12 Jul 2006 Posts: 191 Location: USA
|
|
|
|
shreevamsi wrote: |
another way is to set boundries using the command BNDS.
~Vamsi |
You can set bounds for lines? Thought you could only set bounds for columns. |
|
Back to top |
|
|
GlobalGyan
New User
Joined: 31 Jan 2006 Posts: 28
|
|
|
|
for 10 lines you can change manually :=)
- |
|
Back to top |
|
|
|