Data Dictionary Record Templates

_ddopen.utl sets the global strings listed below to the templates used to access the data dictionary. Developers can reference the global strings to dimension their own string variables to access the dictionary.

String Variable

Global String Containing Template

file$

#FILEREC

filmsc$

#FILMSCREC

complete_file$

#FILECOMP

filrul$

#FILRULREC

index$

#INDEXREC

locat$

#LOCATREC

field$

#FIELDREC

complete_field$

#FIELDCOMP

fldrul$

#FLDRULREC

typdef$

TYPDEFREC

typrul$

TYPRULREC

rule$

#RULEREC

For example, the code fragment below retrieves and prints the value of the PATH attribute for the CUSTOMER alias:

DIM A$:STBL("#FILEREC")
A.FILE_ID$="CUSTOMER"
CALL"_DDFIL.UTL",A$
PRINT A.PATH$

To retrieve the complete list of file information, use the global string (#FILECOMP). To retrieve the complete list of field information, use the global string (#FIELDCOMP).