This example demonstrates running the AFP2MVS utility on a PDS that contains several fonts:
In this example, the AFP2MVS utility reads each member of the PDS that is associated with the INPUT DD statement (FSI.V112.RPEX1.FONTLIB.FROMPC). Each member is then separated into records and the resulting record-oriented member is written to the PDS associated with the OUTPUT DD statement (FSI.V112.RPEX1.FONTLIB).
Since the file associated with the INPUT DD statement is a PDS, the /I parameter is included to indicate which members to process. In this case, you specify /I=* to indicate that all members are to be processed. In addition, the /N=E parameter is specified to tell the utility to stop processing and issue an error message if it encounters an invalid record in the input file.
In the EXEC statement's PARM parameter, the first forward slash (/) is used to separate any Language Environment (LE) runtime options from the program's command line options. If you need to specify any LE runtime options, place those options before the first forward slash. Any options placed after the first forward slash are considered options for the program being executed.
Documaker-related programs typically use the forward slash (/) or dash (-) as the initial character of a command line parameter, so the number of forward slashes on the command line will total one more than the number of parameters you specified.
//AFP2MVSD EXEC PGM=IEFBR14
//OUTPUT DD DSN=FSI.V112.RPEX1.FONTLIB,
// DISP=(MOD,DELETE),SPACE=(TRK,0),UNIT=SYSDA
//*
//AFP2MVS EXEC PGM=AFP2MVS,PARM='/ /I=*'/N=E'
//STEPLIB DD DSN=FSI.V112.LINKLIB,DISP=SHR
// DD DSN=SYS1.SCEERUN,DISP=SHR
//SYSPRINT DD SYSOUT=*
//INPUT DD DSN=FSI.V112.RPEX1.FONTLIB.FROMPC,DISP=SHR
//OUTPUT DD DSN=FSI.V112.RPEX1.FONTLIB,
// UNIT=SYSDA,SPACE=(CYL,(1,1,1)),DISP=(,CATLG),
// DSNTYPE=LIBRARY,
// DCB=(RECFM=VBM,LRECL=8209,BLKSIZE=23500)
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.