Page 1 of 1

Problem with DSGetParamInfo & DSJ.ParamValue

Posted: Wed Jan 13, 2010 3:30 am
by fridge
Am trying to extract a parameter value from the last time a server job was ran using ....

JobHandle = DSAttachJob(JobName,DSJ.ERRNONE)
ParamVal = DSGetParamInfo(JobHandle, pCLEANSEDFILE, DSJ.ParamValue)

I then output both the job name and parameter value (for param pCLEANSEDFILE) but whereas I get the correct job name I get '-5' returned instead of the param value I expected.

I have substituted for other DSGetParamInfo and get the same '-5'. I assume this must be some sort of error code but because I know the parameter value exists from the last run I am not sure why I am getting it or how to extract more information about it.

Any help appreciated.

Resolved

Posted: Wed Jan 13, 2010 4:46 am
by fridge
It was simply a case sensitive problem ...

ParamVal = DSGetParamInfo(JobHandle, pCLEANSEDFILE, DSJ.PARAMVALUE)

Posted: Wed Jan 13, 2010 7:24 am
by chulett
All of those error codes are documented in the dsapi.h header file in the $DSHOME/include directory, from what I recall. FYI. Perhaps in the online help as well.