Page 1 of 1

Error Compiling Job Control Subroutine

Posted: Thu Dec 08, 2005 9:46 am
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

Posted: Thu Dec 08, 2005 9:54 am
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.

Posted: Thu Dec 08, 2005 10:05 am
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.

Posted: Thu Dec 08, 2005 11:56 am
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.

Got it working

Posted: Thu Dec 08, 2005 1:05 pm
by jtenshaw
Got it working; thanks to all for helping this newbie out.

- John

Subroutine call from trigger ?

Posted: Fri Dec 09, 2005 1:10 am
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.

Posted: Fri Dec 09, 2005 1:58 am
by ArndW
Isonisak,

that's correct.