The autorep detail report (autorep -d -J jobname) pulls information from the following AutoSys tables in the database:
ujo_job_status
ujo_job_runs
ujo_proc_event
When the following is issued:
autorep -d -J job
The details about the current run will be gathered and displayed.
Information would be pulled from ujo_job_status and ujo_proc_event.
When the following is issued:
autorep -d -J job -r -1
The details about the prior run will be gathered and displayed.
Information would be pulled from ujo_job_runs and ujo_proc_event.
NOTES:
By default AutoSys retains 7 days worth of data. Older data is archived to files in the $AUTOUSER/archive directory.
The autorep command does not access those files.
If a job attempts to start but never reaches a RUNNING state no record is logged in the ujo_job_runs table.
This would mean if the job runs later without problem attempts to run: autorep -d -J job -r -1 would NOT display any events/details about the failed attempt to start.
If the job failure to start attempt is the current run then details will be displayed as the information about the run_num would come from the ujo_job_status table.