Exporting Data

You can export individual files, or a collection of files specified by a filter, to a partitioned data set, source code control system, or you can export entire QSAM data sets. You can optionally specify a control file containing one or more commands to enable MFDAS to run them as a batch. To do this, place the commands in a control file with any name, without the preceding MFDAS parameter, then run MFDAS with the parameter @filename, where filename is the name of the control file.

Note: You can configure user exits to perform actions after a successful export.

Text or binary transfers are possible. Use the BINARY or TEXT operand to override the default transfer type for the type. The default transfer type for PDS, Librarian, Panvalet, or Endevor is TEXT. The default transfer type for QSAM is BINARY.

The FILENAME parameter can specify a specific workstation file name, or can include special filter characters to enable multiple exports to occur based on the special filter characters that you specify. If you use any of these special filter characters to cause one or more files to be exported, then you must specify the MEMBER parameter as an asterisk (*) as the member name will be replaced by the file name. The valid special filter characters are:

*
Any characters can follow.
?
Any character in this position.

Example

The following are example export commands:

PDS

To export to a Partitioned data set:

MFDAS EXPORT {BINARY | TEXT} {filename|filter} TO PDS
pdsname
MEMBER memname
Librarian

To export to a Librarian data set:

MFDAS EXPORT {BINARY | TEXT} {filename|filter} TO LIB
libname
MEMBER memname
Panvalet

To export to a Panvalet data set:

MFDAS EXPORT {BINARY | TEXT} {filename|filter} TO PAN
panname
MEMBER memname
Endevor

To export to an Endevor data set:

MFDAS EXPORT {BINARY | TEXT} {filename|filter} TO END
ENV 'env' SYS 'sys' SUB 'sub'
MEMBER memname
TYPE memtype
[CCID change-control-id]
[COMMENT user-comment]
[OVERRIDE SIGNOUT]
[LOCK={YES | NO}]
[COMMENT user-comment]
[BYPASS GEN]
[PGRP processor-group]
Note: This command always exports to stage 1. You cannot use this command to promote a stage 1 entity to a stage 2 entity.
QSAM

To export to a QSAM data set:

MFDAS EXPORT {BINARY | TEXT} filename TO QSAM
qsamname