Previous Topic: SPLIT CommandNext Topic: Cursor in Display Area


Cursor in Command Area

SPLIT with the cursor positioned in the command area divides the regions evenly. The minimum region size is nine lines. If there is not enough room on the panel for another region, the SPLIT is not applied and an error message is issued. The current contents of the display area appear in the first region. All current option settings for the first region are retained for the second region. If the content for the second region is not specified with a command, the Main Menu appears in the second region.

When there is more than one region, you can prefix commands with a region number and a space. The commands apply by default to region 1 if you do not specify a prefix. You can only execute the RUN command in the first (or only) region. You can also enter commands on multiple lines or delimited on a single line. For example:

SPLIT
2 EDIT PROGRAM SAMPGM; 1 DISPLAY DATAVIEW EMPLOYEE

To obtain a display of a dataview called EMPLOYEE in one region and to edit a program definition called SAMPGM in a second region when only one region exists, enter:

SPLIT
1 DISPLAY DATAVIEW EMPLOYEE
2 EDIT PROGRAM SAMPGM

Assuming that the cursor was left in the command area, the panel splits into two regions as follows:

=> => => IDEAL: DISPLAY DATAVIEW DVW EMPLOYEE (001) PROD SYS: DOC DISPLAY Seq Level Field name T I Ch/Dg Occur K Value/Redef/Dep on Command ----- ----- -------------------- - - ----- ----- - ------------------- ------ ===== ===== ======== T O P ===== = = ===== ===== = ================= ====== 1 1 EMPLOYEE 000002 2 2 NUMBER U Z 5 K 000003 3 2 NAME X 24 000004 4 2 STREET‑ADDRESS X 24 000005 ===== ===== =====B O T T O M==== = = ===== ===== = ================= ====== ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑---- IDEAL: PROCEDURE DEFINITION PGM SAMPGM (001) TEST SYS: DOC FILL‑IN ....+....1....+....2....+....3....+....4....+....5....+....6....+....7..Command ================================ T O P ============================== ====== <<PRGDEMO1>> PROCEDURE 000100 FOR EACH EMPLOYEE 000200 WHERE STATE‑ADDRESS = 'TX' 000300 PRODUCE SAMRPT 000400 ENDFOR 000500

The following examples produce the same results. The only difference is on what line in the command area the commands are placed.

SPLIT
2 EDIT PROGRAM SAMPGM
1 DISPLAY DATAVIEW EMPLOYEE

SPLIT
1 DISPLAY DATAVIEW EMPLOYEE; 2 EDIT PROGRAM SAMPGM

SPLIT
2 EDIT PROGRAM SAMPGM ; 1 DISPLAY DATAVIEW EMPLOYEE