Problem with DSGetParamInfo & DSJ.ParamValue

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
fridge
Premium Member
Premium Member
Posts: 136
Joined: Sat Jan 10, 2004 8:51 am

Problem with DSGetParamInfo & DSJ.ParamValue

Post 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.
fridge
Premium Member
Premium Member
Posts: 136
Joined: Sat Jan 10, 2004 8:51 am

Resolved

Post by fridge »

It was simply a case sensitive problem ...

ParamVal = DSGetParamInfo(JobHandle, pCLEANSEDFILE, DSJ.PARAMVALUE)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply