EH is for Current
AH is for recent
OH is for Old
I use several different ways to get the Status of a job. Here's an example of an easy way to do it.
One is to create a SQLI query.. then process the query with a job to send an email:
Here's an example of a query named "VARA.SQLI.REPORTING_JOB_ABENDED" for currently "ended not ok" jobs.
select EH_NAME, EH_EndTime from EH where EH_Status = 1800
and EH_name like '%JOBS%'
Order by EH_EndTime
See the below for a list of Status Codes, just change the Status from 1800 to what you are looking for from the list of status codes:
System Return Codes of Executable Objects (automic.com)Second part
If you want to send an email -- Create a Job object, Prep Process the SQLI vara you created, Print Process the Columns you want to send in an email, and use Send_Mail to send it to an email address.
See below example in the Process tab of a JOB Object you would create:
:SET &NL# = UC_CRLF
:SET &HND#=PREP_PROCESS_VAR(VARA.SQLI.REPORTING_JOB_ABENDED)
:PROCESS &HND#
! get first column value of every line
: SET &RES# = GET_PROCESS_LINE(&HND#, 2)
! get second column value of every line
: SET &COL1# = GET_PROCESS_LINE(&HND#, 3)
: SET &SCRIPTVAR# = "&SCRIPTVAR# &NL# &RES# &COL1# "
:ENDPROCESS
:CLOSE_PROCESS &HND#
:PRINT &SCRIPTVAR#
: SET &RET# = SEND_MAIL("XXXXXX@XXXXX.com", , "Abended Prod Jobs", "Abended Prod Jobs &SCRIPTVAR#")
You can search the documentation on how to use all the above.
PREP_PROCESS_VAR (automic.com)SEND_MAIL (automic.com)SQLI VARA Objects (automic.com)Once you have begun creating and familiarizing yourself with SQLI Vara objects and jobs, you can search this community for specifics. There are a lot of good examples and advice here.
Original Message:
Sent: Jul 12, 2017 04:33 AM
From: Tran
Subject: Get information of the job status success, fail, pending, ...
Hello,
Can somebody tell me how do we can get the job status of automic UC4? I have the access to its database and I found this document:
https://docs.automic.com/documentation/webhelp/english/ALL/components/AE/11.1/DB%20Schema/db/_structure/HTML/index.htm#ECC/ECC_General/ecc_login.htm%3FTocPath%3DAbout%2520the%2520Enterprise%2520Control%2520Center%7C_____2But I don't know exactly the table where the database stores the status of UC4 jobs.
If it stores the job status in the database, how many status do we have, such as success, fail, pending, long running, ....
Regards,
Phat