Previous Topic: Cursor in Display AreaNext Topic: Application of Data and PF Keys


Splitting the Second Region

The SPLIT command always applies to the last region displayed. If there are already two regions, then the SPLIT applies to the second region. The cursor in the display area marks the point where splitting occurs. Specifying SPLIT with the cursor positioned in the command area divides the regions evenly. SPLIT with line numbers can divide the second region unevenly.

For example, assume that there are two regions and you entered the following commands to split the second region:

SPLIT
2 EDIT PROGRAM SAMPGM
3 EDIT PROGRAM SAMPGM PARAMETERS

Assuming you left the cursor in the command area, the second region is split and the following panel appears.

=> => => ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑----‑‑‑‑‑‑‑ 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 ============================== ====== CATALOGED 01/18/95 15:29 DATACOM/DB UPD=NO DBID=001 000001 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 5 2 CITY‑ADDRESS X 15 000006 6 2 STATE‑ADDRESS X 2 000007 7 2 ZIP‑CODE‑LOC X 5 K 000008 8 2 SOCIAL‑SECURITY N P 9 000009 ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑------‑‑‑‑‑‑‑‑‑- 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 ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑-‑‑----‑‑‑‑ IDEAL: PARAMETER DEFINITION PGM SAMPGM (001) TEST SYS: DOC FILL‑IN Level Field name T I Ch/Dg Occur U M Comments/Dep on/Copy Command ‑‑‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑ ‑ ‑‑‑‑‑ ‑‑‑‑‑ ‑ ‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑-- ‑‑‑‑‑‑ ===== ======= TOP ======= = = ===== ===== = = ==================== ====== 1 STATE‑ADDRESS X 2 I D :STATE CODE 000100 ===== ===== BOTTOM ====== = = ===== ===== = = ==================== ======

You can also split a second region with the SPLIT command as follows:

SPLIT 15

This command splits the second region and leaves 15 lines in the second region and the remainder in the newly formed third region.

The following command splits the second region and leaves 10 lines in the second region and a minimum of 9 in the newly formed third region.

SPLIT 10 9

If the number of lines specified in a SPLIT command is greater than the number of lines available, the SPLIT command is ignored and a message is issued.