GBLMAP[n]

Top  Previous  Next

Keyword Description

Single unique record within a GBL file normally used to hold user defined information pertaining to the field layout of the common records in the GBL file as well any other numerical information relating to the GBL file.

Class

Expression

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

GBLMAP[1 to 1015]

 

Example

Sample code

GBLMAP[4] = TAGCOUNT 'save the number of files tagged for later use in a separate SIG file

 

 

ThumbTack white

There is a single unique GBLMAP record within every GBL file.  GBLMAP contains 1015 slots just like any other GBL file record.  For programmers, It works exactly like a header record in a random access file. GBL files are used to share information among multiple SIG and/or SIZ files.

Suppose you are using all 1015 GBL slots in a GBL record for calculated data but you also need to save/reference data in the same overall structure that is not unique to each record (Date) in the GBL file. It would be redundant and wasteful to save such information daily within each record in the GBL file so instead put such information into GBLMAP[n] Once and retrieve it Once. There are a number of examples of this usage in the sample MVO SIG code.

See also:

GBL, GBL[n], GBLINDEX, Introduction to batch files