MFDAS

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

Syntax

ALLOCATE
MFDAS ALLOCATE PDS <dsname> CYL|TRK|BLK <number> LRECL <number>
BLKSIZE <number> RECFM FB|FBA|FBM|VB|VBA|VBM|F|FA|FM|FSA|FSM|U 
DIR <number> [VOL <volser>]
MFDAS ALLOCATE SEQ CYL|TRK|BLK <number> LRECL <number> 
BLKSIZE <number> RECFM FB|FBA|FBM|VB|VBA|VBM|F|FA|FM|FSA|FSM|U
[VOL <volser>]
MFDAS ALLOCATE PDS <dsname> EXT <extension>
AMS
MFDAS AMS <cmd> /AMSLOG="<filename>"
MFDAS AMS FILE <filename> /AMSLOG="<filename>"
AWM
MFDAS AWM /AMSLOG="<filename>" "TAUZCIF <parms>"
BINDER
MFDAS BINDER <filename> PDS <dsname> MEMBER <mname> [XREF]
BROWSE
MFDAS BROWSE <filename> FROM PDS <dsname> MEMBER <mname>
MFDAS BROWSE <filename> FROM QSAM <dsname>
CANCEL | HOLD | RELEASE
MFDAS CANCEL|HOLD|RELEASE <jobid>
CATDCB
MFDAS CATDCB <catalogsearchfilter> ALL
COMPRESS
MFDAS COMPRESS <dsname>
DELETE
MFDAS DELETE <dsname> [MEMBER <mname>]
MFDAS DELETE JES <jobid> [PURGE]
DIR
MFDAS DIR FOOT <dsname> [FILTER <mname>]
MFDAS DIR JESDD <jobid> ALL [INPUT]
MFDAS DIR PDS <dsname> [PREFIX <prefix>|FILTER <filter>] FULL 
EXPORT | CHECKIN
MFDAS EXPORT|CHECKIN [NOEMPTYCHECK] [LOCK] [RJSE [NOTRANSLATE]] [BINARY|TEXT] [NODFCONV] <filename>|<filter> TO PDS <dsname> MEMBER <mname> [OVERRIDESCLM]
MFDAS EXPORT|CHECKIN [LOCK] [BINARY|TEXT] <filename> TO QSAM <dsname>
GETENQI
MFDAS GETENQI PDS *|<dsname> [MEMBER <mname>]
MFDAS GETENQI QSAM *|<dsname>
HELP
MFDAS HELP
IMPORT | CHECKOUT
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM DB2 <dsname> <location> <authid> 
<tablename>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM ESDS|KSDS|RRDS[_FIXED] <dsname> 
[NODFCONV]
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM IMS <dsname> <databasename> 
<segmentnamelocation> <segmentdatalocation>
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM JES <jobid> [EXECUTING] [INPUT]
MFDAS IMPORT|CHECKOUT [BINARY|TEXT] <filename> FROM JESDD <jes_ddname> JES <jobid> [EXECUTING] [INPUT]
MFDAS IMPORT|CHECKOUT [LOCK] [BINARY|TEXT] <filename> FROM PDS <dsname> MEMBER <mname>|<filter>
MFDAS IMPORT|CHECKOUT [LOCK] [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>
MFDAS RENAME <dsname> NEWNAME <dsname>
SETUSER
MFDAS SETUSER <userid> <password>
SUBMIT
MFDAS SUBMIT <filename>|<filter>
STATUS
MFDAS STATUS [LIST] <jobname>|<filter> [FILTER filter]
TERMINATE
MFDAS TERMINATE
TSO
MFDAS TSO <TSO command>
UNLOCK
MFDAS UNLOCK PDS <dsname> MEMBER <mname>
MFDAS UNLOCK QSAM <dsname>
VERSION
MFDAS VERSION

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

  • /AMSLOG="<amslogPath>" - on AMS command if there was an IDCAMS command failure writes the SYSPRINT DD to the specified location. On TSO command writes SYSTSPRT DD to the specified location.
  • /FIXEDVSAM
  • /NUMREC=<records to import>
  • /CODEPAGE=<codepage> See Supported codepages for more information.
  • /DATACODEPAGE=<codepage> See Supported codepages for more information.