on 06-20-2018 3:23 PM
Hi Experts,
How can we create functions in BODS for Job status tracking like success, failure etc.
Thanks
Naresh P
Hi.
There are 2 ways of doing this.
Hope this helps.
Regards. S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shazin,
Thanks for your update.
I tried 2nd option, but I am unable to print job_name(). Screen shot attached, I have created Job_status table in hana and I am trying capure the status in this table.
Thanks
Naresh P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shazin,
Thanks for your update.
I have modified my code but still, I am not able to print job name.
Code:
$GV_Cnt = sql('DFP_NEW','SELECT COUNT(*) FROM JOB_STATUS');
if ($GV_Cnt < 0)
$GV_JobName = job_name( );
print('job_name : '|| $GV_JobName);
$GV_Date = sysdate( );
sql('DFP_NEW','insert into JOB_STATUS values({$GV_JobName},1,{$GV_Date})');
print('the job_name is successfully executed :[$GV_JobName]');
Thanks
Naresh P
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.