You are here: Job and Form Set Rules Reference > JDT Rules Reference > AppendGblToExtr

AppendGblToExtr

Use this form set level rule to append a global variable to the extract file. You can use this rule to place selected fields in the trigger file into an extract file.

Syntax

;MYW32->AppendGblToExtr;2;ExtractFile_Key,GBL_Var GBL_Var ...GBL_Var;

In the data field, enter the name of the key the extract record should append to and the names of all global variables you want to appended to it.

You define the maximum length of the extract file record using this INI option:

< TRN_File >

MaxExtRecLen =

If you are appending multiple GVM variables and are using an extract file key, the accumulated length should not exceed the maximum extract record length defined in the MaxExtRecLen option.

     
Note If you enter the string NOHEADER as the ExtractFile_Key, the system appends global variables to the extract list without a header key.

If the accumulated length exceeds MaxExtRecLen, the rule fails and issues the following error:

Error in AppendGblToExtr(): Global variable <> exceeds maximum length. Check MaxExtRecLen in INI group <TRN_FILE>

Example

;AppendGblToExtr;;;