CodeGen Documentation
CodeGen Documentation

File Loop Expansion Tokens

 

File loop expansion tokens are used to insert information about the current file being processed within the context of a file loop into the output stream. File loop tokens can only be used inside a file loop.

 

File Loop Token

Description

<FLOOP_ADDRESSING>

 

Inserts the addressing size of the file.

 

Possible values:  32, 40

<FLOOP_CHANGE_TRACKING>

 

Inserts a string indicating whether the file has change tracking enabled.

 

CodeGen will display an error if it encounters this token and the structure being processed has not been assigned to a repository file definition.

NOTE: Supported in Synergy/DE V10.1 and higher.

Possible values:  YES, NO

Alternates:  <floop_change_tracking>

<FLOOP_COMPRESSION>

 

Inserts a string indicating whether the file has data compression enabled.

 

Possible values:  YES, NO

Alternates:  <floop_compression>

<FLOOP_DESC>

 

Inserts the description of the file.

<FLOOP_DENSITY>

 

Inserts the default key density of the file.

 

Possible values:  50, 100

<FLOOP_NAME>

 

Inserts the name of the associated data file.

<FLOOP_NAME_NOEXT>

 

Inserts the base name of the associated data file. This token can be useful when constructing file specifications where the file extension is based on a variable company code or other data.

 

<FLOOP_ODBC_NAME>

 

Inserts the ODBC table name of the file. If no ODBC table name is specified then the name of the first assigned structure is used.

 

Example output: CUSTOMER

Alternates:  <floop_odbc_name>, <Floop_Odbc_Name>, <Floop_odbc_name>, <FloopOdbcName>, <floopOdbcName>

<FLOOP_PAGESIZE>

 

Inserts the page size of the file.

Possible values:  512, 1024, 2048, 4096, 8192, 16384, 32768

NOTE: Page sizes 16384 and 32768 were introduced with ISAM Rev 6 in Synergy/DE 10.1

<FLOOP_RECTYPE>

 

Inserts a string indicating the record type of the file.

 

Possible values:  FIXED, VARIABLE, MULTIPLE

Alternates:  <floop_rectype>

<FLOOP_RPS_NAME>

 

Inserts the name of the repository file definition.

 

Example output:  CUSTOMER

Alternates:  <floop_rps_name>, <Floop_Rps_Name>, <Floop_rps_name>, <FloopRpsName>, <floopRpsName>

<FLOOP_STATIC_RFA>

 

Inserts a string indicating whether the file has static RFA’s enabled.

Possible values:  YES, NO

Alternates:  <floop_static_rfa>

<FLOOP_STORED_GRFA>

 

Inserts a string indicating whether the file has stored GRFA’s enabled.

 

CodeGen will display an error if it encounters this token and the structure being processed has not been assigned to a repository file definition.

NOTE: Supported with Synergy/DE V10.1 and higher.

Possible values:  YES, NO

Alternates:  <floop_stored_grfa>

<FLOOP_STRUCTURE_COUNT>

 

Inserts the number of structures assigned to the file.

<FLOOP_TYPE>

 

Inserts a string indicating the file type of the file.

 

Possible values:  ASCII, DBL ISAM, RELATIVE, USER DEFINED

<FLOOP_UTEXT>

 

Inserts the user text string of the file.

 

 


Copyright © 2021  Synergex International, Inc.