Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
MPE/iX Commands Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 7  Command List V

Commands HEADOFF thru LISTF

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

HEADOFF

Stops header/trailer output to a device. (Native Mode)

Syntax

HEADOFF ldev

Parameters

ldev

The logical device number of the printer affected by the command.

Operation Notes

Header and trailer information appears before and after a file when it is printed. This information is not a part of the file's text. This information identifies the file by session number, output spoolfile number, session name (if any), user, and account. It also lists the date and time the file was printed.

If output is directed to a line printer, MPE/iX automatically prints header and trailer pages identifying the job that produced the file.

If the device is in use and a header has already been printed when you issue the HEADOFF command, your request to suppress header/trailer output takes effect after the corresponding trailer is printed.

Use

This 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 command.

Example

To stop header/trailer output to logical device number 6, enter:

 HEADOFF 6

Related Information

Commands

HEADON

Manuals

Performing System Operation Tasks

HEADON

Resumes header/trailer output to a device. (Native Mode)

Syntax

HEADON ldev

Parameters

ldev

The logical device number of the printer affected by the command.

Operation Notes

Header and trailer information appears before and after a file when it is printed. This information is not a part of the file's text. This information identifies the file by session number, output spoolfile number, session name (if any), user, and account. It also lists the date and time the file was printed.

When the header/trailer facility is enabled, output is directed to a line printer, and MPE/iX automatically prints header and trailer pages identifying the job that produced the file.

If the device is in use, your request to resume header/trailer output takes effect after the current output is complete.

The header/trailer facility is always enabled at system startup.

Use

This 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 command.

Example

To resume header/trailer output to logical device number 6 enter:

 HEADON 6

Related Information

Commands

HEADOFF

Manuals

Performing System Operation Tasks

HELLO

Initiates an interactive session. (Native Mode)

Syntax

HELLO [sessionname,] username [/userpass] .acctname [/acctpass] [,groupname [/grouppass]] [;TERM={ termtype termname }] [;TIME=cpusecs] [;PRI={ BS CS DS ES }] [{ ;INPRI=inputpriority ;HIPRI }] [;INFO=ciinfo] [;PARM=ciparm]

Parameters

sessionname

Arbitrary name used in conjunction with username and acctname parameters to form a fully qualified session identity. The name must contain from one to eight alphanumeric characters, beginning with an alphabetic character. Default is that no session is assigned.

username

User name, established by the account manager, that allows you to log on to this account. The name must contain from one to eight alphanumeric characters, beginning with an alphabetic character.

userpass

User password, optionally assigned by the account manager. The password must contain from one to eight alphanumeric characters, beginning with an alphabetic character. The user password must be preceded by a slash (/).

acctname

Account name as established by the system manager. The name must contain from one to eight alphanumeric characters, beginning with an alphabetic character. The acctname parameter must be preceded by a period (.).

acctpass

Account password, optionally assigned by the system manager. The password must contain from one to eight alphanumeric characters, beginning with an alphabetic character. The account password must be preceded by a slash (/).

groupname

Group name to be used for the local file domain and the CPU and connect-time charges as established by the account manager. The name must contain from one to eight alphanumeric characters, beginning with an alphabetic character. Default is your home group if you are assigned one by the account manager. (Required if a home group is not assigned.)

grouppass

Group password optionally assigned by the account manager. The password must contain from one to eight alphanumeric characters beginning with an alphabetic character. The grouppass parameter is not needed to log on to your home group. The group password must be preceded by a slash (/).

termtype or termname

Determines terminal type characteristics. The termtype parameter determines the type of terminal used for input. MPE/iX uses this parameter to determine device-dependent characteristics such as delay factors for carriage returns. It must be 10 or 18. The default value for termtype is assigned by the system supervisor during system configuration. This is a required parameter to ensure correct listings if your terminal is not the default termtype.

The termname parameter is the name of the file containing the desired terminal-type characteristics. The file cannot have a lockword or reside on a user volume.

Users of the workstation configurator are allowed to create terminal-type files. The proper and efficient operation of a specific device by a user-created terminal type is the responsibility of the user. The workstation configurator utility allows the user to specify characteristics of the terminal, including data flow control, block mode, read trigger, special characteristics, echo, line feed, parity, and printer control.

cpusecs

Maximum CPU-time that a session can use, entered in seconds. When the limit is reached, the session is aborted. It must be a value from 1 to 32767. To specify no limit, enter a question mark (?), UNLIMITED, or omit the parameter. Default is no limit.

BS, CS, DS, or ES

The execution priority queue that MPE/iX uses for your session, and also the default priority for all programs executed within the session. BS is the highest priority, ES is the lowest. If you specify a priority that exceeds the highest priority permitted for your account or user name by the system, MPE/iX assigns the highest priority possible below BS. DS and ES are intended primarily for batch jobs; their use for sessions is generally discouraged. For information on the guidelines for these priority queues, refer to the TUNE command. Default is CS.

CAUTION: Use care in assigning the BS queue. Processes in this priority class can lock out other processes.
inputpriority or HIPRI

Determines the input priority of the job. The inputpriority option is the relative input priority used in checking against access restrictions imposed by the jobfence. The inputpriority option takes effect at logon time and must be from 1 (lowest priority) to 13 (highest priority). If you supply a value less than or equal to the current jobfence set by the system operator, the session is denied access. Default is 8.

When logging on, the HIPRI option is used to either override the system jobfence or to override the session limit. When using the HIPRI option to override the jobfence, the system first checks to see if you have system manager (SM) or system operator (OP) capability. If you have either of these capabilities, you are logged on and your INPRI defaults to the system's jobfence and execution limit. If you do not have either of these capabilities, the system attempts to log you on using INPRI=13 and succeeds if the jobfence is 12 or less, and if the session limit is not exceeded. Only users with SM or OP capability can use the HIPRI option to override the session limit to log on. Use of the HIPRI option without SM or OP capability causes the following warning to be displayed:

MUST HAVE 'SM' OR 'OP' CAP. TO SPECIFY HIPRI,
MAXIMUM INPRI OF 13 IS USED (CIWARN 1460)

ciinfo

An INFO string to be passed to the command interpreter. For the MPE/iX CI, it is the first command to be executed by the command interpreter. This parameter replaces the ( ) COMMAND
LOGON
command and approximates its function. The ( ) COMMAND
LOGON
command caused the session to terminate after executing the specified command. In contrast, the ciinfo parameter does not terminate the session unless ciparm is set to 1, 3, or 5.

Running the CI as a child process in this way restricts the flexibility of ciparm. More flexibility is available by running the CI as a standalone program.

ciparm

The command interpreter parameter number you wish to use. The MPE/iX command interpreter accepts the numbers listed below. If you enter any other value, it is treated as zero (0).

0, 2, 4

Executes logon UDCs and displays the CI banner and the welcome message. This is the default.

1, 3, 5

Same as 0, but the CI terminates after processing the INFO= string. If the INFO= string is not specified, the CI terminates after executing the first user-supplied command.

-1

Prohibits cataloging of UDCs and suppress the display of the CI banner and the welcome message. Invoking this level requires system manager (SM) capability.

-2

Same as -1, but the CI terminates after processing the info= command. Invoking this level requires system manager (SM) capability.

The MPE/iX CI distinguishes between ciparms 1, 3, 5 and 0, 2, 4 when it is run from within the CI, that is, after the session has logged on.

If a user without SM capability uses -1 or -2, the system substitutes a parameter value of 0 and does NOT display an error message.

Operation Notes

The HELLO command initiates an interactive session and must be entered from a terminal; no other device can be used for this command. You must supply both a valid username and acctname in your logon command or MPE/iX rejects your logon attempt and displays an error message. If your logon attempt is accepted, MPE/iX displays specific logon information and prompts you for your next MPE/iX command. In the following example, a user has logged on under the username USER and the acctname TECHPUBS:

 MPE XL:HELLO USER.TECHPUBS
HP3000 Release: X.50.40 User Version : X.50.40 THU, DEC 8, 1994, 1:15 PM
MPE/iX HP31900 B.78.11 Copyright Hewlett-Packard 1987. All rights reserved.
:

When you first access an MPE/iX system to log on, the MPE iX: prompt is displayed. When you log off using the BYE command, the following message is displayed:

 CPU=1. CONNECT=1. THU, DEC 8, 1994, 1:50 PM

The RELEASE: V.UU.FF number in the logon banner is determined by Hewlett-Packard at operating system build time and provides an identity for software releases (also known as the MIT). This number may not be changed. (Prior to MPE/iX release A.11.70, this was referred to as BASE.)

The USER VERSION: V.UU.FF can be assigned a value during a SYSGEN and allows you to identify any changes to your total software package such as patch level, third party software, or other specifics. Any ASCII character can be used. In prior releases, this number was printed out immediately after the MPE/iX product number HP31900.

The PRODUCT V.UU.FF, which now immediately follows the product number HP31900, is determined by Hewlett-Packard when a new version of MPE/iX is compiled. This V.UU.FF number cannot be changed and is used when entering a service request (SR) against the MPE/iX operating system product for that particular release.

If the system operator has set up a welcome message, it is displayed after the MPE/iX verification of your logon.

The session number assigned by MPE/iX uniquely identifies your session to MPE/iX and to other users. MPE/iX assigns such numbers to sessions in sequential order as they are logged on. If you are on a modem and do not log on within the system-configured time, the line is dropped. You must redial and press Return again. If you are already logged on and you issue the HELLO command, you will be logged off your current session and logged on to a new session.

In certain instances, you may be required to furnish information in addition to the user and account names in your HELLO command. This information includes:

  • Group name

  • One or more passwords

  • Terminal type code

Use

This command may be issued from a session. It may not be used from a job, program, or in BREAK. Pressing Break does not abort the execution of this command, but may prematurely terminate the printing of the welcome message or the execution of any logon UDCs. If you are already in a session, HELLO terminates that session before beginning a new one.

Group Name

The group you select at logon for your local file domain is known as your logon group. If your account manager has associated a home group with your username, and if you want this group as a logon group, you need not specify it. MPE/iX automatically assigns the home group as your logon group when you log on. But if you want to use some other group as your logon group, you must specify that group's name in your logon command in this way:

 MPE iX:HELLO USER.TECHPUBS,MYGROUP

If your user name is not related to a home group, you must enter a group name in your HELLO command, or your logon attempt is rejected.

Once you log on, if the normal (default) file security provisions of MPE/iX are in force, you have unlimited access to all files in your logon and home groups. Furthermore, you can read files and execute programs stored in the PUB (public) group of your account and the PUB (public) group of the SYS (system) account. You cannot, however, access any other files in any way. Further information about files and file security can be found in the Accessing Files Programmer's Guide (32650-60010).

Passwords

To enhance the security of an account, and to prevent unauthorized accumulation of charges against the account, the system manager may assign a password. Similarly, an account manager may associate passwords with the user names and groups belonging to his account. If you are using an account, user name, or group (other than your home group) that has a password, you must furnish that password when you log on. Include the password after the name of the protected entity, separated from that name by a slash mark (/). (In MPE/iX, the slash denotes security.)

For instance, if the group XGROUP requires a password, and if you use this group as your logon group, you could enter the password in this fashion:

 MPE iX:HELLO USER.TECHPUBS,XGROUP/XPASS

Note that when you specify your home group as your logon group, you need not enter a password, even if that group has such a password.

Sometimes, when logging on to the system, it is more convenient to have MPE/iX prompt you for any required passwords. You do this by omitting the passwords from the logon command. When you log on, the command is printed in the normal way; MPE/iX prompts you for the password, then turns echo off so that the password is not printed. If you enter the password incorrectly, the prompt reappears and you have two more chances to enter the password correctly. After the third incorrect entry, the message INCORRECT PASSWORD (CIERR 1441) is displayed. You must then press Return to receive a new prompt and then enter the HELLO command to start a new logon process. Echo is turned on after all passwords are read.

Terminal Types

MPE/iX must be able to determine certain characteristics about your terminal, such as input and output speed, in order to conduct a session. If you log on using a different type of terminal than the type the system manager has configured, you must specify your terminal type when you log on. Refer to appendix C, "Terminal and Printer Types."

 MPE iX:HELLO USER.TECHPUBS;TERM=10

Example

When you initially log on to access MPE/iX, the system prompt appears as:

 MPE iX:

When you subsequently log on to another account or group, the system prompt by default is a colon (unless you have altered it with the SETVAR HPPROMPT command) and appears as:

 :

To start a session named ALPHA, with the user USER, the account TECHPUBS, the group XGROUP, and the group password XPASS, enter:

 MPE iX:HELLO ALPHA,USER.TECHPUBS,XGROUP/XPASS
HP3000 Release: X.50.40 User Version : X.50.40 MON, DEC 12, 1994, 7:15 AM
MPE/iX HP31900 B.78.11 Copyright Hewlett-Packard 1987. All rights reserved.
:

Related Information

Commands

BYE

Manuals

None

HELP

Accesses the help subsystem (Native Mode)

Syntax

Direct access:

HELP [{ udcname commandname [{ keyword ,ALL }] commandfilename errormessage programfilename function name variable name SUMMARY CLASS HELPSTUDY EXPRESSIONS| VARIABLES | OPERATORS | FUNCTIONS }]

Interactive (subsystem) access:

>commandname {space or comma} [{ keyword ,ALL }]

   HELPMENU
SUMMARY
CLASS
HELP
HELPSTUDY

Parameters

<omitted>

If you specify the HELP command with no parameters, you enter the help facility subsystem in interactive mode. To return to the CI, enter E or EXIT. Refer to "Operation Notes."

udcname

Any existing UDC. To display all UDCs within a UDC file, specify the PRINT command. Refer to commandname.

commandname

Any MPE/iX command. MPE/iX displays the command name and syntax. In addition, a list of keywords for that command is displayed.

The HELP command also provides help on UDCs, command files, or program files. The search order is UDCs, built-in commands (MPE/iX), command files, and then program files. The search order for UDC's is user level, account level, and system level. The search order for command files and program files is determined by the contents of the CI variable HPPATH. If the user's HPPATH does not contain the name of the current group, the user can print a command file from the current group, but cannot get help information.

For UDCs and command files, help displays the text of the user command, unless the file contains the NOHELP option. In those cases, the display is suppressed. In the case of program files, help displays a header identifying it as a program file and the fully qualified file name of the program file.

function name

Any CI evaluator function, eg: FINFO

keyword

One of the keywords described under the command parameter. All commands have the following keywords:

PARMS

PARMS is short for parameter. Lists all parameters of the specified command.

OPERATION

Describes the use of the specified command.

EXAMPLE

Displays an example showing usage of the specified command.

ALL

Displays all parameters, operation information, and an example of the command.

variable name

Any CI predefined variable, eg: HPLASTJOB

command- filename

Any existing command file. Refer to commandname, "Operation Notes," and "Examples."

errrormessage

Any MPE/iX error message. The keywords are:

CIERRnn

program- filename

Any existing program file. Refer to commandname, "Operation Notes," and "Examples."

SUMMARY

A brief summary of changes found in MPE/iX, including a quick overview of the operation of the help facility.

CLASS

A list of MPE/iX commands by functional class.

HELPSTUDY

A beginner's guide designed to familiarize novice users with the fundamentals of MPE/iX commands and command syntax.

EXPRESSIONS

A description of CI expresssions

FUNCTIONS

A list of all CI evaluator functions

VARIABLES

A list of all CI predefined variables

OPERATORS

A list of expression operators, like +, -, etc.

HELP

The help facility entry on the HELP command.

ALL

Displays the entire table of contents and the contents of each keyword for the HELP command.

EXIT

