I could be using the wrong approach but here i go:
What i want:
I want to add version numbes to the seq files that my jobs create
eg: c:\data\result #version#.csv
My Approach:
1. create a job parameter called version
2. add a before job routing to set the version parameter to a new value (using the KeyMgtGetNextVAlue routine)
3. add the param value to the seq file name eg: c:\data\result #version#.csv
My Problem:
1. I can get the version number in the routine successfully
2. BUT when i use the DSSetParam(DSJ.ME, "version", newversionvalue) function, it returns a DSJE.BADHANDLE error
Any suggestion on approach or why the error would be much appreciated.
setting parameter value in befor job routine
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 27
- Joined: Sun Mar 20, 2005 4:23 am
- Location: Brisbane, Australia
'Before Job' is a bit of misnomer as the job has actually started at that point. Regardless, a job cannot set its own parameter values - it's too late at that point. Your controlling process, whatever actually runs the job, that process needs to do all of the parameter setting.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 27
- Joined: Sun Mar 20, 2005 4:23 am
- Location: Brisbane, Australia