01.05.2013 Views

Using Mainframe Access (MFA) - Micro Focus

Using Mainframe Access (MFA) - Micro Focus

Using Mainframe Access (MFA) - Micro Focus

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Using</strong> <strong>Mainframe</strong> <strong>Access</strong> (<strong>MFA</strong>) from a COBOL program<br />

Import command examples:<br />

JES<br />

To import from the mainframe JES2 or JES3 spool:<br />

MFDAS IMPORT filename FROM JES JOB#####|filter<br />

PDS<br />

To import from a Partitioned data set:<br />

MFDAS IMPORT [BINARY | TEXT] filename FROM PDS pdsname MEMBER memname|filter<br />

Librarian<br />

To import from a Librarian data set:<br />

MFDAS IMPORT [BINARY | TEXT] filename FROM LIB libname MEMBER memname|filter<br />

Panvalet<br />

To import from a Panvalet dataset:<br />

MFDAS IMPORT [BINARY | TEXT] filename FROM PAN panname MEMBER memname|filter<br />

Endevor<br />

To import from an Endevor data set:<br />

MFDAS IMPORT [BINARY | TEXT] filename FROM END ENV 'env' SYS 'sys' SUB 'sub' MEMBER<br />

memname|filter TYPE memtype CCID ccid COMMENT user comment<br />

CCC/LCM<br />

To import from a CCC/LCM data set. If you wish to lock this member out, then specify the LOCK Y<br />

parameter.<br />

MFDAS IMPORT [BINARY | TEXT] filename FROM LCM lcmname SYSTEM systemid CONFIG configid<br />

MEMBER memname|filter TYPE memtype [LOCK y]<br />

In-House System<br />

To import from your own in-house source code control system dataset:<br />

MFDAS IMPORT [BINARY | TEXT] filename FROM IHS ihsdatasetname MEMBER memname|filter<br />

QSAM<br />

To import from a QSAM data set with automatic data conversion:<br />

MFDAS IMPORT [BINARY | TEXT] filename FROM QSAM qsamname<br />

VSAM KSDS<br />

To import from a VSAM KSDS data set with automatic data conversion and produce a variable<br />

length workstation indexed file. If you wish to produce a fixed length indexed file, then use KSDS-<br />

FIXED instead of KSDS.<br />

MFDAS IMPORT filename FROM KSDS vsamksdsname<br />

VSAM ESDS<br />

To import from a VSAM ESDS data set with automatic data conversion and produce a variable<br />

Page 3 of 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!