EXTRACT Examples

Example:

       $ MUPIP EXTRACT -NOLOG FL.GLO
       

This command instructs EXTRACT to create the global output file, FL.GLO, (which consists of all global variables in the database) without displaying statistics on a global-by-global basis. Because no label is specified, the first record in FL.GLO contains the text string "GT.M MUPIP EXTRACT."

Example:

       
       $ MUPIP EXTRACT -SELECT=DRG /dev/tty
       

This command instructs EXTRACT to dump the global ^DRG to the device (file-name) /dev/tty.

Extract -FORMAT=GO Header Label

The first record of a GO format data file contains the header label, "GT.M MUPIP EXTRACT," as text.

Extract --FORMAT=BINARY Header Label

The first record of a BINARY format data file contains the header label. The header label is 87 characters long. The following table illustrates the components of the header label.

BINARY Format Data File Header Label

 

CHARACTERS

EXPLANATION

1-26

Fixed-length ASCII text: "GDS BINARY EXTRACT LEVEL 2".

27-40

Date and time of extract in the $ZDATE() format:"YEARMMDD2460SS".

41-45

Decimal maximum block size of the union of each region from which data was extracted.

46-50

Decimal maximum record size of the union of each region from which data was extracted.

51-55

Decimal maximum key size of the union of each region from which data was extracted.

56-87

Space-padded label specified by the -LABEL qualifier.