
Using SORTWK Datasets
User Reference
Connectivity Systems, Inc.—Copyright © 2006
Use Pursuant to Company Instructions
7-43
Using SORTWK Datasets
Description To provide optimal use of disk work space, SORTWK datasets should be
defined as temporary datasets and deleted as soon as they are no longer in
use.
DSN Catalog There are two DSN Catalog requirements to consider.
Catalog SORTWK datasets as work. If you use Online Manager,
specify WRK. If you use TSIDMNT, specify WRK=YES.
Use the CWDS facility or partition/CPU-independent datasets so
that the datasets can be processed in any partition without
conflict.
JCL
Requirements
You can use various BIM-EPIC options, listed below, to delete SORTWK
areas when the sort is complete. These options include:
Controlled SORTWK datasets are deleted automatically at end of
job.
Common work datasets ($$$) are also deleted at end of job.
If the sort program closes SORTWK, use the DLBL option code
D or the DD parameter DISP=(,DELETE) to delete SORTWK at
close.
If the sort program does not close SORTWK, use the DLBL
option code D or the DD parameter DISP=(,DELETE) and
execute TSIDDEL after every sort step.
For jobs that contain multiple sort steps, SORTWK datasets should be
deleted after each sort step, using either option 3 or option 4 above.
Pre-Open
Checking
All sort functions check specific SYS numbers to determine the device
type for each dataset that is opened. The search stops as soon as a SYS
number is found. The sort functions search several sources, in the order
listed below, for the SYS number used for each dataset. These sources
are:
The SYS number found in the VSE label area for disk datasets
(from the EXTENT statement or the DD OPTION=SYSnnn
parameter)
Sort control statements (SORTIN, SORTOUT, SORTWK
keywords) which TSIDSRT can modify if necessary
Comentarios a estos manuales