Sunday 10 March 2013

EDIT Line commands - Splitting text on multiple lines


TS is the command used for splitting lines.

Suppose we have text as below and wish to split the line number 2 starting at  the text 'TEST'.

XX00       M0001.D00.TEST.JCL(TESTJCL1) - 03.10           Columns 00001 00072
Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
000001 THIS IS A TEST LINE                                                    
000002 THIS IS A TEST LINE 2                                                   
000003 THIS IS A TEST LINE 3                                                  

Type TS on the line 2 , place the cursor on the word TEST and hit enter.

XX00       M0001.D00.TEST.JCL(TESTJCL1) - 03.10           Columns 00001 00072
Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
000001 THIS IS A TEST LINE                                                     
TS0002 THIS IS A TEST LINE 2                                                  
000003 THIS IS A TEST LINE 3                                                  

XX00       M0001.D00.TEST.JCL(TESTJCL1) - 03.10           Columns 00001 00072
Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
000001 THIS IS A TEST LINE
000002 THIS IS A                                                               
000003 TEST LINE 2                                                            
000004 THIS IS A TEST LINE 3                                                  

To split the line and add 4 lines in between, we suffix the command TS with the number (number of lines)

TSn Split a text line at the cursor and insert n number of lines 

XX00       M0001.D00.TEST.JCL(TESTJCL1) - 03.10           Columns 00001 00072
Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
000001 THIS IS A TEST LINE                                                    
000002 THIS IS A                                                              
000003 TEST LINE 2                                                             
TS4004 THIS IS A TEST LINE 3                                                  

After hitting enter following is what I get follows

XX00       M0001.D00.TEST.JCL(TESTJCL1) - 03.10           Columns 00001 00072
Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
000001 THIS IS A TEST LINE                                                    
000002 THIS IS A                                                              
000003 TEST LINE 2                                                            
000004 THIS IS A T                                                            
''''''                                                                         
''''''                                                                        
''''''                                                                        
''''''                                                                         
000005 EST LINE 3                                                             

1 comment: