HP 3000 Manuals

SAMPLES OF FORMSPEC IN BATCH MODE [ HP Data Entry and Forms Management System (VPLUS/V) ] MPE/iX 5.0 Documentation


HP Data Entry and Forms Management System (VPLUS/V)

SAMPLES OF FORMSPEC IN BATCH MODE 

The following are samples of how FORMSPEC in batch mode is used, first
with a command file and then with the commands directly in the job
stream.

Sample Command File 

FORMSPEC in batch mode can be executed with the following commands:

     :FILE FORMOUT;DEV=LP 
     :RUN FORMSPEC.PUB.SYS;INFO="FORMCMDS.PUB.MFG" 

The MPE :FILE command directs batch mode output (commands and error
messages) to the list device.  The MPE :RUN command with the
INFO=filename parameter executes FORMSPEC in batch mode, taking batch
mode commands from the command file FORMCMDS.PUB.MFG. Remember, you must
first create the command file using a text editor.

Sample Job Stream 

To stream a job using FORMSPEC in batch mode, you must first create the
job file using a text editor.  Then, stream the job using the MPE :STREAM
command.

The following is a listing of a sample job stream which compiles a forms
file and documents its contents:

     !JOB FORMUPDT, MIKE.MFG,FORMS
     !FILE FORMOUT; DEV=LP
     !RUN FORMSPEC. PUB.SYS
     FILE FORMSF1
     COMPILE
     FORMS
     EXIT
     !EOJ

Example 
_______________________________________________________________________________________
|                                                                                     |
|                                                                                     |
|          << This command file updates the forms files, FORMSF1 and FORMSF2.       >>|
|          << FORMSF1 is opened first. Two forms are copied from the forms file     >>|
|          << MASTERFS.PUB. The FORMSF1 is then compiled into the fast forms file   >>|
|          << FASTFRM1. A listing is made of all the forms in FORMSF1.              >>|
|          << FORMSF1 is then closed and FORMSF2 opened as the current forms file.  >>|
|          << Two forms are copied from the forms file MASTERFS.PUB to new forms   >> |
|          << in the current forms file. FORMSF2 is then compiled (note that NO     >>|
|          << fast forms file is produced). The names of the forms in FORMSF2 are   >>|
|          << printed after all modifications to the forms file are complete.  >>     |
|                                                                                     |
|          FILE FORMSF1                      << Opens the forms file to be updated >> |
|                                                                                     |
|          DELETE FORMA                      << Deletes forms in current forms file >>|
|          DELETE FORMB                      << in case they already exist. >>        |
|                                                                                     |
|          COPY FORMA IN MASTERFS.PUB        << Copies forms to current forms file >> |
|          COPY FORMB IN MASTERFS.PUB        << using same form names. >>             |
|                                                                                     |
|          COMPILE INTO FASTFRM1             << Compiles current forms file >>        |
|                                            << to fast forms file. >>                |
|                                                                                     |
|                                                                                     |
|          LIST                              << Lists the forms in FORMSF1. >>        |
|                                                                                     |
|                                                                                     |
|          FILE FORMSF2                      << Closes FORMSF1 and opens FORMSF2 >>   |
|                                            << as new current forms file. >>         |
|                                                                                     |
|                                                                                     |
|          DELETE FORM2A                     << Deletes forms in current forms file >>|
|          DELETE FORM2B                     << in case they already exist. >>        |
|                                                                                     |
|          COPY FORMA IN MASTERFS.PUB TO FORM2A << Copies forms to current forms >>   |
|          COPY FORMB IN MASTERFS.PUB TO FORM2B << file using new form names. >>      |
|                                                                                     |
|          COMPILE                           << Compiles current forms file. >>       |
|                                                                                     |
|                                                                                     |
|          FORMS                             << Prints the names of the forms >>      |
|                                            << in the current forms file. >>         |
|                                                                                     |
|                                                                                     |
|          EXIT                              << Closes FORMSF2 and terminates >>      |
|                                            << FORMSPEC in batch mode. >>            |
_______________________________________________________________________________________



MPE/iX 5.0 Documentation