|
|
QUERY/V Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 QUERY/V COMMANDSOUTPUT= |
|
Selects the output device for the FORM, HELP, DISPLAY, LIST, REPORT, and VERSION commands.
The default output device for the commands listed above is $STDLIST unless you use this command to change it. You can also use this command to change the output device back to $STDLIST at any time after setting it to QSLIST. If you want to change the device associated with QSLIST while operating QUERY in session mode, you can use the BREAK key or terminate QUERY to enter the MPE :FILE command, or you can enter the :FILE command before running QUERY. If you are operating in job mode, you can place a :FILE command in your job preceding the :RUN QUERY command. All error messages and QUERY prompts are always sent through the $STDLIST device, regardless of whether OUTPUT=TERM or OUTPUT=LP. If you want to associate the QSLIST file with a device other than the line printer, you must use the MPE :FILE command and then set OUTPUT=LP. For example:
Device type is a name referring to a class of devices or a specific device. The different device classes and names are set up by the system manager at the time the MPE operating system is configured. You must ask the system manager which name to use for the device you want to associate with QSLIST. QUERY will not output a record longer than 136 bytes (characters) even though the maximum record length for the device may exceed this limit. The following :FILE command is used to send the output to a magnetic tape. In this case, TAPE is the name of the class of devices known as magnetic tapes.
To send output to a disc file, follow the instructions below.
Refer to the MPE Commands Reference Manual for information on using the FILE command. Example 1 In this example, QUERY is running in session mode. QSLIST is equated to a terminal initially. When the output device to QSLIST is changed to LP, the INVENTORY data set is listed on the line printer. When the output device is set to the terminal again, the INVENTORY data set is listed on the terminal.
Example 2 The next example illustrates the method for sending output to a tape device. In this case, a procedure from the Proc-file is listed first on the terminal and then on a tape. The BREAK key is used to return to MPE. QSLIST is equated to a magnetic tape device. QUERY execution is resumed and the output device is changed to QSLIST. The procedure is written to the QSLIST device and the output device is set to the terminal again.
Example 3 In this example, one entry is retrieved with the FIND command, and is displayed with the REPORT ALL command. Next, the BREAK key is used to temporarily return to the operating system. The FILE command redirects QSLIST to a disc file named SAVER which QUERY creates. QUERY execution is resumed. Finally, the OUTPUT=LP and REPORT ALL commands are used to write data to the SAVER file.
|
|