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.
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 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:
The following are example export commands:
To export to a Partitioned data set:
MFDAS EXPORT {BINARY | TEXT} {filename|filter} TO PDS pdsname MEMBER memname
To export to a QSAM data set:
MFDAS EXPORT {BINARY | TEXT} filename TO QSAM qsamname