Hi all,
I need to execute a ds routine inside a ds routine.
I put this in the code:
....
Var = MyRoutine('2004-01-01')
.....
inside a routine. The answer after compile it is "Array MyRoutine never dimensioned."
How can i do this?
Thanks for all.
How to call a routine inside a ds routine
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 199
- Joined: Tue Jan 18, 2005 2:50 am
- Location: India
-
- Charter Member
- Posts: 199
- Joined: Tue Jan 18, 2005 2:50 am
- Location: India
Re: How to call a routine inside a ds routine
Sorry I forgot to write,
You got the above error while compiling the RoutineB because, you have not specifically given directive to compiler that 'MyRoutine' used in RoutineB is a Routine. If you dont give any directive the compiler will think that "MyRoutine" is an array variable.pavlicic wrote: Var = MyRoutine('2004-01-01')
inside a routine. The answer after compile it is "Array MyRoutine never dimensioned."
Shantanu Choudhary
Using a procedure in a basic routine?
Hi,
And is it possible, in a basic routine, to use a group of statements more then once wihtout having to write it each time? Basically, is it possible to use the procedure concept (as in PL/SQL, C, etc.) without calling another subroutine?
Thanks!
And is it possible, in a basic routine, to use a group of statements more then once wihtout having to write it each time? Basically, is it possible to use the procedure concept (as in PL/SQL, C, etc.) without calling another subroutine?
Thanks!