Identify job section for accounting system
Component: | BS2000 |
Functional area: | Accounting system control |
Domain: | ACCOUNTING |
Privileges: | STD-PROCESSING |
Function
The WRITE-ACCOUNTING-RECORD command
generates and identifies a UDAT accounting record
generates and identifies a UACC accounting record
As identification, a character string is to be specified, which is to be placed into the accounting records.
For UDAT and UACC accounting records see the “Introduction to System Administration” [14]. The user can ascertain the maximum permissible number of user-specific accounting records from his entry in the user catalog (see the MAX-ACCOUNT-RECORDS output field of the SHOW-USER-ATTRIBUTES command).
Format
WRITE-ACCOUNTING-RECORD | ||||||||||||||||||||
|
Operands
RECORD-TYPE =
Type of identification.
RECORD-TYPE = *USER-DATA(...)
Generates a UDAT accounting record for the current job.
TEXT = <c-string 1..254>
Character string to be entered into a UDAT accounting record for the job. The character ‘&’ must not be used.
RECORD-TYPE = *USER-ACCOUNTING-STEP(...)
Generates a UACC accounting record for the current job.
INFORMATION = <c-string 1..8> / <x-string 1..16>
Character string with which the accounting record for the job is to be identified.
RECORD-TYPE = <c-string 1..254>
Character string to be entered into a UDAT accounting record for the job. The character ‘&’ must not be used.
Return codes
(SC2) | SC1 | Maincode | Meaning |
---|---|---|---|
0 | CMD0001 | Command executed | |
1 | CMD0202 | Syntax error | |
32 | CMD0221 | Internal error | |
64 | NAM3003 | Semantic error |
Example
/write-acc-rec rec-type=user-acc-step(inf=c'test #01') ———————————————— (1)
/write-acc-rec rec-type=user-data(text=c'projekt #01 testruns') ——————— (2)
(1) | A UACC accounting record is written, into which the string “TEST #01” is entered. |
(2) | A UDAT accounting record is written, into which the string “PROJECT #01 TESTRUNS” is entered. |