Exits the help subsystem. Help for the CI EXIT command is not available in interactive mode. To get help for the CI EXIT command, specify the direct mode in the form HELP EXIT ALL.

Operation Notes

You use the HELP command to display information about MPE/iX in one of two ways: by omitting command parameters to enter the Help subsystem or by getting information about a single command from the colon prompt.

Using HELP as a subsystem

Enter the HELP command without specifying any parameters to invoke HELP as a subsystem. You will see the first screen of Help, called HELPMENU. It lists the choices available to you so that you can review the operation of Help and get a brief overview of the changes found in the MPE/iX operating system.

Once you are in the Help Subsystem, you display information by entering the name of the command, UDC, error message, variable, expression, function or other item that you want at the greater-than (>) prompt. For example:

 :HELP
>FINFO

Syntax: FINFO(filename, option)

Defn: A CI evaluator function that returns information about
the specified file.
Type: String, integer, or Boolean depending upon option.
Example: FINFO('x.pub',"EXISTS")
Result: TRUE
Example: FINFO('jeff',"eof")
Result: 71495

The following table summarizes the options of the FINFO function.
The description includes the option number, one or more aliases,
the data type, and a brief description of the option.
Num Alias Data Type Option Description
- - -

0 EXIST Boolean Existence of file
1 FILENAME ONLY String File name
(24/225) Continue?

To display information up to the next keyword or command, press Return. HELP provides a page break for every 23 lines of output and pressing Return allows you to continue.

Do not precede the command or item name with HELP, or you will get an error message. For example:

 :HELP
>HELP FINFO
^
Can't find this keyword.

To exit the Help Subsystem, enter E or EXIT' or press Break. To stop the display and return to a system prompt, enter CTRL Y. temporarily stops the display, enter CTRL S. Use CTRL Q to resume.

Using HELP in direct mode

Enter HELP followed by the name of the command, UDC, error number or other keyword to display the information you need without entering the Help Subsystem. Entering any command name produces the syntax for that command and a list of the keywords. Entering a keyword such as PARMS produces a listing of all the items for that keyword.

For example:

 HELP ABORT
ABORT
Aborts current program or operation.
Syntax
ABORT
KEYWORDS: PARMS,OPERATION,EXAMPLE
:

Notice that in direct mode, MPE/iX displays the CI prompt (:) once it has displayed the information you wanted.

Use

This command may be issued from a session, job, program, or in BREAK. Pressing Break aborts the execution of this command.

Examples

To see the parameters for the LISTFILE command, enter:

 :HELP LISTFILE PARMS

To see examples of the STORE command, enter:

 :HELP STORE EXAMPLES

To see the same information from within the Help subsystem, enter:

 :HELP
>STORE EXAMPLES

To see a list of predefined variables in MPE/iX, at the colon prompt enter:

 :HELP VARIABLES

Several global variables have been pre-assigned by the command
interpreter. They may be used anywhere you would use your own
variables.
All global variables are listed in the table below. To get help
with a specific variable, at the colon (:) prompt type "HELP"
followed by the variable name, for example, "HELP HPCIDEPTH".
At the Help facility prompt (>), simply type the variable name,
for example, "HPCIDEPTH".
Global Variable Types
=================================================================
R READ ONLY variable (cannot be modified).
W READ/WRITE variable (can be modified).
JCW A standard MPE/iX JCW.
I Integer format.
B Boolean format (TRUE/FALSE).
(24/225) Continue?

If LINKALL is a command file, HELP displays the file as follows:

 HELP LINKALL.TEST.UI
User-Defined Command File:LINKALL.TEST.UI
Parm streamflag=...

....

If VERSION.PUB.SYS is a program file, HELP displays:

 HELP VERSION.PUB
program file: VERSION.PUB.SYS

If the UDC LISTF contains the NOHELP option (as shown in the sample below) the HELP command will suppress the listing of this UDC, and displays the text for the built-in command LISTF instead.

 listf
option NOHELP
showme
*****

If the UDC MYUDC (which is not the name of any MPE/iX command) contains the NOHELP option, then the Help facility displays an error.

Related Information

Commands

None

Manuals

System Startup, Configuration, and Shutdown Reference Manual

IF

Used to control the execution sequence of a job, UDC, or command file. (Native Mode)

Syntax

IF expression [THEN]

Parameters

expression

Logical expression, consisting of operands and relational operators. The operators listed in Table 7-1 “Logical Operators - The IF Command” may be incorporated in expression.

Table 7-1 Logical Operators - The IF Command

Logical operators:AND, OR, XOR, NOT
Boolean functions and values:BOUND, TRUE, FALSE, ALPHA, ALPHANUM, NUMERIC, ODD
Comparison operators:=, <>, <, >, <=, >=
Bit manipulation operators:LSL, LSR, CSR, CSL, BAND, BOR, BXOR, BNOT
Arithmetic operators:MOD, ABS, * , / , + , -, ^ (exponentiation)
Functions returning strings:CHR, DWNS, UPS, HEX, OCTAL, INPUT, LFT, RHT, RPT, LTRIM, RTRIM, STS
Functions returning integers:ABS, LEN, MAX, MIN, ORD, POS, TYPEOF
Other functions:FINFO, SETVAR

 

The allowed operands are any variable, integer, string, or Boolean constants, and the MPE/iX reserved words are WARN, FATAL, SYSTEM, and OK.

