Split-Screen Mode

In split-screen mode, you can use one half of the screen for editing an object (editing section) and at the same time have another Natural object displayed in the other half (display section). In addition, you can copy the definitions shown in the display section.

The following types of Natural object can be displayed in split-screen mode:

DDMs (Data Definition Modules), data areas, programs, subprograms, subroutines, helproutines, copycodes, texts, maps, classes, functions and Predict program descriptions.

The instructions below show how to display the definitions of another Natural object and copy them into the object you are currently editing.

Start of instruction setTo display and copy definitions with SPLIT

  1. In the current source, enter the SPLIT editor command (described in Editor Commands) to display the source of the object from which you want to copy text, for example:

    SPLIT P LDATEST1

    Split-screen mode is set with the current source (in the example below program PGMTEST1) in the editing section (upper half) and a local data area (LDATEST1) in the display section (lower half) of the editor screen as shown in the example below:

       >> -----------Columns 001 072  <<  Program PGMTEST1 Lines  187    User SAG      
       Command ===>                                                      Lib  SYSLIB   
       001720   IF (RC NE 0)                                                           
       001730    then                                                                  
       001740     reset CMD_LINE_2                                                     
       001750     IF (s_prog ne ' ')                                                   
       001760      then                                                                
       001770       assign CMD_LINE_PGM = S_PROG                                       
       001780       assign CMD_LINE_LIB = S_LIB                                        
       001790     END-IF                                                               
       001800   END-IF                                                                 
       >> -----------Columns 001 072  <<    Local LDATEST1 Lines  158    User SAG      
       Command ===>                                                      Lib  SYSLIB   
       ****** ****************************** top of data ***************************** 
       000001 DEFINE DATA LOCAL                                                        
       000002 1 NPF_F_READ(A1)                                                         
       000003 CONST                                                                    
       000004 <'R'>                                                                    
       000005 1 NPF_F_WRITE(A1)                                                        
       000006 CONST                                                                    
       000007 <'W'>                                                                    
       Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12--- 
             Help  Save  Exit  Run   Rfind Stow  -     +     Check Home  Undo  Canc  
    

    Notes:

    1. Because it is not possible to modify the definitions in the display section, not all editor commands are available. PF keys are reserved for the editing section. Thus, commands meant for the display section must be issued using the command line.
    2. The SWAP editor command can be used to move the cursor between the command lines of the display and editing sections.
  2. In the display section, mark the block of lines to be copied from LDATEST1, for example, by entering the line command CC next to the first and the last line of the required block.

  3. In the editing section of PGMTEST1, next to the line below which you want to place the block of lines, enter the line command A.

    The marked block of lines is copied into PGMTEST1 below the line where you entered the line command.

  4. If required, terminate split-screen mode by entering the SPLIT END editor command.