Entries

An entry is a DID element that enables you to define the data to retrieve.

Syntax

entry-definition ::=
DEFINE_ENTRY
NAME entry-name 
 entry-attribute-sequence
[ entry-parameters ]
entry-fields
[ entry-subentries ]
END_DEFINE_ENTRY
entry-attribute-sequence ::=
model-document-statement
data-retrieval
[ key-retrieval ]
[ local-connection-entry-attributes ]
[ as400-connection-entry-attributes ]
[ database-file ]
[ database-record-id ]
[ entry-codepage ]
[ entry-export ]
model-document-statement ::=
MODEL_DOCUMENT_STATEMENT single-or-plural
single-or-plural ::=
WITH
|	FORALL
data-retrieval::=
DATA_RETRIEVAL retrieval-name 
key-retrieval ::=
KEY_RETRIEVAL retrieval-name 
local-connection-entry-attributes ::=
entry-calling-convention
entry-calling-convention ::=
CALLING_CONVENTION calling-convention 
as400-connection-entry-attributes ::=
entry-record-length
entry-record-length ::=
RECORD_LENGTH natural-number  
database-file ::=
DATABASE_FILE file-name
database-record-id ::=
DATABASE_RECORD_ID file-name 
entry-codepage ::=
CODEPAGE codepage  
entry-export ::=
EXPORT_ENTRY yes-or-no
yes-or-no ::=
YES
|	NO
entry-parameters ::=
DEFINE_PARAMETERS formal-parameter-sequence 
formal-parameter-sequence END_DEFINE_PARAMETERS
field-sequence 
entry-fields ::=
DEFINE_FIELDS field-sequence END_DEFINE_FIELDS

Example

DEFINE_ENTRY
	NAME Customer
	MODEL_DOCUMENT_STATEMENT WITH
	DATA_RETRIEVAL (* ... *)
	KEY_RETRIEVAL (* ... *)
DEFINE_PARAMETERS
		(* ...
		Parameter definitions are placed here
		... *)
	END_DEFINE_PARAMETERS
	DEFINE_FIELDS
		(* ...
		Add the Field definitions here
		... *)
	END_DEFINE_FIELDS
END_DEFINE_ENTRY