BATCH - syntax and explanations of batch SRCLIB directives.

Description:

This describes the syntax of SRCLIB BATCH directives, such as would be given to the SRCLIB program in the batch environment. For the syntax of arguments to the TSS interface to SRCLIB, see "explain srclib".

Batch directive commands may start in any column. Columns 73 through 80 are ignored. Batch directives MUST be in upper case. The line containing the directive must end in at least one blank. (The TSS SRCL command supplies this blank for you.)

SRCLIB member names are case-sensitive; "APPEND myfile" is not the same member as "APPEND MYFILE".

For further details of the meaning of the more sparsely documented directives, see "explain srcl".

Options:

CLEAR
Clear the source library.
TABLE
List the names of the source library members on the P* file.
LIST [name]*
If "name" is missing, the entire source library is listed in BCD on the P* file. Otherwise, just the named member is listed.
DELETE name[,name]*
Delete the named members from the source library.
APPEND name [filecode]
If "filecode" is missing, input is taken from after the directive up until a card with just "*END*" is found. The file is appened to the library under the given name.
EXTRACT [name] filecode [-BCD]
If "name" is missing, the whole source library is dumped to the filecode. SRCLIB directives are interspersed to enable this output file to be directly used to recreate the library. If "-BCD" is specified, the output file will be converted to BCD instead of being left as ASCII.
MODIFY name
This directive must be followed immediately by "-ALTER" card sequences:
-ALTER lineno1[,lineno2]
<...text for -alter...>
-ALTER lineno1[,lineno2]
<...text for -alter...>
*END*

If two line numbers are given, the following text replaces the indicated range of lines in the the text of the source member. If only one line number is present, the following text is inserted before the indicated line in the source member. The "MODIFY" section is ended by the "*END*" card. Many "-ALTER" sequences may follow any one MODIFY directive. They must, however, appear in ascending order.

See Also:

expl srclib
the TSS interface to SRCLIB

Copyright © 1996, Thinkage Ltd.