Compound logical expressions can be formed using the AND, NOT, XOR, and OR logical operators, and nested within parentheses.

The THEN keyword is optional. It may be used or omitted and has no effect on the results.

Operation Notes

This command begins an IF block consisting of all the commands after the IF command up to, but not including, the next ELSE. ELSEIF, or ENDIF statement. The ELSE, ELSEIF, or ENDIF must have the same nesting level as the IF statement. Another similar block can follow the ELSE statement.

Nesting of the blocks is allowed to 30 levels so long as IF is used alone. In a case where IF is used with WHILE the total nesting of IF and WHILE blocks cannot exceed 30 levels. Each IF or WHILE block read by the Command Interpreter increments the nesting count even if it resides within a different UDC or COMMAND file.

The ENDIF statement ends the IF block. The logical expression is evaluated and, if the expression evaluates to TRUE, the IF block is executed; if FALSE, the ELSE or ELSEIF block (if one exists) is executed.

NOTE: You may not write an IF construct in such a way that it physically crosses from one user command (UDCs or command files) to another.

Use

This command may be issued from a job, session, program, or in BREAK. Pressing Break has no effect unless expression contains the INPUT evaluator function.

Example

The following job listing illustrates the use of an IF statement with ELSE and ENDIF statements:

 !CONTINUE
!PASXL MYPROG,MYUSL
!IF JCW>=FATAL THEN
! TELL USER.TECHPUBS;COMPILE FAILED
!ELSE
! TELL USER.TECHPUBS;COMPILE COMPLETED
!ENDIF

Related Information

Commands

CALC, ELSE, ELSEIF, ENDIF, WHILE, ENDWHILE, ESCAPE, RETURN

Manuals

Appendix B, "Expression Evaluator Functions"

INPUT

Permits the user to assign a value interactively to any variable that could otherwise be set with the SETVAR command. The user may also create an optional prompt string and have it displayed on $STDLIST before the value is read. (Native Mode)

Syntax

INPUT [NAME=] varname [;PROMPT=prompt] [;WAIT=seconds] [;READCNT=chars]

NOTE: This command follows the optional MPE/iX command line syntax. Refer to "Optional Format for MPE/iX Commands" at the beginning of this chapter.

Parameters

varname

Any variable (that can be set with SETVAR) in which the input string from $STDIN is stored. If varname does not already exist, INPUT creates it.

prompt

The prompt string that is to be displayed on the standard listing device. If prompt is omitted, nothing displays, but INPUT then waits for an input value to store in varname. To include delimiters, for example, a comma (,) or semicolon (;) as part of the prompt string, you must surround the entire prompt string with quotation marks (" or ").

seconds

A positive value specifying the number of seconds for a timed read. If a value is assigned to seconds, the prompt waits seconds for input and then terminates the command. The default is zero, no time limit.

chars

The number of characters you want read from $STDIN. If chars is specified as a negative number, INPUT uses the absolute integer value. The maximum allowed (and the default) is the maximum size of a CI variable, which is currently 1024 characters.

Operation Notes

This command allows the user to assign a value interactively to a variable. It also allows the user to create an optional prompt message that is displayed on the standard list device ($STDLIST) before the value is read. This command provides a way to establish an interactive dialog with an executing UDC or command file. If it does not already exist, the variable varname is always created by INPUT. If you want to delete varname before ending a session, job, or program, use DELETEVAR varname. Refer to the DELETEVAR command.

CI input redirection can be used to set varname to a record in a file.

NOTE: If a colon (:) is read by the INPUT command at any level other than the root level CI, the error message END OF FILE ON INPUT.
(CIERR 900)
is returned.

INPUT reads a value from the standard input device ($STDIN) and stores it as a string in the variable named varname. If varname does not exist, INPUT creates it. If prompt is omitted, nothing is displayed, and INPUT waits for an input value to store in varname. The variable varname can be used as you would use any other MPE/iX string variable.

CI input redirection can be used to set varname to a record in a file.

NOTE: The INPUT command does not evaluate an expression before assigning its value to varname. The command recognizes only strings. Expressions such as 9 + 3 are treated as strings, even though they are not surrounded by quotation marks (" or ").

The user may optionally specify a timed read by creating a value for seconds. The pending read prompt is canceled after seconds. The INPUT command recognizes the HPTIMEOUT variable. The length of the timed read is seconds or HPTIMEOUT (in minutes), whichever is smaller. If a timed read (using seconds or HPTIMEOUT) expires, then the pending read terminates.

  • If varname already exists and you enter a null (a Return), then the value of varname remains unchanged.

  • The same thing happens if varname exists and seconds or HPTIMEOUT expires before a value for varname is entered. In this case, however, a warning occurs, and CIERROR is set to 9003.

  • If varname does not exist and a null (a Return) is entered for the variable value, then varname is created and set to null ("").

  • If varname does not exist and seconds or HPTIMEOUT expires, then varname is created and set to null (""), and CIERROR is set to 9003.

  • If the timed read expires due to the value of the HPTIMEOUT variable, for example, HPTIMEOUT=1 (in minutes) and the user executes INPUT bleep,,65, then the session is logged off.

Use

This command is available in a session, job, program, or in BREAK. Pressing Break aborts the execution of this command, without creating or modifying varname.

Examples

