MPE/iX Commands Reference Manual
> Chapter 5 Command List IIICommands DATA thru EXIT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
DATAEnters data into the system from a device file. (Cannot be used to enter data from $STDIN.) (Native Mode) SyntaxDATA [jsname,] username [/userpass] .acctname [/acctpass] [;filename] Parameters
Operation NotesThis command identifies data to be read from a device file other than your standard job/session input device. It can be used, for example, to input a data file from a spooled input device for later use by an interactive session or a batch job. The DATA command is the only command that can be entered before a job or session is initiated. Files identified by DATA may be input only from magnetic tape on spooled tape drives or with the STREAM command. To designate a set of data as an auxiliary file for your job or session, enter the DATA command followed by the set of data and the EOD command. To access the data, begin your job or session using the same identity ([jsname,]username.acctname) used in the DATA command. If the filename parameter is omitted, several data files can be read from any job or session with the same identity. When entered from magnetic tape, such data must reside in a file on a single tape volume, and the blocking factor must be 1. When the media containing the data file is placed on the tape drive and that device is placed online, MPE/iX reads the entire file. At that point, the job can access the data, which remains available until it is actually read. To submit data from a disk file, you must use the STREAM command. The time-related parameters of the STREAM command may not be used when STREAM is used with the DATA command. The STREAM command will prompt you for both user and account passwords if they exist and are not supplied in the DATA command if the following conditions are met:
UseThis command may be issued from a session or job. Use the STREAM command to input a data file. This command cannot be used directly from $STDIN or from a program.ExamplesA data file is created on disk, and the STREAM command is used to make the file available to your program. To create the file DATAFL on disk, invoke a text editor (like EDITOR) and enter the data beginning with the DATA command and ending with the EOD command. For example:EDITOR /ADD DATA SESSB,BROWN.ACCT1 . . . EOD // /KEEP DATAFL,UNN /EXITTo stream the data file using the STREAM command, enter: STREAM DATAFLTo log on to a session, using precisely the same identity that was used in the DATA command, enter: MPE XL: HELLO SESSB,BROWN.ACCT1To enter a FILE command equating the formal file designator (used by the program) with the stream device (identified by the device class name JOBTAPE), enter: FILE DATAFL;DEV=JOBTAPETo run the program that requires the data, enter: RUN PROGYOnce the data has been read, it is no longer available to the system. If another program requires this data, the data must be entered again with the STREAM command. Related Information
DEALLOCATEDeallocates a program or procedure previously loaded into memory with the ALLOCATE command. SyntaxDEALLOCATE [ PROGRAM | PROCEDURE ] ,name Parameters
Operation NotesDEALLOCATE immediately releases table entries belonging to a program file or procedure that has been allocated. If the program is currently executing, the command takes effect once the program or procedure is no longer in use. You may use a comma (,), a semicolon (;), and an equal sign (=) as delimiters.
UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command. Any program for which a user has EXECUTE access can be deallocated. A user with system supervisor (OP) capability can deallocate any program.ExampleTo deallocate a program file named PROGEX, enter:DEALLOCATE PROGEXDEALLOCATE does not give back memory; it gives back table entries. Related Information
DEBUGInstructs MPE/iX to enter the system debugger. (Native Mode) SyntaxDEBUG [commands] Parameters
Operation NotesThe DEBUG command enters the system debugger. An optional parameter, commands, defines a string of system debugger commands that are executed when the debugger is invoked, but before the debugger prompt is displayed. If the string contains commands that return the user to the command interpreter, those commands are executed. Any remaining commands are pushed onto a command stack. Another invocation of the DEBUG command executes the commands saved on the stack. If you invoke DEBUG X;Y;Z and the command X returns control to the CI, then DEBUG A;B;C executes the commands A;B;C;Y;Z.UseThis command may be issued from a session, program, or in BREAK. It may not be issued from a job. Pressing Break has no effect on this command. Privileged mode (PM) capability is required to use this command.ExampleTo produce a stack trace and return to the command interpreter:DEBUG TRACE;C DEBUG XL A.00.00 HPDEBUG Intrinsic at: a.006b4104 hxdebug+$130 PC=a.006b4104 hxdebug+$130 * 0) SP=40221c58 RP=a.006b8e7c exec_cmd+$73c 1) SP=40221ac8 RP=a.006ba41c try_exec_cmd+$ac 2) SP=40221a78 RP=a.006b8638 command_interpret+$274 3) SP=40221620 RP=a.006bae5c xeqcommand+$1d0 4) SP=40221210 RP=a.006b7604 ?xeqcommand+$8 export stub: 7d.000068dc main_ci+$94 5) SP=40221178 RP=7d.00007420 PROGRAM+$250 6) SP=40221130 RP=7d.00000000 (end of NM stack) : Related Information
DELETESPOOLFILEDeletes a spoolfile from disk. SyntaxDELETESPOOLFILE { #Onnn #Innn ldev } Parameters
Operation NotesBefore deleting an ACTIVE spoolfile, first take the output device offline. This allows you time to enter the command and determine that the ACTIVE spoolfile corresponds to the correct output device. When MPE/iX returns the colon prompt (:), you know that the DELETESPOOLFILE command instruction has been sent to the spooler process. It is not executed, however, until the output device is put back online. You may not use the DELETESPOOLFILE command on the following type of files:
UseThis command may be issued from a session, program, or in BREAK. It may not be issued from a job. Pressing Break has no effect on this command. This command may be used only from the console unless distributed to users with the ALLOW or ASSOCIATE command.ExampleTo delete the ACTIVE spoolfile being printed on LDEV 6, first take the printer offline. This generates a NOT READY message at the console, after which you may enter the DELETESPOOLFILE command, as shown below:11:21/7/LDEV#6 NOT READY DELETESPOOLFILE 6When you put the device back online, the trailer page is printed, and the file deleted. If you have suppressed header/trailer output with the HEADOFF command, no trailer is printed before the spoolfile is deleted. However, the printer skips to the top of the next physical page. If the device is a page printer, the default environment is reloaded. Related Information
DELETEVARDeletes one or more MPE/iX variables. (Native Mode) SyntaxDELETEVAR varname [,varname] ... [,varname]
Parameters
Operation NotesDeletes a specific MPE/iX variable, or all variables specified by a pattern. If you specify more than one varname, you must separate them with commas. You may use the wildcard characters, @, #, ?, and [ ] to specify a set or range of values.
UseThis command is available in a session, job, program, or in BREAK. Pressing Break has no effect on this command.ExamplesTo delete two specific variables, enter:DELETEVAR firstvariable, secondvariableTo delete all variables beginning with a single alphabetic character and ending with the characters axval, enter: DELETEVAR ?axvalTo delete all variables created by the user, enter: DELETEVAR @To delete a range of variables, for example, those that begin with the letters P, Q, R, S, or T followed by zero or more characters that end with the string module. In the following example variables such as PMODULE, QMODULE, RMODULE, SMODULE, TMODULE, and TIME_MODULE are all deleted by entering: DELETEVAR [P-T]@MODULEMPE/iX predefined variables, which are listed in appendix A, cannot be deleted. To delete all variables beginning in T and ending in two digits such as TMP11, T25, TMP_237 but not T2, enter: DELETEVAR T@## Related Information
DISALLOWProhibits access to a specific operator command. SyntaxDISALLOW FILE=formaldesignator [;SHOW] DISALLOW {@.@ | user.@ | @.user | user.acct} ;COMMANDS=command [,command [,...] ] Parameters
Operation NotesThe operator uses the DISALLOW command to prohibit a user from executing specific operator commands previously allowed with the ALLOW command. You can use the command in any of three ways:
UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break will terminate subsystem mode and produce an error message but has no effect on commands already entered in subsystem mode. This command may be used only from the console unless distributed to users with the ALLOW command.ExamplesTo prohibit the user USER.TECH from executing the REPLY and ABORTIO commands, enter the following at the system console:DISALLOW USER.TECH;COMMANDS=REPLY,ABORTIOTo use subsystem mode to prohibit the user MGR.MANUALS from executing the BREAKJOB command, enter the following at the system console: DISALLOW >MGR.MANUALS;COMMANDS=BREAKJOB >EXIT :To use indirect mode, you create a file with all of the necessary information, and then invoke the changes by specifying the file using the FILE= parameter of the DISALLOW command. EDITOR HP32201A.07.17 EDIT 3000 TUE, MAY 29, 1987, 5:08 PM (C) HEWLETT-PACKARD CO. 1985 /ADD 1 SUSAN.PAYROLL;COMMANDS=ALTJOB,ALTSPOOLFILE 2 JOHN.ACCTNG;COMMANDS=ALTSPOOLFILE,DELETESPOOLFILE 3 // ... /KEEP COMNDTMP /E DISALLOW FILE=COMNDTMP;SHOWIf you want MPE/iX to display each command line as it is executed from the file, inclue the SHOW parameter. You may backreference the file with a file equation as follows: FILE BACKF=COMNDTMP DISALLOW FILE=*BACKF;SHOWIf the file has a lockword it may be inserted as follows: DISALLOW FILE=COMNDTMP/LOCKWORD;SHOW Related Information
DISASSOCIATERemoves control of a device class from the user. SyntaxDISASSOCIATE devclass Parameters
Operation NotesThis command negates a previously issued ASSOCIATE command by removing control of a device class from a user. The command may be issued by the system operator or by the user. The user implicitly disassociates a device when logging off.UseThis command may be issued from a session, program, or in BREAK. Pressing Break has no effect on this command.ExampleTo terminate control of the device class TAPE, enter:DISASSOCIATE TAPE Related Information
DISCRPSEnables or disables the rotational position sensing (RPS) feature on a specified logical device. It requires a special firmware upgrade CS-80 disk drives. SyntaxDISCRPS ldev { ,ENABLE [{,value,value}] ,DISABLE } Parameters
Operation NotesThe DISCRPS command allows you to enable or disable the rotational position sensing feature for CS-80 disk drives. With RPS enabled, the disk drive signals its availability to do an I/O only when it is a small rotational distance away from the target data. This improves system performance when more than one drive is connected to the same HP-IB channel.UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command. It may be executed only from the console unless distributed to users with the ALLOW or ASSOCIATE commands.ExampleTo enable the RPS feature on logical device 1 and display the status of the disk drive, enter:DISCRPS 1,ENABLE SHOWDEV 1 LDEV AVAIL OWNERSHIP VOID DEN ASSOCIATION 1 DISC (RPS) 50 FILESTo use the value parameter with ENABLE to set time-to-target and window size to the default values, enter: DISCRPS ldev,ENABLE,90,30 Related Information
DISCUSE (UDC)The DISCUSE UDC executes the DISKUSE command to display disk space usage, in sectors, for one or more directories or a directory tree. This UDC is provided for those who are used to spelling disk with a "c". System-defined UDCs are not automatically available. Your System Manager must use the SETCATALOG command to make these UDCs available for your use. For example: SETCATALOG HPPXUDC.PUB.SYS;SYSTEM SyntaxDISCUSE [ [DIR=]dir_name] [;USENAME | ;TREE | ;NOTREE] ParametersRefer to the DISKUSE command for a complete explanation of the parameters used with the DISCUSE UDC. The following parameters are supported with the DISCUSE UDC.
Operation NotesThe DISCUSE UDC runs the DISKUSE command and reports disk space, in sectors, for a directory. Refer to the DISKUSE command for a complete explanation of the operation.UseThis UDC may be issued from a session, a job, a program, or in break mode. Pressing Break aborts execution.ExamplesThe following example illustrates the use of the DISCUSE UDC. Note that a message is printed to remind you to use the DISKUSE command.DISCUSE Please use the DISKUSE command. ^ SECTORS TREE LEVEL DIRECTORY (CWD= /ACCT/GROUP/d0) BELOW 2100 330 .Refer to the DISKUSE command later in this chapter for additional examples. Related Information
DISKUSEDisplays disk space usage, in sectors, for one or more directories or a directory tree. SyntaxDISKUSE [[DIR=]dir_name] [; TREE | NOTREE | USENAME ] Parameters
OperationThe DISKUSE command reports disk space, in sectors, for a directory. Disk space allocated to directories themselves (including accounts and MPE groups) is counted as part of the total number of sectors. The process' CWD is shown for all relative pathnames. The number of components in the pathname controls the level of directories being reported. If a pathname has four components, for example, /a/b/c/d, then only directories with four or more components contribute to the output. This also applies to the use of wildcard component names. For example, /@/@/@/@ only counts directories with at least four components in their pathname (absolute or relative, depending on how it was specified). MPE names follow the same formula: @.@.@ reports only MPE-named directories one level below MPE groups. (@.@ is the same since it is qualified with the logon account name.)UseYou must have traverse directory entries (TD) and read directory entries (RD) permissions to each directory contributing to the reported totals. TD access is needed to each directory component named in dir_name. (Refer to the ALTSEC command in this chapter for additional information on directory permissions.) Note that the MPE syntax cannot specify a group.account. MPE syntax only permits dir.group.acct if dir is a valid MPE name; that is, all uppercase alphanumeric. (If group.account were specified, it would be interpreted as a file called group.account.logon_account.) Directory errors can occur while DISKUSE is collecting file space information. For example, if you lack traverse directory entries (TD) access to one or more of the lower level directories, an error occurs. If ;TREE is specified, you will only be able to see directories that you have TD and RD access to. DISKUSE stops on the first error encountered. This may result in no data (other than a header) displayed, or in the case of wildcard names, some directories are seen (up to the directory where the error occurred). Even in the wildcard directory name case, once an error is encountered, DISKUSE terminates. There are several ways to see all disk space used on the system:
ExamplesThe illustration below shows a hierarchical directory structure, upon which all of the succeeding examples are based. Directory names are shown as the character d plus a number (for example, d0), and file names are shown as the character f plus a number (for example f1). For illustrative purposes, the HPPROMPT variable has been set to show the current working directory (HPCWD). For example::setvar hpprompt "hpcwd:" /ACCT/GROUP/d0:Hierarchical Directory Structure /ACCT/GROUP/d0 = CWD | -----------------|------------------------------ | | | | | | d1 d2 d3 f1 f2 f3 | | ---------|-------------- |--------------------- | | | | | | | | | | | d4 f4 f5 d5 d6 f6 d7 f7 f8 f9 f10 | | | | --|---- -|- ---|------ --|-------------------- | | | | | | | | | | | | f11 f12 d8 f13 f14 f15 d9 f16 f17 f18 f19 f20The example shown below illustrates the format of the DISKUSE output. In this example, the TREE option is implied by the trailing slash (/). The current working directory (CWD) relative display is shown as part of the header line. If the CWD name is long, it truncates with a dollar sign ($). /ACCT/GROUP/d0:diskuse ./ SECTORS TREE LEVEL DIRECTORY (CWD= /ACCT/GROUP/d0) BELOW 64 + 0 ./d1/ 96 32 ./d2/d4/ 64 0 ./d2/d5/d8/ 128 64 ./d2/d5/ 112 48 ./d2/d6/ 448 + 240 ./d2/ 64 0 ./d3/d7/d9/ 208 144 ./d3/d7/ 336 + 128 ./d3/ 48 + 0 (files directly below specified directory) 960 240 ./ (64 +) /ACCT/GROUP/d0:Each of the columns contains information about the directory.
/ACCT/GROUP/d0:diskuse /ACCT/GROUP/d0 ;notree SECTORS TREE LEVEL DIRECTORY BELOW 960 240 /ACCT/GROUP/d0/ /ACCT/GROUP/d0:If the directory name parameter is omitted, the CWD is assumed, as seen in the following example: /ACCT/GROUP/d0:diskuse SECTORS TREE LEVEL DIRECTORY (CWD= /ACCT/GROUP/d0) BELOW 960 240 ./The next example illustrates the use of the TREE option. Information is reported for the dir_name (d3) and all directories below. /ACCT/GROUP/d0:diskuse ./d3/@ ;tree SECTORS TREE LEVEL DIRECTORY (CWD= /ACCT/GROUP/d0) BELOW 64 0 ./d3/d7/d9/ 208 + 144 ./d3/d7/ 208 ./d3/@ /ACCT/GROUP/d0:MPE syntax can also be used, as shown in the following example (note that the dir_name (MYDIR) is upshifted.) This example is not based on the directory structure shown. DISKUSE mydir.group.acct SECTORS TREE LEVEL DIRECTORY BELOW 2100 330 /ACCT/GROUP/MYDIR
/ACCT/GROUP/d0:diskuse ./@ SECTORS TREE LEVEL DIRECTORY (CWD= /ACCT/GROUP/d0) BELOW 64 + 0 ./d1/ 448 + 240 ./d2/ 336 + 128 ./d3/ 848 ./@ /ACCT/GROUP/d0: /ACCT/GROUP/d0:diskuse ./@/ SECTORS TREE LEVEL DIRECTORY (CWD= /ACCT/GROUP/d0) BELOW 64 + 0 ./d1/ 96 32 ./d2/d4/ 64 0 ./d2/d5/d8/ 128 64 ./d2/d5/ 112 48 ./d2/d6/ 448 + 240 ./d2/ 64 0 ./d3/d7/d9/ 208 144 ./d3/d7/ 336 + 128 ./d3/ 848 ./@ /ACCT/GROUP/d0:The last line of output contains the directory name and the total number of sectors (under the TREE column). The final TREE number always equals the sum of all other TREE numbers for directories with the same number of components as contained in the user-specified name that are designated with a plus sign (+) in the TREE column. For example, if you specified a pathname with three components, then the sum of the TREE field for all directory names with exactly three components equals the final total value. Related Information
DISMOUNTReleases a volume set that was explicitly reserved by the user with a MOUNT or VSRESERVE command. The equivalent native mode command is VSRELEASE. (Native Mode) SyntaxDISMOUNT [{ * volumesetname }] [.groupname [.acctname]] Parameters
Operation NotesThe DISMOUNT command allows you to release a volume set that you explicitly reserved using the MOUNT or VSRESERVE command. You can request a release only for a volume set that you have reserved; you cannot alter the status of the volume set for other users. Volume sets in MPE/iX are not tied to groups and accounts (this differs from the MPE V/E scheme of disk partitioning). The naming convention for MPE/iX volume sets differs from the naming convention for MPE V/E private volumes. MPE/iX volume set names may consist of any combination of alphanumeric characters, including the period (.) and the underbar (_). The name must begin with an alphabetic character and consist of no more than 32 characters. Table 5-1 "Command Acceptance of Naming Conventions - DISMOUNT Command" is a comparison of naming conventions between the MPE/iX VSxxxxxx and MPE V/E xxxMOUNT commands. Table 5-1 Command Acceptance of Naming Conventions - DISMOUNT Command
UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command. Use volumes (UV) or create volumes (CV) capability is required to use this command.ExamplesTo release the volume set MYSET.B.C, that was previously reserved with a MOUNT or VSRESERVE command, enter:DISMOUNT MYSET.B.CYou may also use the VSRELEASE command: VSRELEASE MYSET.B.C Related Information
DOAllows the user to reexecute any command still retained in the command line history stack. It also permits the user to edit the command before reexecuting it, but without having to use the interactive mode of the REDO command. (Native Mode) SyntaxDO [CMD=cmdid] [;EDIT=editstring]
Parameters
Operation NotesReexecutes the command specified by cmdid. The user may specify an optional edit string to edit the command before it is reexecuted. This command is a companion to the enhanced MPE/iX version of the REDO command. Unlike REDO, the DO command does not permit interactive editing. If editstring is specified, the edit is performed on cmdid before the command is reexecuted. The editstring must appear exactly as it would if you were using the REDO command. Both cmdid and editstring must be surrounded by quotation marks (either " or ') if they contain any delimiters such as ; " ' [, ], =, or a space.UseThis command is available in a session or in BREAK. It is not available in a job or from a program. Pressing Break terminates recursive command executions from the history/redo stack.Editing SamplesPractical uses of the editing commands listed above are shown in Table 5-4 "Editing Samples for the DO Command". Table 5-4 Editing Samples for the DO Command
Examples
Related Information
DOIONOWExecutes the changes to the I/O configuration made with the SYSGEN utility, while the system remains online. SyntaxDOIONOW ParametersNone.Operation NotesUse the DOIONOW command to start the online reconfiguration of your I/O devices.UseThis command is available from a job, session, a program, or in BREAK. Pressing Break has no effect on this command.ExampleAfter you have made changes to the system I/O configuration with SYSGEN's I/O Configurator, enter::DOIONOW Related Information
DOWNRemoves a device from normal system use. This command does not apply to the system console or to disk drives. SyntaxDOWN ldev Parameters
Operation NotesWhen the DOWN command is issued for a device that is in use, the request is responded to when the process currently accessing it releases the device. The system console cannot be taken down. Any attempt to do so results in the following error message:DOWN NOT PERFORMED ON CONSOLE DEVICE (CIERR 3150)
UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command. It may be used only from the console unless distributed to users with the ALLOW or ASSOCIATE command.ExampleTo take logical device number 7 offline, enter:DOWN 7To take logical device number 10 (an input-spooled, job-accepting magnetic tape) offline, enter: DOWN 10 STOPSPOOL 10 11:16/31/SP#10/STOPPED 11:16/31/LDEV#10 NOT READY Related Information
DOWNLOADDownloads format information to a line printer. SyntaxDOWNLOAD ldev [ ,filename ,MARGIN=nn ] [,...] Parameters
Operation NotesThe operator uses the DOWNLOAD command to transmit format information to system printers only. It cannot be used with remote printers. The vertical format control (VFC) image file (filename) can define the margin setting as well as the VFC image on an HP 2608A or HP 2608S Line Printer. The number of print lines per form is limited to 127. Although the HP 2608S printer recognizes the DOWNLOAD command, Hewlett-Packard recommends controlling the HP 2608S with an environment file rather than the DOWNLOAD command. You cannot download a VFC file to an HP 2631B printer, only the MARGIN=nn is allowed. If the MARGIN=nn parameter is specified on an HP 2608A or HP 2608S, and a MARGIN record has also been specified in the VFC file, the MARGIN record in the VFC file overrides the MARGIN parameter of the DOWNLOAD command. This parameter should only be used in cases where there is no MARGIN record in the VFC file. When a particular print job has requirements for forms and/or a VFC file, the user indicates this need by way of a FORMS message. Refer to "Examples."
UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command. It may be issued only from the console unless distributed to users with the ALLOW or ASSOCIATE command.ExamplesTo respond to a forms message such as the following:IO/15:46/22/FORMS: PLEASE MOUNT PAYCHECK FORMS. USE VFC=VFCPAY IO/15:46/22/SP#11/LDEV# FOR #S93;OUTFILE ON HP 2608 (1)enter: DOWNLOAD 11,VFCPAYTo reset the VFC to its original state, you must reference a file that contains default specifications (such as VFC6 in this example) by entering: DOWNLOAD 11,VFC6.PUB.SYSTo set the left margin print position to column 4 (the installation defined default) enter: DOWNLOAD 11,MARGIN=4 Related Information
DSTATDisplays the current status of the disk drives on the system. (Native Mode). SyntaxDSTAT [ ldev ALL ] Parameters
Operation NotesThe DSTAT command is used to display the current status of one or more disk drives on the system. For example:DSTAT ALL LDEV-TYPE STATUS VOLUME (VOLUME SET-GEN) 1- 07935 MASTER MEMBER1 (MPEXL_SYSTEM_VOLUME_SET-0) 2- 07935 MEMBER MEMBER2 (MPEXL_SYSTEM_VOLUME_SET-0) 3- 07935 MEMBER MEMBER3 (MPEXL_SYSTEM_VOLUME_SET-0) 4- 07935 MEMBER MEMBER4 (MPEXL_SYSTEM_VOLUME_SET-0) 15- 07935 MASTER MEMBER1 (USER_VOLUME_SET-0) 16- 07935 MEMBER MEMBER2 (USER_VOLUME_SET-0) 17- 07935 UNKNOWNTable 5-5 "Disk Drive Status" defines the various status responses. Table 5-5 Disk Drive Status
UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command.ExampleTo display the status of LDEV 1, enter::DSTAT 1 LDEV-TYPE STATUS VOLUME (VOLUME SET-GEN) 1- 079371 MASTER MEMBER1 (MPEXL_SYSTEM_VOLUME_SET-0) Related Information
ECHODisplays a message on the standard list device. (Native Mode) SyntaxECHO [message] Parameters
Operation NotesDisplays its argument, message, on the standard list device ($STDLIST). The command ignores delimiters. Quotation marks are not required around message. The ECHO command does not perform dereferencing of any kind. If you want variable dereferencing you must use explicit dereferencing (!) in the argument. A null message ( Return ) displays a linefeed. The ECHO command is not suppressed by OPTION NOLIST in a UDC or command file, or by any setting of the HPMSGLEVEL variable.UseThis command is available in a session, job, program, or in BREAK. Pressing Break has no effect on this command.ExamplesIn the following example, although there is a variable named a that has a string value, ECHO simply displays the character a because no dereferencing has been specified.SETVAR a, 'hi there' ECHO a aThis time ECHO is given the value of the variable a argument. Explicit dereferencing has been specified and the dereferencing is done before ECHO is executed. ECHO !a hi thereTwo exclamation points are resolved to one exclamation point by string substitution, and MPE/iX is prohibited from making the value substitution (even number rule). ECHO a !aTriple (or any odd number of) exclamation points treat the argument as !a, which resolves to ! and !a, giving !hi there (odd number rule). ECHO !a !hi thereIf you entered the following command line in a user command, you would see a message when an error occurred: IF CIERROR <> 0 THEN ECHO ** A CIERROR OCCURRED!: (CIERR !CIERROR) **The first instance of CIERROR has no dereferencing, and so ECHO treats it literally. The second instance, !CIERROR, contains explicit dereferencing, and so MPE/iX substitutes a value for the system variable CIERROR before the message is displayed to $STDLIST. So, for example, if the program generated error 975, you would see this message: ** A CIERROR OCCURRED!: (CIERR 975) ** Related Information
EDITORStarts the EDIT/3000 subsystem, which is used to create and manipulate ASCII text or program files. SyntaxEDITOR [listfile] Parameters
Operation NotesThe EDITOR command starts the EDIT/3000 subsystem.UseThis command may be issued from a session or job. It may not be used from a program unless the user or the program has process handling (PH) capability. It may not be used from BREAK. Pressing Break suspends the execution of this command. Entering the RESUME command continues the execution.ExampleTo run EDIT/3000 during a session and specify a line printer (device class LP) as the list device for offline output, enter:FILE LISTFILE;DEV=LP EDITOR *LISTFILEBecause the listfile is often a line printer, it is often defined with the FILE command and backreferenced as in the preceding example. Related Information
ELSEProvides an alternate execution sequence within an IF statement. (Native Mode) SyntaxELSE ParametersNone.Operation NotesThe ELSE command is used only in conjunction with the IF and ELSEIF commands. The IF command is used with the ENDIF command, and optionally with the ELSE command, to control the execution of a job. The IF, ENDIF, and optional ELSE commands constitute an IF block. A logical expression is evaluated, and if true, the IF block is executed; if false, the ELSE block (if one exists) is executed.UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command.ExampleThe following job listing illustrates using the ELSE command:!CONTINUE !PASXL MYPROG,MYUSL !IF JCW>=FATAL THEN ! TELL USER.TECHPUBS;COMPILE FAILED !ELSEIF JCW>=WARN THEN ! TELL USER.TECHPUBS;COMPILE COMPLETED WITH WARNINGS !ELSE ! TELL USER.TECHPUBS;COMPILE COMPLETE WITH NO WARNINGS !ENDIF Related Information
ELSEIFProvides an alternate execution sequence within an IF statement. Native Mode SyntaxELSEIF expression [THEN] Parameters
Operation NotesThe ELSEIF command is used only in conjunction with the IF command. The ELSEIF command provides a way of avoiding nested IF statements. ELSEIF has meaning only when used after an IF construct. Any number of ELSEIF commands may follow an IF command. In contrast, only one ELSE command may follow an IF or ELSEIF command. Refer to the ELSE and IF commands.UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect unless expression contains the INPUT evaluator function.ExampleThe following example illustrates using the ELSE command with the IF command:IF EXPN1 THEN ... ELSE IF EXPN2 THEN ... ELSE IF EXPN3 THEN ... ELSE ... ENDIF ENDIF ENDIFThe same result can be accomplished more efficiently by using the ELSEIF command: IF EXPN1 THEN ... ELSEIF EXPN2 THEN ... ELSEIF EXPN3 THEN ... ELSE ... ENDIFNotice that only one ELSE may follow an ELSEIF, while any number of ELSEIF commands may follow an IF. Related Information
ENDIFTerminates an IF block. (Native Mode) SyntaxENDIF ParametersNone.Operation NotesThe ENDIF command is used to terminate an IF block. The IF command, the optional ELSE and ELSEIF commands, and the ENDIF command constitute an IF block. A logical expression is evaluated, and if true, the IF block is executed; if false, the ELSE block (if one exists) is executed. If false and no ELSE exists, then execution continues following the ENDIF.UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command.ExampleThe following examples show the IF block ending with the ENDIF command:IF logical_expression ELSE logical_expression . . . ENDIF IF logical_expression ELSEIF logical_expression . . . ENDIF Related Information
ENDWHILETerminates a WHILE block. (Native Mode) SyntaxENDWHILE ParametersNoneOperation NotesThis command terminates a conditional block that begins with a WHILE command. The WHILE and ENDWHILE commands constitute a WHILE block. The WHILE command evaluates an expression, and so long as that expression evaluates as true, the command(s) between WHILE and ENDWHILE are executed. If the expression evaluates as false, execution of the WHILE block ceases and execution passes to the command following ENDWHILE. Execution terminates if any command not protected by a preceding CONTINUE causes an error.UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break terminates the WHILE command loop.ExampleThe following is an example of a simple WHILE block:WHILE logical_expression . . . ENDWHILE Related Information
EODDenotes end-of-data on input stream from a job file (from an input other than $STDIN). It also terminates data initialized by the DATA command. The colon (:) is a required part of this command. (Native Mode) SyntaxEOD
ParametersNone.Operation NotesThe EOD command is used to signify the end of data whose beginning was signified by a DATA command. It is also used to signify the end of a data set that was read from the standard input device. Although in most cases programmers use EOD for delimiting data, any record beginning with a colon may delimit the data. Using a record other than EOD for this purpose, however, depends upon whether the standard input file is opened with the file name $STDIN or $STDINX. When using a compiler language that does not provide a convention for terminating compilation (such as END. in SPL), you must enter EOD after the last record of your source program to ensure proper delimiting of your input. (EOD is not required when using the BASIC interpreter since the subsystem provides different conventions for delimiting data.) An EOD causes the read of the FREAD intrinsic to return the CCG condition code to the calling program. This condition code indicates the end-of-file condition on the terminal. Table 5-7 "End-of-File Indicators" defines the various end-of-file indicators. Table 5-7 End-of-File Indicators
UseEOD is available only in a job or a session that is submitted with the STREAM command. It cannot be used directly from $STDIN or from a program.ExamplesTo terminate a data file entered by using the STREAM command for a session identified as SESS1,BLACK.ACCTSP, your data file would contain EOD as its last record, as follows:DATA SESS1,BLACK.ACCTSP . data . EODThe following program is an example of how EOD is used to terminate a set of data entered through a standard input device: FORTRAN PAGE 0001 HP32102B.01.12 (C) HEWLETT-PACKARD CO. 1986 >$CONTROL USLINIT > PROGRAM MONEY > INTEGER QUARTERS,DIMES,NICKELS,PENNIES > DISPLAY "INPUT MONEY AMOUNT IN DECIMAL FORM" > ACCEPT DECIMALFORM > CALL CHANGER(DECIMALFORM,QUARTERS,DIMES,NICKELS,PENNIES) > DISPLAY QUARTERS," QUARTERS" > DISPLAY DIMES," DIMES" > DISPLAY NICKELS," NICKELS" > DISPLAY PENNIES," PENNIES" > STOP > END PROGRAM UNIT MONEY COMPILED > SUBROUTINE CHANGER(DECIMALFORM,QUARTERS,DIMES,NICKELS,PENNIES > INTEGER QUARTERS,DIMES,NICKELS,PENNIES > DECIMALFORM = DECIMALFORM*100 > QUARTERS = DECIMALFORM/25 > REMAINDER = DECIMALFORM-(QUARTERS*25) > DIMES=REMAINDER/10 > REMAINDER=REMAINDER-(DIMES*10) > NICKELS=REMAINDER/5 > PENNIES=REMAINDER-(NICKELS*5) > RETURN > END PROGRAM UNIT CHANGER COMPILED > EOD **** GLOBAL STATISTICS **** **** NO ERRORS, NO WARNINGS **** TOTAL COMPILATION TIME 0:00:01 TOTAL ELAPSED TIME 0:01:29 END OF COMPILE Related Information
EOJEnds a batch job. (Native Mode) SyntaxEOJ
ParametersNone.Operation NotesThe EOJ command terminates a batch job and displays the CPU-time (in seconds) and the elapsed time since the beginning of the job (rounded to the nearest minute). MPE/iX also adds the central processor time and file space used by your job to the resource usage counters maintained for your logon account and group. If you omit the EOJ command from a job, the next JOB command terminates the current job and starts a new one. The end of the first job is indicated by the standard end-of-job display, and the beginning of the next job is denoted by the normal job initiation display.UseThis command may be issued from a job. It may not be used from a session, program, or in BREAK. Pressing Break has no effect on this command.ExampleThe following example shows how EOJ is used within a job file to terminate a batch job:!JOB USER.PUBS !RUN MYPROG1 !RUN MYPROG2 !EOJ Related Information
ERRCLEARZeros out all HP predefined error-related variables. (Native Mode) SyntaxERRCLEAR
ParametersNoneOperation NotesThis command is equivalent to the following:
UseThis command is available from a job or session. It is not available from a program or in BREAK. Pressing Break has no effect on this command.Exampleerrclear continue run database if hpcierr < 0 then echo database warning ![abs(hpcierr)] detected, proceeding... elseif hpcierr > 0 then echo FATAL database error !hpcierr detected, halting... escape endif Related Information
ERRDUMPAllows a user to dump either the process or system error stack to a specified depth. (Native Mode) SyntaxERRDUMP [errorstackdepth] [;SYS]
Parameters
Operation NotesThe ERRDUMP command allows the user to dump either the process or the system error stack to a specified depth. If the depth specified is greater than the number of errors on the error stack, then all errors on the error stack are dumped without any warnings or errors. If the user specifies an errorstackdepth outside of the boundaries of the error stack, an error message is displayed and the error stack is not dumped.UseThis command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command.ExamplesTo obtain an error stack dump, enter:ERRDUMPA sample system response is: TYPE MANAGER; THE END-OF-FILE HAS BEEN DETECTED. FILE SYSTEM MESSAGE 1023.Another example specifies that the system error stack be dumped: ERRDUMP 1;SYSA sample system response is: THE STATUS OF THE TIME ENTRY IS NON-ACTIVE. TUE, FEB 9, 1988, 12:18 Related Information
ESCAPEAllows the CI programmer to simulate all aspects of CI error handling. (Native Mode) SyntaxESCAPE [ [CIERR=] errnum] Parameters
Operation NotesThe ESCAPE command causes control to leave all user commands (regardless of nesting levels) and return to the CI. Batch jobs terminate (unless a CONTINUE is in effect) and sessions issue the prompt. If no CONTINUE is active, ESCAPE causes the CI to act as it would for any error: for sessions the user command environment is cleared and the prompt is displayed; jobs terminate. If CONTINUE is active , then ESCAPE causes the CI to execute the second command after the CONTINUE. In the following example, the CI will execute cmd2 after the ESCAPE.cmd1 CONTINUE udc1 ucmdA ucmdB ESCAPE cmd2 UseThis command may be issued from a session, job, program, or in BREAK. Pressing BREAK has no effect on this command.Exampleerrclear continue run database if hpcierr < 0 then echo database warning ![abs(hpcierr)] detected, proceeding... elseif hpcierr > 0 then echo FATAL database error !hpcierr detected, halting... escape else . . . endif Related Information
EXITTerminates the command interpreter. (Native Mode) SyntaxEXIT ParametersNoneOperation NotesWhen you are using MPE/iX you can start another Command Interpreter by running it as a program. To do so, you enter CI.PUB.SYS, or simply CI. If you enter this command more than once, you will create levels of the CI program. To determine what level of the command interpreter you are in, use the SHOWVAR HPCIDEPTH command. Then, to back out from the CI, enter the EXIT command. If the command interpreter is the root CI, EXIT is equivalent to BYE and ends the session. Otherwise, EXIT returns to the previous process. To go beyond HPCIDEPTH=2 requires process handling (PH) capability. To end a session without backing out of the CI level-by-level with the EXIT command, enter BYE.UseThis command is available from a job or session. It is not available from a program or in BREAK. Pressing Break has no effect on this command.ExampleThe following example shows how to determine what level of the CI you are in, and then, using the EXIT command, to back out to the root CI:SHOWVAR HPCIDEPTH HPCIDEPTH=2 EXIT SHOWVAR HPCIDEPTH HPCIDEPTH=1To back out from the second level to the first, use the EXIT command. To back out from the session from any level, use the BYE command. Related Information
|