ACCOUNT Directory Statement
Purpose
The ACCOUNT statement specifies an account number to which a virtual machine may charge its costs. It also includes the distribution code, a code that has no meaning to CP but may be used by your installation as it needs it (for example, to designate where printed output is to go).
How to Specify
The ACCOUNT statement is allowed in profile, user, and identity entries. If specified, the ACCOUNT statement must go before any device statements in an entry. (For a list of device statements, see Table 1.) ACCOUNT statements in the profile entry are used only if no ACCOUNT statements are in the user or identity entry.
Operands
- acctnum1
- defines the primary account number. An account number can be 1- to 8-characters long.
- distcode
- defines the distribution code for printed and punched output. If you specify acctnum1 and do not specify distcode, the distribution code is the user ID from the USER or IDENTITY statement. If you are defining alternative account numbers, you must specify distcode. See the usage notes and examples.
- acctnumn
- defines up to seven alternative account numbers.
Usage Notes
- You can code multiple ACCOUNT statements in the same directory entry. The total number of account numbers you code for that entry cannot be more than eight, whether you code one ACCOUNT statement or many.
- If you code several ACCOUNT statements, distcode must appear on the first statement only, immediately after the primary account number.
- When logging on, a user has the option of specifying an alternative account number on the LOGON command. If the specified alternative account number is in the virtual machine definition, CP charges that alternate account number. If a user logs on without specifying an alternative account number on the LOGON command, CP charges the primary account number.
- If a virtual machine has several account numbers, the user can switch account numbers using the SET ACCOUNT command. For more information, see SET ACCOUNT.
Examples
- To specify JOB101 as a virtual machine's account number, use the following statement in the
virtual machine's definition:
Account job101 - To specify JOB101 as a virtual machine's account number and BIN-99Z as a virtual machine's
distribution code, use the following statement in the virtual machine's definition:
Account job101 bin-99z - To specify:
- JOB101 as a virtual machine's account number,
- BIN-99Z as a virtual machine's distribution code, and
- JOB102, JOB103, and PLAY999 as a virtual machine's alternative account numbers
use the following statement in the virtual machine's definition:Account job101 bin-99Z job102 job103 play999