The INPUT command does not evaluate expressions, it stores them as a string. For example, the command INPUT bleep accepts and stores input (somevalue). If you want somevalue treated as an expression and evaluated and the result assigned to bleep (as opposed to assigning the string representation of somevalue), use the SETVAR command after using the INPUT command:

 INPUT bleep
SETVAR bleep !bleep

The first command reads whatever value you enter and sets bleep to the string representation of that input. The second command assigns bleep the (evaluated) value that you entered.

INPUT MYVAR <FILEONE

The above example reads the first record in FILEONE into the CI variable named MYVAR. In order to read the entire contents of a file INPUT must be in a WHILE loop and the while loop must have its $STDIN redirected to the file. Eg: READFILE <FILENAME , where READFILE looks like:

 SETVAR EOF FINFO(HPSTDIN, 'EOF')
  WHILE SETVAR (EOF, EOF-1) >=0 DO 
   INPUT MYVAR
    ...
  ENDWHILE

Table 7-2 “INPUT Command Function” illustrates how the INPUT command functions.

Table 7-2 INPUT Command Function

INPUT bleep and the user responds with:What is stored in bleep:Value* of bleep after SETVAR bleep !bleep:
0010011 (integer)
"001""001"001 (string)
TRUETRUETRUE (Boolean)
9+39+312 (integer)
Return(null) or bleep is not modified if it already exists<<error from the parser>>

 

* The result is an error if the user responds with an unquoted string:

  INPUT BLEEP,>
>ABC Return
SETVAR BLEEP !BLEEP

ABC is not a number. And, without quotes around it, ABC is not a string, either. If ABC is not a defined variable, it has no value to extract. So, the attempt to evaluate the result of explicitly dereferencing, !BLEEP produces an error. Refer to the SETVAR command.

Related Information

Commands

DELETEVAR, SETVAR, SHOWVAR, INPUT( ) function

Manuals

Using the HP 3000 Series 900: Advanced Skills

JOB

Defines a job to be activated with the STREAM command or an input spooled device to run in batch mode. (Native Mode)

Syntax

JOB[ jobname,] username [ /userpass] .acctname [ /acctpass] [ ,groupname[ /grouppass]]
[TIME=cpusecs] [;PRI= BS | CS | DS | ES]
[;INPRI=inputpriority ;HIPRI] [ ;RESTART] [;JOBQ=queuename]
[;OUTCLASS=[[DEVICE][,[OUTPUTPRIORITY][ ,NUMCOPIES]]]]
[;TERM={termtype}][ ;PRIVATE][ ;SPSAVE]

Parameters

jobname

Arbitrary name used with username and acctname parameters to form a job identity. The name must contain from one to eight alphanumeric characters, beginning with an alphabetic character. Default is that no job name is assigned.

username

User name, established by the account manager, that allows you to log on to this account. The name must contain from one to eight alphanumeric characters, beginning with an alphabetic character.

userpass

User password, optionally assigned by account manager. The password must contain from one to eight alphanumeric characters, beginning with an alphabetic character. If a password exists, but is not supplied in the command syntax, the STREAM command will prompt you for it if:

  • The STREAM command is invoked from a session.

  • Neither $STDIN nor $STDLIST is redirected.

  • The JOB command is a first level JOB command (it is not nested within a second level STREAM command).

If the password is supplied in the command syntax it must be preceded by a slash (/).

acctname

Account name as established by the system manager. The name must contain from one to eight alphanumeric characters, beginning with an alphabetic character. The acctname parameter must be preceded by a period (.).

acctpass

Account password, optionally assigned by the system manager. The password must contain from one to eight alphanumeric characters, beginning with an alphabetic character. If a password exists, but is not supplied in the command syntax, the STREAM command will prompt you for it if:

  • The STREAM command is invoked from a session.

  • Neither $STDIN nor $STDLIST is redirected.

  • The JOB command is a first level JOB command (it is not nested within a second level STREAM command).

If the password is supplied in the command syntax it must be preceded by a slash (/).

queuename

The name of the job queue the job will execute in. The default job queue is HPSYSJQ, which is a global queue for all jobs not associated with an individual job queue

groupname

Group name to be used for the local file domain and for CPU-time charges, as established by the account manager. The name must contain from one to eight alphanumeric characters, beginning with an alphabetic character. Default is home group if one is assigned. (Required if a home group is not assigned.)

grouppass

Group password, optionally assigned by the account manager. The password must contain from one to eight alphanumeric characters, beginning with an alphabetic character. The group password is not needed when you log on to your home group. It is needed when you log on under any other group for which a password exists. If a password is needed, but is not supplied in the command syntax, the STREAM command will prompt you for it if:

  • The STREAM command is invoked from a session.

  • Neither $STDIN nor $STDLIST is redirected.

  • The JOB command is a first level JOB command (it is not nested within a second level STREAM command).

If the password is supplied in the command syntax it must be preceded by a slash (/).

cpusecs

Maximum CPU time allowed job, in seconds. When this limit is reached, the job is aborted. This must be a value from 1 to 32,767. To specify no limit, enter a question mark or UNLIM, or omit this parameter. Default is a system-configured job limit.

BS, CS, DS, or ES

