Key ids in 1 SEQUENCES file shared by multiple projects

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
SANOJ
Participant
Posts: 11
Joined: Mon Dec 01, 2003 9:14 am
Contact:

Key ids in 1 SEQUENCES file shared by multiple projects

Post by SANOJ »

We use the KeyManagementGetNextValue + ...Concurrent to create and store unique database keys.

How can these routines be changed in an environment where there are multiple DS projects, ic DEV, TEST and PROD. Now each project has got its own SEQUENCES + D_SEQUENCES file.

How can the routines be changed to refer to one common SEQUENCE file, so that keys are incremented, no matter which environment requires the increment?

tx,
Wim
Wim

___________
"Carpe Diem"
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi & Welcome,
a quick search here will probably turn Kenneth Bland's routine for this.
you'll probably find more info on this issue, it was covered extensivly.

Good Luck,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
SANOJ
Participant
Posts: 11
Joined: Mon Dec 01, 2003 9:14 am
Contact:

No answer to multipe projects

Post by SANOJ »

I've found Ken's Routine, but we're fine with the provided KeyMgtGetNextValue routine.
What I still haven't seen is how you can relate to a location for the UVfile SDQsequences other than the standard location under the rootname of the project.

Any help?
Tx,
Wim
Wim

___________
"Carpe Diem"
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's not in the DataStage documentation how to do this, because the philosophy of DataStage is that projects are completely independent of each other.

It is, nonetheless, possible. You need one SDKSequences and one D_SDKSequences file, in any location that the multiple projects can "see". You can use an operating system command (cp on UNIX, COPY on Windows) to move them.

You then use SETFILE in each project to create a pointer to that location. Search the forum for SETFILE.

:!: Any consequences of using a shared SDKSequences file are on your own head!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SANOJ
Participant
Posts: 11
Joined: Mon Dec 01, 2003 9:14 am
Contact:

Use of SETFILE worked!

Post by SANOJ »

Thanks, Ray, this solved the issue ...
we'll cope with the risk :wink:

Wim
Wim

___________
"Carpe Diem"
Post Reply