Structure

PurposeSTRUCTURE displays the field descriptions of a Data Set (DS), Schema Definition  (SD), record type, or field.

Syntax

STR/UCTURE/ [/FOR/ {DS; SD} name [IN DBL dbl_name]] [/FOR/ FIELD name]

STR/UCTURE/

with no options displays out the field descriptions of the SD for the DS last declared with a USE command.

/FOR/ {DS; SD} name

displays the named SD or the SD for the named DS.  If combined with the RECORD name and/or FIELD name option, it displays only the specified information from the designated SD or DS.  This option must be included if no DS has been declared, or to display information for a DS other than the declared one.

IN DBL dbl_name

is used to list the structure of an object in another Data Base Library (DBL).

/FOR/FIELD name

displays the field definition for the named field.  If the field is not contained in the current DS, the indicated field name must be preceded by the name of its DS or SD.

Example

--STRUCTURE SD BOOK_AUTHOR_DBM2
AUTHOR_CODE CHAR,11
TITLE_CODE CHAR,6
UAUTHOR_ORDERED,INT,6
ROYAL_PERCENT,INT,3
--STR SD PUB_REP FOR FIELD PHONE
--PHONE,INT,10

NOTES:  STRUCTURE does not display all of the options available to field definitions.  It generates a basic working version of an SD that includes decimal places, OCCURS clauses and record types.