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

ISPF command to shift records which start with specific char


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
milind suman
Warnings : 1

New User


Joined: 19 Aug 2009
Posts: 55
Location: Pune

PostPosted: Wed Feb 03, 2010 3:42 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Feb 03, 2010 4:31 pm
Reply with quote

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
View user's profile Send private message
milind suman
Warnings : 1

New User


Joined: 19 Aug 2009
Posts: 55
Location: Pune

PostPosted: Wed Feb 03, 2010 4:43 pm
Reply with quote

thanks much Prino ..fentastic way !
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Routing command Address SDSF to other... TSO/ISPF 2
Search our Forums:

Back to Top