The execution priority queue that the command interpreter uses for your session. This is also the default priority for all programs executed within the session. BS is the highest priority; ES is the lowest. If you specify a priority that exceeds the highest priority permitted for your account or user name by the system, MPE/iX assigns the highest priority possible below BS. DS and ES are intended primarily for batch jobs; their use for sessions is generally discouraged. DS is the default and the maximum priority, unless modified by system management.

NOTE: Use care in assigning the BS queue. Processes in this priority class can lock out other processes.

For information on the guidelines for these priority queues, refer to the TUNE command in this chapter.

inputpriority or HIPRI

Determines the input priority of the job. The inputpriority parameter is the relative input priority used in checking against access restrictions imposed by the jobfence. The inputpriority parameter takes effect at logon time and must be from 1 (lowest priority) to 13 (highest priority). If you supply a value less than or equal to the current jobfence set by the system operator, the job is denied access. Default is 8.

The HIPRI option is used for two different purposes when logging on. It can be used to override the system jobfence, or it can be used to override the job limit. When using the HIPRI option to override the jobfence, the system first checks to see if you have system manager (SM) or system operator (OP) capability. If you have either of these capabilities, you are logged on and your INPRI defaults to the system's jobfence and execution limit. If you do not have either of these capabilities, the system attempts to log you on using INPRI=13 and succeeds if the jobfence is 12 or less, and if the job limit is not exceeded. In attempting to override the job limit (to log on after the maximum number of jobs set by the operator has been reached), you can specify HIPRI, but to do so you must have either SM or OP capability. The system does not override the job limit automatically. Use of the HIPRI option without SM or OP capability causes the following warning to be displayed:

MUST HAVE 'SM' OR 'OP' CAP. TO SPECIFY HIPRI,
MAXIMUM INPRI OF 13 IS USED (CIWARN 1460)

RESTART

Request to restart a spooled job that has been interrupted by the system termination/restart. This parameter takes effect automatically when the system is subsequently restarted with the START RECOVERY option. The effect is to resubmit the job in its original form.

This parameter applies only to jobs initiated on spooled input devices. It is ignored for other jobs. Default is that spooled jobs are not restarted after system termination/restart.

device

Class name or logical device number (ldev) of the device to receive listing output. You cannot specify a magnetic tape unit. If the parameter is not a valid LDEV or class name, an error is generated. Default is defined in the system configuration.

NOTE: Nonshareable device (ND) file access capability is required in order to use this parameter.
outputpriority

The output priority for job list file, if destined for spooled line printer. This parameter is used to select the next spooled device file (on disk) for output, from among all those contending for a specific printer. Must be a value from 1 (lowest priority) to 13 (highest priority). When outputpriority is 1, output is always deferred. To have output printed from disk, use an outputpriority of 2 or greater.

This parameter applies only to output destined for spooled output devices, and is ignored for other output. Default is 8.

numcopies

Number of copies of job listing to be produced. This parameter applies only when listing is directed to a spooled device, and is ignored in other cases. If the number of copies is less than 1, a warning is issued. The command still executes with the default value of 1. If the number of copies is greater than 127, an error message is printed, and 127 copies are printed. Default is 1.

termtype

The TERM= option is obsolete now that the JOB command cannot be used interactively. In order to maintain backward compatability, the termtype parameter is still parsed, but it is not used. If the TERM= option is used, a warning message will be displayed.

PRIVATE

The PRIVATE option forces the job output $STDLIST to be a private spoolfile. The spoolfile is only accessible to privileged users on the system. Private spoolfiles may not be saved or copied. They may only be purged, printed, or (within limits) altered.

SPSAVE

If this option is used, the resulting job output $STDLIST spoolfile is created with an SPSAVE disposition. This means that the spoolfile is not to be purged after the last copy of it has been printed, but is instead retained in the OUT.HPSPOOL group. SPSAVE may not be used if PRIVATE has been specified.

NOTE: The "&" symbol has no meaning to the input spooler when it reads records because the CI is not involved at that point.

Operation Notes

The JOB command is not used at the colon prompt (:). Rather, it is used in interactive mode with the STREAM command at the > prompt, or within an input jobfile, created to define a batch job. The job defined with this command is then activated (executed) with the STREAM command.

The JOB command is preceded by an appropriate substitute prompt character for the colon prompt. By default, MPE/iX expects the exclamation point (!) to be used. The JOB command must be terminated with an EOJ command. Refer to the STREAM command.

When MPE/iX begins the job, it displays the following information on the list device:

  • Job number, as assigned by MPE/iX to identify the job.

  • Date and time.

  • "HP 3000," and the modified and base MPE/iX version.update.fix numbers.

In the JOB command, as in the HELLO command, you must always supply your username and acctname, which you obtain from your account manager. If you omit either of these parameters, or enter them incorrectly, MPE/iX rejects your job and prints error messages on the standard listing device and the console. If your job is accepted, MPE/iX begins job processing. The job is entered with the STREAM command or through a spooled input device. Then the job is copied to an input spoolfile. The job is initiated from that spoolfile rather than the originating diskfile (in the case of the STREAM command) or device (in the case of the input spooled device). If the standard listing file is a line printer, MPE/iX prints a header page prior to listing the JOB command. (The system operator can disable the printing of this header page with the HEADOFF console command.)

The job number assigned by MPE/iX always uniquely identifies your job to MPE/iX and other users. MPE/iX assigns such numbers in sequential order as jobs are accepted. Sometimes, the job acceptance information includes a message from the system operator following the standard display. When present, this is the same message output in the logon information for sessions.

