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

Active Member


Joined: 07 Feb 2009
Posts: 989
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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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