Is there a way to see the values of the BLOCKS and WARNING control statements used during the initialization of the ALOG file? Also is there a way to see the how full the ALOG file is at any time?
To get details of the ALOG status and definition, run an IDCAMS with the following SYSIN:
//SYSIN DD *
PRINT INFILE(IN) COUNT(1) DUMP
The output will produce a dump with the first record as follows:
00000001 00000mmm 00000nnn etc.
00000001 = the pointer where the next record will be written.
00000mmm = hex value of the total defined blocks - convert this to decimal.
00000nnn = hex value of the warning level.
Here is a sample:
RECORD SEQUENCE NUMBER - 1
00000 00007F60 00012EBC 00012CC8 0110259F 06070036 00000000 00000000 00000000
00020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
>>>> 00007F60 >>> x'7F60' = 32608 ; this will be the next record to be written.
>>>> 00012EBC >>> BLOCKS: x'12EB6' = 77500; this is the number of blocks used during the initialization of the ALOG.
>>>> 00012CC8 >>> WARNING: x'12CC8' = 77000; this is the threshold number at which overflow warning messages are written to the console.