Examples

Example 1: Equivalent to an ordinary compilation with -macro.

The command line

mfplx -macro sample.pl1 -#

produces:

on Windows:

mfpp sample.pl1 -pp sample.pp 
mfpli sample.pp -o sample.obj 
rm -f sample.pp 
ldpli sample.obj

Example 2: Equivalent to an ordinary compilation with -macro and two preprocessors.

The command line

mfplx - sql db2 -macro sample.pl1 -cics -#

produces:

on Windows:

mfpp sample-pl1 -pp sample.pp 
mfcics -i sample.pp -o sample.pp1 
mfpp sample.pp1 –pp sample.pp2
mfexecpp sample.pp2 –sql db2 -o sample.pp3
mfpli sample.pp3 -o sample.obj
rm -f sample.pp sample.pp1 sample.pp2 sample.pp3 
ldpli sample.obj

Example 3: Run macro preprocessor and CICS preprocessor only, preserving the intermediate output files.

The command line

mfplx -E sample.pl1 -macro -cics -#

produces:

mfpp sample.pl1 -pp sample.pp 
mfcics -i sample.pp -o sample.pp1
mfpp sample.pp1 –pp sample.pp2

Example 4: Ordinary compile, preserving CICS preprocessor output.

The command line

mfplx -cics -ppcics cicsout.out sample.pl1 -#

produces:

on Windows:

kixplt -i sample.pl1 -o cicsout.pl1
mfpli cicsout.pl1 -o sample.obj 
ldpli sample.obj

Example 5: Multiple compilations.

The command line

mfplx -sql db2 -cics sample.pl1 sample2.pl1 -#

produces:

on Windows:

sample.pl1:
mfpp sample.pl1 -pp sample.pp
mfcics -i sample.pp -o sample.pp1
mfpp sample.pp1 -pp sample.pp2
mfexecpp sample.pp2 –sql db2 -o sample.pp3
mfpli sample.pp3 -o sample.obj
del sample.pp sample.pp1 sample.pp2 sample.pp3
sample2.pl1:
mfpp sample2.pl1 -pp sample2.pp
mfcics -i sample2.pp -o sample2.pp1
mfpp sample2.pp1 -pp sample.pp2
mfexecpp sample.pp2 –sql db2 -o sample2.pp3
mfpli sample2.pp3 -o sample2.obj
del sample2.pp sample2.pp1 sample.pp2 sample2.pp3
ldpli -sql db2 sample.obj sample2.obj