Migrating 9.1 SDKSequences between environments

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
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Migrating 9.1 SDKSequences between environments

Post by jreddy »

In V9.1, SDKSequences is not a file but a hash file (meaning it has a folder with OVER.30 and DATA.30 files) - how do we migrate this file across environments. For example when we have a production data refresh into development, then we will need to bring the SDKSequences from prod to dev as well. I zipped up the folder and brought it into DEV, but get the following error message when i run a job that calls the KeyMgtGetNextValue routine that uses the SDKSequences..

"An operating system file already exists with the name "SDKSequences".

Any one had this issue before.. any suggestions are appreciated

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Remove the directory you copied over. Run the KeyMgtGetNextValue routine so that it creates an empty one properly with the VOC entry and everything else it needs. Then copy your copy back over the top of what it created.

You could 'test' the routine to run it, no need for a job to do that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Post by jreddy »

Thanks Craig, thats exactly how we used to do it when it was a static hash file.

Now, not sure what the issue is, but I did not see the SDKSequences folder in DEV in the first place, second - when i click on routine, cannot TEST it, cannot insert new rows in the TEST window.. to click Run or Run All and test.. so i ran a job that invokes this routine, and get the error message as posted in the original question..

Since that didn't work, i brought the folder from production and then tried to run the job that invokes this routine, and again get the same error message
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Post by jreddy »

Just for the benefit of folks that might have same issue, am posting the resolution i found that seemed to work for me, in the case of this particular error message.
All I did was run this first:

CREATE.FILE SDKSequences 2 1 1

And then wrote a job to read the tables and get the max values of keys and assign. This job can hopefully be run in development every time there is a refresh.
Post Reply