Error Compiling Job Control Subroutine

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
jtenshaw
Premium Member
Premium Member
Posts: 34
Joined: Thu Dec 08, 2005 9:26 am

Error Compiling Job Control Subroutine

Post by jtenshaw »

I have created a routine and am trying to use it in within a Nested Condition. My Expression Type is Custom - (Conditional). Within the Expression field I have something like - RoutineName ("parameter") = 1. When I compile, I get - Array 'RoutineName' never dimensioned. What does this mean? RoutineName is not an array. How can I correctly call my routine?

thx - John
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use the Routine Activity stage to actually call the routine and then use the Nested Activity stage to check the results and decide what to do.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

This is because functions need to be pre-declared in programs using the DEFFUN declaration.

In your case the solution is simple, create a routine activity stage and call up your function, then in the Nested Condition use the value Your_Routine_Activity.$ReturnValue" for your comparision.
ameyvaidya
Charter Member
Charter Member
Posts: 166
Joined: Wed Mar 16, 2005 6:52 am
Location: Mumbai, India

Post by ameyvaidya »

If you are using Version 7.5, you don't need the nested condition stage. The routine stage supports conditional triggers based on returnvalue.
Amey Vaidya<i>
I am rarely happier than when spending an entire day programming my computer to perform automatically a task that it would otherwise take me a good ten seconds to do by hand.</i>
<i>- Douglas Adams</i>
jtenshaw
Premium Member
Premium Member
Posts: 34
Joined: Thu Dec 08, 2005 9:26 am

Got it working

Post by jtenshaw »

Got it working; thanks to all for helping this newbie out.

- John
Isonisak
Participant
Posts: 2
Joined: Mon Nov 28, 2005 3:01 am

Subroutine call from trigger ?

Post by Isonisak »

So, it isn't possible to call routine from DS 7.5.x Sequence/Job Activity trigger ?
The call succees from Routine Activity only ?

When a call is made from trigger every compiling throws like

Array 'WeekTag' never dimensioned.
1 Errors detected, No Object Code Produced.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Isonisak,

that's correct.
Post Reply