GLI Data Records

Data records are passed to your application by the GLI program.

The following points apply to both types of input format:

Agile Business Suite-Formatted GLI Input Data

Input data format is similar to that received from a terminal, subject to the following rules and conditions:

Example of Agile Business Suite-formatted GLI Data Records

In this example, the attributes for an Event ETEST are defined as follows:

DATA; 	CNUMBER 		LE; 10 	ED; N
DATA; 	PCODE 		LE; 5 	ED; A
DATA; 	AFILLER 		LE; 2 	ED; A
DATA; 	AMOUNT1 		LE; 9 	ED; - 	DE; 2
DATA; 	AMOUNT2 		LE; 9 	ED; C 	DE; 2 DK;
DATA; 	AMOUNT3 		LE; 9 	ED; S 	DE; 2 DK; 	SP; ,

The GLI Ispec record and an example of a Data record follow.

ISPEC EVENT; ETEST FORMATTED;
ETEST 00061234567890ABCDExx123456789+0123456789CR000123456789DR

The resulting data values input to the application for ETEST are as follows:

Attribute

Resulting Value

ActMth

0006

CNUMBER

1234567890

PCODE

ABCDE

AFILLER

xx

AMOUNT1

+1234567.89

AMOUNT2

-1234567.89

AMOUNT3

+1234567.89

User-Formatted GLI Input Data

Input data format is as specified in the relevant GLI Ispec records, subject to the following rules:

Example of User-formatted Data

In this example, attribute specifications for Event ETEST are as follows:

DATA; 	CNUMBER 		LE; 10 	ED; N
DATA; 	PCODE 		LE; 5 	ED; A
DATA; 	AFILLER 		LE; 2 	ED; A
DATA; 	AMOUNT1 		LE; 9 	ED; - 	DE; 2
DATA; 	AMOUNT2 		LE; 9 	ED; C 	DE; 2 DK;
DATA; 	AMOUNT3 		LE; 9 	ED; S 	DE; 2 DK; 	SP; ,

The corresponding GLI Ispec records and an example of a DATA record for ETEST follow.

SPEC EVENT; ETEST 		SD; 	ACTMTH (0006) 		LE; 4
ISPEC 						DA; 	CNUMBER 				LE; 10 	ED; N
ISPEC 						DA; 	PCODE 				LE; 5 	ED; A
ISPEC 						DA; 	GLB.SPACES 			LE; 2 	ED; A
ISPEC 						DA; 	AMOUNT1 				LE; 9 	ED; - 	DE; 2
ISPEC 						DA; 	AMOUNT2 				LE; 8 	ED; C		DE; 2
ISPEC 						DA; 	AMOUNT3 				LE; 9 	ED; S 	DE; 2

ETEST 1234567890ABCDEyyJ2345678922222222123456789

The resulting data values from this GLI input to ETEST in the application are as follows:

ACTMTH 		0006 				AMOUNT1 		+1234567.89
CNUMBER 	1234567890 		AMOUNT2 		-222222.22
PCODE 		ABCDE 			AMOUNT3 		+1234567.89
AFILLER 	yy

Note: The value of ActMth is not entered in the GLI DATA record. The SD; (SETUP.DATA;) value (0006) applies for all input for that Ispec (until it is changed).