Describes the execution of the Micro Focus Generator from the command line.
The MFG command:
MFG <inputfile> [<outputfile>] ... /RunRule=EXEC|COMPile [... /CARDin=drive:\path\filename] [... /CHARacterS,[(LINE|Rule|VARiable|VariableTERM| ... LeftEVAL|RightEVAL|EVALs)]] [... /[NO]CompilationDATA] [... /[NO]CompilationRePorT] [... /DataDefinition,[(Name=name)] ... [(DynamicLinkLibrary=drive:\path\DLLfilename)] ... [(eXtension=value)] ... [(File)[(FileBufferSize=MIN|MAX|<value>)] ... [(FileBufferType=Full|Line|None)] ... [(LANGuage=CoBol|CoBoL2|CoBoLII|SCoBol|TeXT)]] ... [(Path=drive:\path\filename) ... [(FileBufferSize=MIN|MAX|<value>)] ... [(FileBufferType=Full|Line|None)] ... [(LANGuage=CoBol|CoBoL2|CoBoLII|SCoBol|TeXT)]] ... [(SearchMode)[(FirstFound|Latest)]]] [... /[NO]ERRorOPTion,[suboption]] [... /Help|? [(optionname)]] [... /LANGuage,(CoBoL|CoBoL2|CoBoLII|SCoBol|TeXT)] [... /LeftMARgin=colmunnumber] [... /RightMARgin=colmunnumber] [... /LOGfile=drive:\path\logfilename] [... /macro=drive:\path\MACROfilename] [... /mainIN=drive:\path\MAININfilename] [... /MCS=screengenerationname] [... /MDB=databasetarget] [... /MDB=datacommunicationtarget] [... /[NO]NewBuiltinWarning] [... /PARMin=drive:\path\controlfilename] [... /postsOUT=drive:\path\outputfilename] [... /PREServe,[(ALL|CoMmeNTs|LINEnumbers|LinePrefix| ... LineSuffix] [... /ProjectGroup=drive:\project\group] [... /PSB=PSBname] [... /RePorT=drive:\path\reportfilename] [... /RunMode,[(EXECute|COMPile|UNParse)]] [... /SearchMode,[(FirstFound|Latest)] [... /TarGeTCOMPiler,[(ASseMbly|BASic|CoBoL|CoBoL2|FORTran| ... JCL|PAScal|PLI|SCoBol|TeXT)]] [... /[NO]TRACE,[(ALL|[NO]AST|[NO]EVALMESSages|[NO]LASTstmts| ... [NO]UNParse|[NO]VARiableS)]] [... /[NO]VERbose,[(ALL|HeLP|[NO]INCL[udemessages]| ... [NO]ProGraMDLLmessages)]]
You could not use /RUN=COMP, because there are other RunMode options that start with /RUN.
For compiling a file containing rule source to be compiled.
For compiling a DLL file to receive the compiled input file.
For compiling, the default is COMPILE.
Read a file called MAININ and write a file named POSTSOUT, both in the current directory.
MFG
Read myrule.fmp and send the generated output to a file named POSTSOUT.
MFG myrule.fmp
Read myrule and send the generated output to gened.out.
MFG myrule gened.out
Read myrule.fmp and send the compiled output to myrule.dll. The RunRule option is appropriately set to COMP.
MFG myrule.fmp myrule.dll /RM=COMP
There are other ways to specify the MAININ and POSTSOUT input and output files. See the Examples section of /mainIN and /postsOUT for more information.
Comments: