ICL 1900 Series George 3 Operating System Macros

ACCOUNT

Function

Runs the account subject program.

Format

ACCOUNT IMULTn1, IDIVn2, Ln3, *LPfilename,

Where:

Forbidden contexts

Not under user :MANAGER. This macro must be used only when there are no other users' jobs in the system and the incremental dumper is idle.

Execution

The accounting subject program, which is held in the file :MANAGER.PROGRAM XK7F, and :MASTER.DICTIONARY is opened. Budgeting information is read from the Dictionary and an accountfor each user for the previous accounting period is output to the file ACCOUNTLP. Each user's account begins on a new page and the grand totals of the budgets used are output on the last page.

At the end of the macro, ACCOUNTLP is listed on the line printer and then erased. If *LPfilename is included in the ACCOUNT macro, the contents of ACCOUNTLP are copied to the specified file before ACCOUNTLP is listed and erased.

The program resets to zero the amounts of transient budgets used and provides each user with his new allowance for the new accounting period.

Error Messages

If an error occurs in the macro, the following message will be displayed on the operator's console:

     ERROR IN MACRO ACCOUNT: MACRO ABANDONED

This message will result if there is an error in the filename specified by *LP. It can also result from an inconsistency between the Dictionary and the accounting program which will cause the program to halt with a message beginning with the character F. If such a halt does occur, as determined by the examination of the monitoring file of the job, then the error must be investigated at once through the normal channels.