BATCH - compile C programs in batch.

Description:

Note: in TSS, you can compile programs that run in batch by using the "+Batch" option on the compilation command; see "expl~c~command".

Compiling programs in batch is essentially the same as compiling in TSS. The compiler options are mostly identical, but options that imply loading or calling the library editor are not allowed. The command line is read as the first line on filecode CZ, and can be given using any GCOS file control card. Note that including the command line after a $DATA card limits the line length and removes case distinction (all characters are lower case) since the line will be translated into a BCD card image. Case may be preserved (but line length still limited) through the use of the pseudo-control cards $ASCII and $ENX.

The following JCL compiles a source file and leaves the output in filecode B*.

$      select  &system/profile.prod/ssc
$      select  &cl00rp/jcl/compile
<command line>

To load a program in batch, the following JCL is suggested.

$      ident   <accounting info>
$      select  &system/profile.prod/ssc
$      lowload
$      option  nofcb
$      library <filecodes for libraries>
<compile and assembly activities>
$      select  &cl00rp/jcl/batchload
<prmfl cards for other libraries>
$      endjob

If loading for TSS, the select file "&cl00rp/jcl/tssload" should be used instead of "&cl00rp/jcl/batchload", and the "nogo" and "save" options should be used on the "$ options" card. If the program is to be saved, a file should be supplied on filecode H* and the "save/" option supplied on the $OPTION card.

The object deck deck can be edited into a random library using the same procedure used for other languages, using the Ranedit program supplied as part of the UW Tools package.

Copyright © 1996, Thinkage Ltd.