BATCH - how to use BSORT in batch.

Basic control cards:

$      IDENT    *,<banner>
$      SELECT   UW_TOOLS/BSORT
<bsort command line>
$      <other control cards>
$      ENDJOB

The BSORT command line MUST follow the SELECT card. To change the default run time, after the BSORT command line should come a card of the form

$      LIMITS   nn

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

If you omit the command line completely, BSORT will by default assume that file code I* and IN are input, and file code OT (or P* if OT is not present) is output. In this case, BSORT will simply sort on the whole record.

File codes in batch:

In order to refer to a file code in your BSORT 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 sort some file in batch, with the main output going to file code OT. The JCL might look like this.

$      IDENT    *,BANNER
$      SELECT   UW_TOOLS/BSORT
bsort fbaggins/paper.t >fc*ot
$      FILE     OT,X1S,10L
       ...

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

Copyright © 1996, Thinkage Ltd.