HPlogo QUERY/V Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 2 USING QUERY/V

QUERY COMMANDS

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

QUERY commands are divided into seven categories according to their function. The categories can be summarized as follows:

CATEGORYFUNCTION
EnvironmentDefines data base(s) and conditions for QUERY execution.
RetrievalLocates information to be used by other commands.
ReportingPrints specified information.
UpdatingModifies the data base(s).
ProcedureOperates on procedures in the current Proc-file.
OperationOperates on XEQ files.
UtilitySee below.

Utility commands are used for a variety of tasks. The FORM, SHOW, and VERSION commands show the current state of QUERY. The REDO and LISTREDO commands allow you to list, edit, and re-execute a previous command. The ASSIGN, RELEASE, and SETLOCKS commands operate on the data set or data base locking option. The TRANSBEGIN, TRANSEND, and TRANSMEMO commands operate on the transaction logging facility. SAVE and UNDO operate on the internal select file used by QUERY during execution. The HELP command is an interactive facility used to determine the syntax and function of QUERY commands. EXIT is used to terminate QUERY execution.

Table 2-1 “Command Categories and Functions” lists all the QUERY commands and their functions by category. The commands are discussed in detail in Section 3.

Table 2-1 Command Categories and Functions

CATEGORYCOMMANDFUNCTION
EnvironmentCLOSECloses a data base opened with the MULTIDB command.
 DATA-BASE=Specifies the primary data base, password, and access mode.
 DATA-SETS=Specifies the data set list for the primary data base.
 DBLIST=Informs QUERY which data bases to access for multiple data set retrieval and reporting.
 DEFINESpecifies or shows the current QUERY environment for the primary data base.
 JOINDefines the compound data set used for multiple data set retrieval.
 JOIN PROCEDUREExecutes a JOIN procedure stored in the current Proc-file.
 LANGUAGE=Shows the user language.
 MODE=Specifies mode of access to the primary data base.
 MULTIDBUsed to open additional data bases and define or show their environment specifications.
 OUTPUT=Specifies the output device.
 PASSWORD=Specifies the password to access the primary data base.
 PROC-ENTITY =Specifies the name of the current Proc-file.
RetrievalFINDLocates data entries in the data base.
 FIND ALLLocates all entries in the data set regardless of the data item value specified.
 FIND CHAINLocates data entries from a detail data set and one or more of its corresponding master data sets.
 FIND PROCEDUREExecutes a FIND procedure stored in the current Proc-file.
 MULTIFINDRetrieves compound data entries from a compound data set specified by the most recent JOIN command.
 MULTIFIND ALLRetrieves all compound entries from a compound data set specified by the most recent JOIN command.
 MULTIFIND PROCEDUREExecutes a MULTIFIND procedure stored in the current Proc-file.
 SUBSETRetrieves data entries from a FIND or MULTIFIND.
 SUBSET PROCEDUREExecutes a SUBSET procedure stored in the current Proc-file.
UpdatingUPDATE ADDAdds data entries to the data base.
 UPDATE DELETEDeletes data entries from the data base.
 UPDATE REPLACEModifies the values of data items.
 UPDATE PROCEDUREExecutes an UPDATE ADD, UPDATE DELETE or UPDATE REPLACE procedure stored in the current Proc-file.
ReportingLISTPrints data entries with automatic formatting.
 REPORTReports the data entries located in the previous retrieval.
 REPORT ALLPrints data item values of entries located by the last retrieval command without formatting.
 REPORT PROCEDUREExecutes a REPORT procedure stored in the current Proc-file.
OperationCOMMENTAllows comments to be added to an XEQ file.
 XEQExecutes QUERY commands from an XEQ file.
ProcedureALTERModifies a procedure stored in the current Proc-file.
 CREATEStores a command as a procedure in the current Proc-file.
 CREATE SPACEReports the number of unused records in the current Proc-file.
 DESTROYDeletes a procedure from the current Proc-file.
 DISPLAYLists a procedure stored in the current Proc-file.
 DISPLAY LISTLists the names of the procedures in the current Proc-file.
 RENAMEChanges the name of a procedure in the current Proc-file.
UtilityASSIGNAllows a user to enable or disable the locking option.
 EXITTerminates QUERY execution.
 FORMLists information about the data bases currently being accessed.
 HELPLists information about the function, format, and parameters of QUERY commands.
 LISTREDODisplays up to the last 20 commands issued.
 REDODisplays the specified command for editing and executes the edited command.
 RELEASERemoves all locks set by the SETLOCKS command.
 SAVESaves the retrieved data entries in a self-describing file.
 SETLOCKSPrevents automatic unlocking of a data set.
 SHOWDisplays the current data base list, JOIN, LOCKOPTION, and user language.
 TRANSBEGINMarks the beginning of a logical logging transaction.
 TRANSENDMarks the end of a logical logging transaction.
 TRANSMEMOAllows a message to be written to the log file.
 UNDORestores the entries retrieved from the previous FIND, MULTIFIND or SUBSET.
 VERSIONDisplays the current version of QUERY and lists the IMAGE procedures and program files.

 

Feedback to webmaster