HPlogo HP Data Entry and Forms Management System (VPLUS) Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 5 Reformatting Specifications

Using REFSPEC

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

You execute REFSPEC by entering the following command in response to the MPE colon prompt:

:RUN REFSPEC.PUB.SYS

Since REFSPEC runs entirely in block mode, your terminal is placed in block mode automatically.

Like FORMSPEC, REFSPEC prompts for information on menu screens. The information you enter on these menus defines how data in the batch file is to be reformatted and written to an output file. The first menu issued whenever you run REFSPEC is the Reformat File Menu.

If you specify a new reformat file, REFSPEC creates this file and then issues the Forms File Menu so you can specify the forms file through which the data to be reformatted was entered. If you specify an existing reformat file, it is already associated with a forms file so the Forms File Menu is not issued, and the Main Menu is the next menu.

NOTE: If your file has a lockword, you must enter the lockword along with the file name, as filename/lockword. If you do not enter a lockword with the file name and one is required, your terminal hangs. This is because the MPE prompt requesting the lockword is in character mode and cannot be received while your terminal is in block mode. You can recover from this error by doing a hard reset followed by pressing RETURN at least four times, then pressing f8 to exit. How you perform a hard reset depends on what type of terminal you are using; consult your terminal manual for instructions.

Terminating REFSPEC

You can terminate operation of REFSPEC at any time by pressing EXIT to return to MPE control, indicated by the colon prompt (:).

When you next run REFSPEC after terminating and request the same reformat file, the Forms File Menu is skipped and the Main Menu is displayed on the screen. You may then select an option on the Main Menu or you can press MAIN/RESUME to display the Forms File Menu. If you specify a new reformat file on the Reformat File Menu, the next menu issued is the Forms File Menu.

Unexpected Program Interruption

As with FORMSPEC, if the program halts unexpectedly because of a terminal power failure or the user pressing BREAK, control returns to MPE. Refer to Appendix G for the steps to recover from such a situation. After you have recovered, you then press REFRESH to return to the REFSPEC Menu where you were interrupted. The menu is cleared to initial or previously entered values. To ensure against damage to the file, reenter the information on all menus pertaining to the reformat you were creating or modifying at the time of program interruption.

REFSPEC Function Keys

A set of seven function keys, similar to those used for forms design, are used to control execution of REFSPEC. These keys are described in Table 5-1 “Key Definitions”

Table 5-1 Key Definitions

Key

Key Action

PREV FORMAT f1

Go to previous Input Forms Menu (skipping any intervening menus).

NEXT FORMAT f2

Go to next Input Forms Menu (skipping any intervening menus).

f3

Not defined.

REFRESH
f4

Redisplay current menu in its initial state before any specifications were entered, or existing specifications were modified.

PREV
f5

Position to Previous Menu screen in sequence of menus.

NEXT
f6

Position to Next Menu screen in sequence of menus.

MAIN/ RESUME
f7

Request Main Menu or, if Main Menu displayed, return to menu displayed when Main was requested.

EXIT
f8

Terminate REFSPEC and return to MPE control.

 

NOTE: The function keys used by REFSPEC should not be confused with the function keys defined for ENTRY (see Figure 2-2). Although the two groups of keys are physically the same programmable keys, their functions differ significantly.
Feedback to webmaster