LookUp returning NULL when reading a seqval from dual

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
muascdev
Charter Member
Charter Member
Posts: 51
Joined: Tue Oct 10, 2006 5:48 pm

LookUp returning NULL when reading a seqval from dual

Post by muascdev »

i have a requirement where in i need to get the sequence numbers and use it for various purposes, when i use the lookup with oracle enterprise with sparse, its returning NULL. my sql is like this

select mdm_seq.nextval as TASKID, '1' as dummy from DUAL;

i also use dummy variable in the source file and hard coded that as '1' too, thought i needed to do this so lookup link can find a match in the input source, but it doesnt return the seq number. any help?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are you (the executing user - the user ID used to connect to Oracle) the owner of this particular sequence? You may need to qualify the sequence name with its owner's identity.
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