Previous Topic Next topic Print topic


MFDAS

Use the MFDAS command line utility to perform a range of file-related interactions with the mainframe.

Syntax

ALLOCATE
MFDAS ALLOCATE SEQ|PDS <dsname> CYL|TRK|BLK <number> LRECL <number> BLKSIZE <number> 
RECFM F|V|U[B|S][A|M] [DIR <number>] [VOL <volser>] 
CANCEL | HOLD | RELEASE
MFDAS CANCEL|HOLD|RELEASE <jobid>
CAT
MFDAS CAT <catalogsearchfilter>
CATDCB
MFDAS CATDCB <catalogsearchfilter> [JESDD JOB#]
COMPRESS
MFDAS COMPRESS <dsname>
DELETE
MFDAS DELETE <dsname> [MEMBER <mname>]
MFDAS DELETE JES <jobid> [PURGE]
DIR
MFDAS DIR END ENV <env> SYS <sys> SUB <sub> [PREFIX prefix|FILTER filter] [TYPE type]
MFDAS DIR FOOT <dsname> [FILTER <mname>]
MFDAS DIR JESDD <jobid>
MFDAS DIR LIB <dsname> [PREFIX <prefix>|FILTER <filter>]
MFDAS DIR PAN <dsname> [PREFIX <prefix>|FILTER <filter>] [USERCODE <code>]
MFDAS DIR PDS <dsname> [PREFIX <prefix>|FILTER <filter>]
EXPORT | CHECKIN
MFDAS EXPORT|CHECKIN [BINARY|TEXT] [RJSE] [NOTRANSLATE] <filename>|<filter> TO END ENV <env> SYS <sys>
SUB <sub > MEMBER <mname> TYPE <memtype> [CCID <change-control-id>] [COMMENT <user-comment>]
[OVERRIDE] [SIGNOUT] [BYPASS GEN] [PGRP <processor-group>] [LOCK=YES|NO]
MFDAS EXPORT|CHECKIN [BINARY|TEXT] [RJSE] [NOTRANSLATE] <filename>|<filter> TO LIB <dsname> MEMBER <mname>
MFDAS EXPORT|CHECKIN [BINARY|TEXT] [RJSE] [NOTRANSLATE] <filename>|<filter> TO PAN <dsname> MEMBER <mname>
[USERCODE <code>]
MFDAS EXPORT|CHECKIN [BINARY|TEXT]  [RJSE] [NOTRANSLATE] <filename>|<filter> TO PDS <dsname> MEMBER <mname>
[USERCODE <code>]
MFDAS EXPORT|CHECKIN [BINARY|TEXT]  [RJSE] [NOTRANSLATE] <filename> TO QSAM <dsname>
HELP
MFDAS HELP
IMPORT | CHECKOUT
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] [RJSE] [NOTRANSLATE] <filename> FROM DB2 <dsname> <location> <authid> 
<tablename>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] [RJSE] [NOTRANSLATE] <filename> FROM END ENV <env> SYS <sys> SUB <sub> 
MEMBER <mname>|<filter> STG 1 TYPE <memtype> CCID <change-control-id> COMMENT <user-comment> 
[OVERRIDE] [SIGNOUT] [LOCK=YES]
<tablename>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] [RJSE] [NOTRANSLATE] <filename> FROM ESDS|KSDS|RRDS[_FIXED] <dsname> 
[NODFCONV]
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] [RJSE] [NOTRANSLATE] <filename> FROM IMS <dsname> <databasename> 
<segmentnamelocation> <segmentdatalocation>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM JES <jobid>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM JESDD <jes_ddname> JES <jobid>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM LIB <dsname> MEMBER <mname>|<filter>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM PAN <dsname> MEMBER <mname>|<filter>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM PDS <dsname> MEMBER <mname>|<filter>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM QSAM <dsname>
LOCATE
MFDAS LOCATE <dsname>
PASSWORD
MFDAS PASSWORD <password>
RECALL
MFDAS RECALL <dsname>
RENAME
MFDAS RENAME <dsname> MEMBER <mname> NEWNAME <mname>
SETUSER
MFDAS SETUSER <userid> <password>
SUBMIT
MFDAS SUBMIT <filename>|<filter>
STATUS
MFDAS STATUS [FILTER filter]
TERMINATE
MFDAS TERMINATE

Catalog parameters can appear anywhere, they are processed first and then removed:

  • /CAT=Y
  • /CATLOC=<filename>
  • /CATLOG=<filename>
  • /CATOVERRIDE=<catalogpath>
  • /ENDLOG=<endlogPath> - downloads the Endevor transaction log to the specified location on an END command failure
  • /FIXEDVSAM
  • /LOGLEVEL=ERROR|VERBOSE
  • /NONDYNAMIC
  • /NUMREC=<records to import>
  • /OVERWRITE=Y|N
  • /SHOWDETAILS
Previous Topic Next topic Print topic