delete universe records from DS function
Posted: Tue Sep 30, 2003 12:55 am
Hi,
I have a universe table containing log information, I want to delete records from it in terms of Batch job name, I tried the following code
*************************************************
JobHandle = DSJ.ME
JobName = DSGetJobInfo(JobHandle,DSJ.JOBNAME)
Cmd = "DELETE FROM BJOB_STATUS WHERE Batch_JobName = '" : JobName : "'"
Call DSLogInfo("The sql is " : Cmd, RoutineName)
Execute Cmd Capturing Msg
Call DSLogInfo(Msg, RoutineName)
**************************************************
I found it doesn't work.
Thanks in advance for your advice
xiong[8)]
I have a universe table containing log information, I want to delete records from it in terms of Batch job name, I tried the following code
*************************************************
JobHandle = DSJ.ME
JobName = DSGetJobInfo(JobHandle,DSJ.JOBNAME)
Cmd = "DELETE FROM BJOB_STATUS WHERE Batch_JobName = '" : JobName : "'"
Call DSLogInfo("The sql is " : Cmd, RoutineName)
Execute Cmd Capturing Msg
Call DSLogInfo(Msg, RoutineName)
**************************************************
I found it doesn't work.
Thanks in advance for your advice
xiong[8)]