During a Dataquery online session, in DQL mode, a DRAW command on the FIELD table of the DataDictionary database creates a simple query without error; however, when that query is executed or validated, the following error is returned:
DQ805E - THE TABLE NAME YOU USED IS UNKNOWN TO DATAQUERY
Release : 15.1
FIELD is a Dataquery reserved word
In order to use the DRAW command on FIELD table, you have to prefix it with 'DD':
DRAW DDFIELD
The same workaround must be used for KEY table, being another reserved word:
DRAW DDKEY
Note that TABLE and RECORD, which are reserved words too, are instead on AGGREGATE table.
See Using Dataquery to Access Information in the DATA-DICT Database for additional details.
The same error is returned when a query on FIELD or KEY is manually coded (i.e. not using the DRAW command):
FIND KEY
PRINT FROM KEY …
must be changed to:
FIND DDKEY
PRINT FROM DDKEY …