LIBSOURCE procedure

Obtains the source code of a GenStat procedure, PC Windows only (R.W. Payne).


No options


Parameters

PROCEDURE = texts
Procedure names

SOURCE = texts
Texts to store the source code of each procedure

STATEMENT = texts
Saves a command to obtain the source of each procedure (useful if the name has been specified in response to questions from PROCEDURE)


Description

LIBSOURCE provides a convenient way of accessing the source code of a procedure from the GenStat Procedure Library. The name of the procedure is specified by the PROCEDURE parameter. Alternatively, if you are running GenStat interactively, you can type just

LIBSOURCE

and GenStat will list the types of procedure, followed (once you have selected the type) by a list of the procedures themselves. In fact, this is what happens if you select Help followed by Procedure Source from the menu bar of GenStat for Windows. If, you wish to access the same example later, the STATEMENT parameter allows you to save a GenStat text structure containing a command setting the PROCEDURE parameter as required.

   When you are running GenStat interactively, the procedure is put into a new text window. When GenStat is running in batch, the example is printed to the output window. You can also save the source code in a GenStat text structure, using the SOURCE parameter.


Options: none.

Parameters: PROCEDURE, SOURCE, STATEMENT.