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
 

 

ISPF command to shift records which start with specific char

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: ISPF command to shift records which start with specific char
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: 1028
Location: Oostende, Belgium

PostPosted: Wed Feb 03, 2010 4:31 pm    Post subject:
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    Post subject:
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    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 saving your settings in ISPF. VintageReceiver TSO/ISPF 9 Wed Jul 26, 2017 6:42 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am


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