When SAS Data Integration Studio jobs are executed
in batch mode, a number of SAS options can be used to preserve intermediate
files in the Work library. These system options can be set as described
in
Set SAS Invocation Options on Jobs.
Use the
NOWORKINIT system option to prevent SAS from erasing existing Work
files on invocation. Use the NOWORKTERM system option to prevent SAS
from erasing existing Work files on termination.
For example,
to create a permanent SAS Work library in UNIX and PC environments,
you can start the SAS Workspace Server with the WORK option to redirect
the Work files to a permanent Work library. The NOWORKINIT and NOWORKTERM
options must be included, as follows:
C:\>"C:\Program Files\SAS\SAS
9.2\sas.exe"
-work "C:\Documents and Settings\sasapb\My Documents\My SAS Files\My SAS Work
Folder"
-noworkinit
-noworkterm
This redirects
the generated Work files in the folder My SAS Work Folder.
To create
a permanent SAS Work library in the z/OS environment, edit your JCL
statements and change the WORK DD statement to a permanent MVS data
set. For example:
//STEP1 EXEC SDSSAS9,REGION=50M
//* changing work lib definition to a permanent data set
//SDSSAS9.WORK DD DSN=userid.somethin.sasdata,DISP=OLD
//* other file defs
//INFILE DD ... .
CAUTION:
If you redirect Work files to a permanent library,
you must manually delete these files to avoid running out of disk
space.