UtilityHashLookup Compilation Error in Uservariabe_Activity

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
Amit_111
Participant
Posts: 134
Joined: Sat Mar 24, 2007 11:37 am

UtilityHashLookup Compilation Error in Uservariabe_Activity

Post by Amit_111 »

I am doing a UtilityHashLookup on a hash file to read a value from the hash file.

I have written this transform utility in the "Expression Editor" of the "UserVariables_Activity" stage.

For e.g. UtilityHashLookup("testparam", 1, 1) in the "UserVariables_Activity" stage.

But when i complie this sequencer i get an error
Compiling: Source = 'RT_BP282/JOB.1757074826.DT.148806366', Object = 'RT_BP282.O/JOB.1757074826.DT.148806366'
**************************************************************************************************************?*********
0075 IdV0S1%%UserVar%%0 = (UtilityHashLookup(("testparam"), (1), (1)))
^
',' unexpected, Was expecting: '!', ')', '=', "AND", "OR", "LT", "LE",
"GT", "GE", "NE", "EQ", "MATCH"
0076 IdV0S1%%UserVar%%1 = (UtilityHashLookup(("testparam"), (1), (1)))
^
',' unexpected, Was expecting: '!', ')', '=', "AND", "OR", "LT", "LE",
"GT", "GE", "NE", "EQ", "MATCH"
Array 'UtilityHashLookup' never dimensioned.

3 Errors detected, No Object Code Produced.
(Master_Sequencer)
I am aware that the error "Array 'UtilityHashLookup' never dimensioned." is shown when its corresponding .H file is not included in the routine. But here i am using it in the activity stage. How can i resolve this error??
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why... write a routine, of course. Use that instead.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply