Invalid Event Type when using DSGetLinkInfo/DSLogInfo
Posted: Fri Jul 20, 2007 10:44 am
Hi;
In a server job I'm trying to simply grab a link row count, and write that to the log file. I have an AfterJob routine, which contains the following:
$INCLUDE DSINCLUDE JOBCONTROL.H
$INCLUDE DSINCLUDE DSJ_XFUNCS.H
ErrorCode = 0
OUTPUT = DSGetLinkInfo(DSJ.ME,"tran1","outlink",DSLinkRowCount)
Call DSLogInfo(OUTPUT, JobName)
When I run this, I wind up with an error code of -5 in my log, which according to the dsapi.h file is an "Invalid EventType value".
A search of the forum shows many posts that reference the EventType, but none that I saw which actually explain what the EventType is actually doing (and the DS help file didn't seem to help either).
Can someone please explain why I'm getting this error, and what in my snippet of code (which I cobbled together from some other posts regarding DSGetLinkInfo) might be causing the the problem? My forehead is starting to get sore from banging it against the keyboard.
Thanks,
-> Richard
In a server job I'm trying to simply grab a link row count, and write that to the log file. I have an AfterJob routine, which contains the following:
$INCLUDE DSINCLUDE JOBCONTROL.H
$INCLUDE DSINCLUDE DSJ_XFUNCS.H
ErrorCode = 0
OUTPUT = DSGetLinkInfo(DSJ.ME,"tran1","outlink",DSLinkRowCount)
Call DSLogInfo(OUTPUT, JobName)
When I run this, I wind up with an error code of -5 in my log, which according to the dsapi.h file is an "Invalid EventType value".
A search of the forum shows many posts that reference the EventType, but none that I saw which actually explain what the EventType is actually doing (and the DS help file didn't seem to help either).
Can someone please explain why I'm getting this error, and what in my snippet of code (which I cobbled together from some other posts regarding DSGetLinkInfo) might be causing the the problem? My forehead is starting to get sore from banging it against the keyboard.
Thanks,
-> Richard