Structure

PURPOSE:  The STRUCTURE command displays the field descriptions of a Data Set, Schema Definition, record type, or field.

Syntax

STRUCTURE [/FOR/ (DS, SD) name [IN DBL dbl_name]] [/FOR/ FIELD name]

STRUCTURE

issued without options will display the field descriptions of the current Data Set.

[/FOR/ (DS; SD) name]

displays the named Schema Definition or the Schema Definition for the named Data Set.  If combined with the record name and/or /FIELD/ name option, it displays only the specified information from the designated Schema Definition or Data Set.  This option must be included if no Data Set has been declared or if information is to be displayed for a Data Set other than the declared one.

[IN DBL dbl_name]

used to display the structure of a Data Set or Schema Definition from another DBL.

[/FOR/ FIELD name]

displays the field definition for the named field.  If the field is not in the current Data Set, this clause must be preceded by the FOR (SD; DS) clause.

EXAMPLE

*STRUCTURE SD PUBLISHERS_DBM2
PUB_CODE,CHAR,4
PUB_NAME,CHAR,40
CITY,CHAR,20
STATE,CHAR,2
COUNTRY,CHAR,20
*STRUCTURE DS BOOKS_DBM2 FIELD TITLE_CODE
TITLE_CODE CHAR,6

NOTES:  The STRUCTURE command is similar to the previously described LIST SD command, except that STRUCTURE does not display the actual lines that define the fields.  It displays only field names, data types, field lengths, decimal places, OCCURS clauses and record types.