Input and output
Data can be read into GenStat data structures using the READ directive or the
FILEREAD procedure:
reads data from an input file, an unformatted file or a text
reads data from a file, assumed to be in a rectangular array
Files can be connected to input, output or other channels during execution of a GenStat program.
Channels can also be closed, terminating the connection, so that they can be attached to other
files.
opens files and connects them to GenStat input/output channels
closes files, freeing the channels to which they were attached
The channel from which input statements are taken can be changed, as can the channel to which
output is sent. It is also possible to send a transcript (or copy) of input and/or output to output files,
to skip sections of input or output files, and to obtain information about the files connected to each
channel.
specifies the channel from which subsequent statements should
be read
returns to the previous input channel
specifies the channel to which future output should be sent
requests a transcript of subsequent input and/or output
skips lines of input or output files
provides details about files opened by GenStat
The contents of data structures can be "printed" into output files or into text structures, using the
PRINT directive. The CAPTION directive produces captions and titles.
Other directives allow system information or details of attributes of structures to be printed, or
syntax details to be obtained. Directive SKIP, as mentioned above, allows blank lines
to be inserted in output files; PAGE moves to the top of the next page.
prints data in tabular form to an output file or text
prints captions and titles in standardized formats
lists details of the data structures that currently exist in your
program
moves to the top of the next page of an output file
repeats the last GenStat diagnostic
prints attributes of data structures and other internal information
provides help information about GenStat
Other information is available from the procedures in the help module of the GenStat
Procedure Library:
provides help information for Library procedures
accesses examples and source code of Library
procedures
prints information about the contents of the Procedure
Library
prints a "Manual" for the Procedure Library
provides the name of the current GenStat Procedure
Library
gives access to the GenStat Notice Board (news, errors,
instructions for authors of procedures etc.)
Menus can be defined:
obtains a response using a GenStat menu
allows the user to decide to convert texts or variates to
factors
presents a sequence of menus to obtain a response from a list
The values of a data structure, with all its defining information, can be stored in a sub-file of a
"backing-store" file. It can then be retrieved in a later job, without the need to repeat the
definitions. The current state of the whole job can also be dumped to an unformatted file, so that
it can be picked up and continued on a later occasion.
stores data structures in a backing-store file
retrieves data structures from a backing-store file
displays the contents of a backing-store file
copies sub-files of backing-store files into a single file
dumps the complete details of a job
reads and restarts a recorded job
GenStat for Windows, has several additional commands for accessing data from spreadsheets,
databases and other systems. However, these may be unavailable in other implementations.
Outputs data structures in foreign file formats, or as plain or
comma-delimited text
Reads data in a foreign file format, and loads it into GenStat or
into a GenStat spreadsheet file
Update an ODBC database table using data from GenStat
Loads data into GenStat from an ODBC database
Sends data or commands to a Dynamic Data Exchange
server
Gets data from a Dynamic Data Exchange (DDE) server
Changes the current directory