View previous topic :: View next topic
|
Author |
Message |
milind suman Warnings : 1 New User
Joined: 19 Aug 2009 Posts: 55 Location: Pune
|
|
|
|
Hi ,
While editing a file I have to reposition all the records starting with 'WS-' to column 16 . The other records have to stay at their original column. Is there any ISPF command to do this .
For example :
Code: |
1234567891011121314151617181920212223242526
record1 xyz
record2 abc
ws-varaiable pic x(9)
record3 xyz
ws-varaible x(9)
|
After :
Code: |
1234567891011121314151617181920212223242526
record1 xyz
record2 abc
ws-varaiable pic x(9)
record3 xyz
ws-varaible x(9)
|
|
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Put a label (eg .from) on the first line of the area that needs to be changed, put another (eg .to) on the last, enter the command
Code: |
&c 'WS-' ' WS-' 1 17 all .from .to |
and press Enter until nothing more changes. |
|
Back to top |
|
|
milind suman Warnings : 1 New User
Joined: 19 Aug 2009 Posts: 55 Location: Pune
|
|
|
|
thanks much Prino ..fentastic way ! |
|
Back to top |
|
|
|