HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)

400 Chapter7
USING FORMSPEC IN BATCH MODE
SAMPLES OF FORMSPEC IN BATCH MODE
Example
<< This command file updates the forms files, FORMSF1 and FORMSD2. >>
<< 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 fomrs 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 to current forms file >>
DELETE FORMB << in case they already exist. >>
COPY FORMA INTO MASTERFS.PUB << Copies forms to current forms file >>
COPY FORMB INTO 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 new 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. >>