need to create GUUID in datastage without using database
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 536
- Joined: Thu Oct 11, 2007 1:48 am
- Location: Bangalore
need to create GUUID in datastage without using database
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
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
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 536
- Joined: Thu Oct 11, 2007 1:48 am
- Location: Bangalore
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 536
- Joined: Thu Oct 11, 2007 1:48 am
- Location: Bangalore
Hi,
I tried to find work around with writing a C++ code, below is the code:-
But while compliation its giving below error message:-
Any suggestion will be appriciated.
Thanks
Prasoon
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;
}
Code: Select all
", line 1.10: 1540-0836 (S) The #include file </uuid/uuid.hpp> is not found.
Thanks
Prasoon
-
- Premium Member
- Posts: 536
- Joined: Thu Oct 11, 2007 1:48 am
- Location: Bangalore
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: