EXTRACTS

Syntax: EXTRACTS directoryname or filename [ON devicename]

Leave this option blank if you want to use your entry for UPDATES as the default location. If you leave this option blank, EXTRACTS defaults to the destination for UPDATES. Otherwise, this location specifies where Span will write records extracted from the DMSII data sets during replication.

Directory

To specify a directory location, enter the following:

EXTRACTS directoryname/=

Span creates an output file for each data set in the directory specified by directoryname. The title of each output data file is directoryname/datasetname. For example, the following entry:

EXTRACTS DATA/MYDB/= ON DATAPACK

causes the EXTRACTS output file for the CUSTOMER data set to be titled as follows:

DATA/MYDB/CUSTOMER ON DATAPACK

If the data set has variable formats, Span appends the record type number as the last node of the file title. For example, the following entry:

EXTRACTS = ON TAPE

ensures that each data set is written to a separate tape titled data set name. If the data set has variable formats, the tapes are labeled as follows:

datasetname/recordtype

Usercode

You can also specify a usercode as part of the directory name or file title. If so, you must do one of the following:

  • Run Span under that usercode
  • Run Span under a privileged usercode

    A usercode is not required for files output to TAPE.