The minimum information needed for job initiation is the user and account name. However, the following also may be required:

  • Logon group name.

  • User, account, and/or group passwords.

The cases in which this information is required, and the rules for supplying it, are the same as those for the HELLO command for sessions, except that:

  • When you enter the JOB command through a device other than a terminal, and the standard input device is different from the standard listing device, MPE/iX does not echo passwords.

  • When the standard listing device is a line printer and you do not specify a file group name, central processor time limit, execution priority, and/or input priority in the JOB command, the default values assigned by MPE/iX for the omitted parameters appear on the job listing.

The STREAM command prompts for any necessary passwords that are not supplied in the command syntax if:

  • The STREAM command is invoked from a session.

  • Neither $STDIN nor $STDLIST is redirected.

  • The JOB command is a first level JOB command (it is not nested within a second level STREAM command).

All UDCs are available from a job. Any subsystem or UDC that expects input from $STDIN requires that input within your job stream file.

Use

This command may be issued only from a job file. It may not be used from a session, program, or in BREAK. Pressing Break has no effect on this command.

Example

The following example illustrates creating and using an ASCII file to define a batch job and then executing it with the STREAM command:

 RUN EDITOR.PUB.SYS
/ADD
1 !JOB WXYZ,WRITER.TEC
2 !EDITOR
3 TEXT ABC
4 LIST ALL,OFFLINE
5 EXIT
6 !EOJ
//
/KEEP MYJOB
/EXIT
:
STREAM MYJOB

The following example shows using the JOB command in interactive mode with the STREAM command:

  STREAM
>!JOB USER.TECHPUBS;OUTCLASS=12

Related Information

Commands

ABORTJOB, ALTJOB, BREAKJOB, SUSPENDJOB, RESUMEJOB, JOBFENCE, JOBPRI, STREAM, STREAMS, SHOWDEV, NEWJOBQ, LISTJOBQ

Manuals

Using the HP 3000 Series 900: Advanced Skills

MPE/iX Intrinsics Reference Manual

JOBFENCE

Defines the minimum input priority that a job or session must have in order to execute. (Native Mode)

Syntax

JOBFENCE priorityfence

Parameters

priorityfence

A number between 0 and 14, inclusive. Within this range, smaller numbers are less limiting; larger numbers more limiting.

Operation Notes

MPE/iX does not dispatch jobs or sessions with an input priority less than or equal to the priorityfence until their input priority is raised with the ALTJOB command, or until the jobfence is lowered. System managers and system supervisors may override the jobfence setting by logging on with the HIPRI parameter of the JOB or HELLO commands. Or, they may log on with an input priority greater than the jobfence as reported by the SHOWJOB command.

Use

This 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 command.

Examples

To defer all non-HIPRI jobs and sessions, first set the jobfence to 14, as shown below:

 JOBFENCE 14
16:18/#J7/34/DEFERRED JOB INTRODUCED ON LDEV #10
16:18/#J8/35/DEFERRED JOB INTRODUCED ON LDEV #10

Then enter the SHOWJOB command to display the effect of the new jobfence.

 SHOWJOB

JOBNUM STATE IPRI JIN JLIST INTRODUCED JOB NAME
#S26 EXEC 20 20 THU 4:17P OPERATOR.SYS
#J7 WAIT D 8 10S 12 THU 4:18P JOB1,FIELD.SUPT
#J8 WAIT D 8 10S 12 THU 4:18P JOB2,FIELD.SUPT
3 JOBS:
0 INTRO
2 WAIT; INCL 2 DEFERRED
1 EXEC; INCL 1 SESSIONS
0 SUSP
JOBFENCE= 14; JLIMIT= 5; SLIMIT=16

Finally, reset the jobfence to 6 to allow waiting jobs to log on:

 JOBFENCE 6

16:21/#J7/34/LOGON FOR: JOB1,FIELD.SUPT ON LDEV #10
16:21/#J8/35/LOGON FOR: JOB2,FIELD.SUPT ON LDEV #10

Related Information

Commands

ABORTJOB, ALTJOB, BREAKJOB, JOB, SUSPENDJOB, RESUMEJOB, JOBPRI, STREAM, STREAMS, SHOWDEV

Manuals

Using the HP 3000 Series 900: Advanced Skills

MPE/iX Intrinsics Reference Manual

JOBPRI

Sets or changes the default execution priority for batch jobs and sets a maximum execution priority for batch jobs. (Native Mode)

Syntax

JOBPRI [maxsubqueue] [,defaultsubqueue]

Parameters

maxsubqueue

The maximum priority at which batch jobs are allowed to run. This overrides any job priority a user may have requested with the JOB command. This parameter may be ES, DS, CS, or zero. If zero is specified, no limit is imposed on batch jobs. Default is no change in maximum priority.

default- subqueue

The default execution priority for batch jobs, which may be ES, DS, or CS. This takes effect if a user does not specify an execution priority in the JOB command. Default is no change in execution priority.

Operation Notes

The maxsubqueue parameter specified in the JOBPRI command takes precedence over defaultsubqueue. Therefore, selecting a default parameter greater than the value of maxsubqueue parameter does not affect job execution. Jobs are still initiated with the maximum priority parameter.

Use