To Create a Three-Line Set Description:
To create a three-line set description containing the set name in line 1, the set order in line 2, and the pointers in line 3, use these parameter statements:
DSETLINE SET-NAME DSETLINE SET-ORDER DSETLINE POINTERS
A resulting set description looks like this:
********************************** ────────────────#1#─►* SPORTS * ACTIVITY-TYPES * 8112 F 32 CALC DN * LAST * SPORT-NAME * NPO * STUDENT-REGION * **********************************
To Create Blank Fields or Blank Lines in a Set Description:
You can create blank fields or blank lines in the set description to make room in the data structure diagram for handwritten information. A set description with a blank five-character field in the first line and a blank second line is specified like this:
DSETLINE SET-NAME,BLANK 5,SET-ORDER DSETLINE
The resulting set description:
************************************ ──────────────────────────────#1#─► * SPORTS * ACTIVITY-TYPES LAST * 8112 F 32 CALC DN * * SPORT-NAME * * STUDENT-REGION * ************************************
To Combine Explicit and Implicit Placement of Sort Keys:
A set description with the first sort key on the second line and additional sort keys on the last lines is specified like this:
DSETLINE SET-NAME DSETLINE SET-ORDER(1) DSETLINE POINTERS,MEM-OPT,SET-MODE DSETLINE SET-ORDER(N)
The resulting set description:
/ # 6 # / / / DEPT-TEACHER **************************** LAST ******************************* * DEPT * NPO OM * TEACHER * * 1000 F 52 CALC DN *--#5#-------------─►* 1001 F 76 CALC DN * * DEPT-NAME *--#9#-------------─►* TCHR-ID * * DEPT-REGION * X-TCHR-LNAME * DEPT-REGION * **************************** ASC TCHR-LNAME-A DL ******************************* N MA MODE = INDEX
Use of SET-ORDER(N) always reserves a position in the set description, even when there are not enough sort or index keys to actually need it.
|
Copyright © 2013 CA.
All rights reserved.
|
|