HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
224 Chapter5
Reformatting Specifications
Running REFORMAT
These commands will run REFORMAT using the three files specified in the :FILE
commands. Next, issue the following commands:
:FILE OUTENTITY =
outputfilename
;ACC=APPEND
:FILE BATCH=
secondbatchfilename
:RUN REFORMAT.PUB.SYS
The outputfile now contains the reformatted data from the first and second batch files.
Using a User-Defined Command
You may want to combine the three :FILE commands required to run REFORMAT into
one user-defined command (UDC). You enter a UDC through a text editor, as follows:
REFORMAT REFSPECS, DATA, OUTPUT=$STDLIST
FILE REFENTITY =!REFSPECS
FILE BATCH=!DATA
FILE OUTENTITY =!OUTPUT
FILE REFLIST;DEV=LP
FILE TESTLIST;DEV=LP
RUN REFORMAT.PUB.SYS
Use the SETCATALOG command to set the UDC.
The UDC definition is recorded by the MPE :SETCATALOG command. Now, all you need to
do in order to run REFORMAT, is to enter the following command:
:REFORMAT
reformatfilename, batchfilename, outputfilename
Suppose your reformat file is named REF1, your batch file is named BAT1, and your output
file is OUT1, run REFORMAT as follows:
:REFORMAT REF1, BAT1, OUT1
Streaming REFORMAT
You may also want to stream REFORMAT. You must first create a text file of the
commands to run the job through a text editor, and then issue the MPE :STREAM command
to actually run the program. For example:
!JOB USER.ACCOUNT
!FILE REFENTITY =REF1
!FILE BATCH=BAT1
!FILE OUTENTITY =OUT1
!FILE TESTLIST;DEV=LP
!FILE REFLIST;DEV=LP
!RUN REFORMAT.PUB.SYS
!EOJ
To stream this job, assuming you named the text file REFSTREM, use the following
command:
:STREAM REFSTREM