XTAB is a logical programming language. It is designed primarily to do cross tabulations, but can be used for file processing and report generation as well.
XTAB operates by reading an input file, one record at a time, and giving the user the capability to interigate, and alter the data of each record, as well as specify the parameters for one or more cross tabulation tables.
XTAB is a lower case language.
An XTAB program consits of a set of sections, with each section containing a set of commands.
The sections:
*files*variables*init*instructions*term*tablesThe
*filessection is manditory, and the sections must appear in the above order.
The*sectionmust begin in column 1.
A comment is line that begins with"* ". (Star space)
A blank line is acceptable.Within each section a set of commands is valid.
*sectionAbbreviation Section Description *files*fDefines files and global values. *variables*vDefines variables used by the program. Both those that are positions in the input file, and those that stand alone. Variables are either strings or numbers (or both). *initSame as *instructions, however executed once before any records are read. *instructions*iExecuted after each record is read. *termSame as *instructions, however executed once after all records are read. *tables*tDefines parameters for cross tabulation table specification.