You can export individual files, or a collection of files defined by a filter, to a partitioned data set or source code control system, or you can export entire QSAM data sets. You may optionally specify a control file containing one or more commands and allow MFDAS to run them as a batch. To do this, place the commands in a control file of 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, 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 included special filter characters to allow 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. These special filter characters are:
Example export commands are shown below.
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]
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