need to create GUUID in datastage without using database

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

need to create GUUID in datastage without using database

Post by prasson_ibm »

Hi,
We have requirment to create GUUID ,is there any fuction or routine in datastage that will create it,acutally we can't call oracle or any database function here.
We can call c++ routines,unix script or java functions,so can anyone help us to achieve this by any of above ways.

Thanks
Prasoon
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There's nothing provided "out of the box" in DataStage, but there's nothing to prevent you from creating your own routine. You should be able to find an algorithm for GUUID on the internet, for example at http://www.guidgenerator.com/.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Sorry,not able to see the premium content,any one has done this in datastage,please suggest.

Thanks
Prasoon
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You've been using DSXchange for more than five years. Don't you think less than Rs12 per day (for premium membership) would be a worthwhile investment?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Never mind the fact that you saw enough of the answer to know what it was going to be - roll your own solution, search the 'net for code examples.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,

I tried to find work around with writing a C++ code, below is the code:-

Code: Select all

#include </uuid/uuid.hpp>
#include <stdio.h>
#include <stdlib.h>
char* UUID_GEN()
{
char* uuid;
uuids = uuid_generate();
return uuid;
}
But while compliation its giving below error message:-

Code: Select all

", line 1.10: 1540-0836 (S) The #include file </uuid/uuid.hpp> is not found.
Any suggestion will be appriciated.

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

Post by chulett »

A) It's not a "work around".

B) The file you told it to use is missing. Find it. Probably from wherever you got the code.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,
How can we add this header in C++ compiler on unix env.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Find the correct header file and specify its correct pathname in the #include declaration.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply