I am trying to get some clarification on how to use the repository table AL_HISTORY. In the documentation it indicates the following script can be used to return data on job execution.
SELECT SERVICE, INST_MACHINE, START_TIME, END_TIME, EXECUTION_TIME
FROM AL_HISTORY A
WHERE HAS_ERROR = 0
AND SERVICE NOT IN ('di_job_al_mach_info', 'CD_JOB_d0cafae2')
AND OBJECT_KEY = (SELECT MAX(OBJECT_KEY) FROM AL_HISTORY b WHERE A.SERVICE = B.SERVICE)
Can someone clarify where/how this query would be run? Do I have to create a repository datastore? I have seen mixed messages on this where some documentation indicates to create it (Scheduling BODS Jobs Sequentially and Conditionally) and others say it is not generally made available to developers (Saving BODS Dataflow Audit statistics ). If I do need to create the datastore how would I go about that?
If I do not need the datastore can I run the script directly for a job and/or dataflow to read these tables?