I was looking at the API functionality in the Data Archive for ADABAS product in order to make it easier to report on how many records were “archived” in a given month. Currently, I go to the console under System Management Hub and to Data Archiving for Adabas 1.8.1->Services by (group:computer:daemon)->DEFAULT:CH40:DAEMON->Completed Activities, and then highlight each screen, copy, and paste into Excel. Usually in a month I have quite a number of screens now to copy, and sometimes when I paste into Excel it doesn’t quite paste it the way it should, so that’s a pain.
In the APIs, there appears to be a couple of functions that seemed promising: ACTIVITY-LIST and ACTIVITY-INFO. The latter gives me the information I want, but it requires knowing the Activity-ID first. From APICMD in SYSADR library:
ADR ACTIVITY INFORMATION
Activity-ID: 1903260700000000
Group: DEFAULT
Plan: Sales_Reporting
Action: ARCHIVE_SP_RECAST_CHARGE_SUBLINE
Type: ARCHIVE
Start Date: 20190326
Start Time: 070101
End Date: 20190326
End Time: 070140
Overall Status: 0x82
Overall RSP: 0
Overall SUB: 0x00000000
Overall Count: 1202
Extractor Status: 0x82
Extractor Computer: CH40
Extractor RSP: 0
Extractor SUB: 0x00000000
Source Files:
Accumulator Status: 0x82
Accumulator Computer: CH40
Accumulator RSP: 0
Accumulator SUB: 0x00000000
Target Files:
Vault: VAL1
Vault Path:
/opt/softwareag/testvault
That would be ok if I could use the former to get the list of Activity-IDs that completed within the last month (which shouldn’t be too hard since I know the Activity-IDs are in a range with the format of YYMMDDHHIISSSSSS (e.g., 1903260700000000 ran on 2019-03-26 at 07:00:00.0000). However, ACTIVITY-LIST appears to show only currently active IDs.
Is there a way to get these APIs to give me the info I get from SMH? The only idea I have is to send what I expect to find for Activity-IDs based on how I set up the schedule, but I’d have to modify this program each time I alter the schedule or define a new action and would miss any non-scheduled activities.
Thanks in advance!
-Brian