BATCH - how to use TF in batch.

Basic control cards:

$      IDENT    *,<banner>
$      SELECT   UW_TOOLS/TF
<tf command line>
$      ENDJOB

The TF command line MUST follow the SELECT card. The default maximum run time is four centi-hours. To change it, add after the TF command line a card of the form,

$      LIMITS   nn

where "nn" is the number of centi-hours desired.

If output is going to the printer (because you said something like "tf filename"), you may want to alter the default limits of 1000 print lines. To do so, include a LIMITS card of the form

$      LIMITS   4,,,nnk

where "nn" in this case is the number of thousands of print lines to be set as the new limit. For example, specifying "10k" would set the upper limit to 10,000 lines.

Temporary files in batch:

If you want to save the TF output for a later activity, you must arrange for it to be written onto a disk file which will be kept till a later activity. Normally, you would use a FILE card with suitable parameters. In order to refer to the file code in your TF command, you use the convention that an arbitrary file code may be referred to as if it were a file called "fc*<filecode>", where <filecode> is the two character batch file code. For example, suppose you wanted to TF some file in batch, with the main output going to file code OT and the index output going to file code DX. The JCL might look like this.

$      IDENT    *,BANNER
$      SELECT   UW_TOOLS/TF
tf fbaggins/paper.t >fc*ot i=fc*dx
$      FILE     OT,X1S,10L
$      FILE     DX,X2S,2L
       ...

As you may already know, when you refer to the file in a later activity, it need not have the same file code, but must have the same "logical unit designator", which in our example is X1 for the main output and X2 for the index output.

Copyright © 1996, Thinkage Ltd.