Questions about subroutine
Posted: Thu Feb 12, 2004 2:04 pm
Hi,
I was trying to write a my own subroutine to be called in the job control. I was able to create the routine sucessfully. But when I tried to call the routine in the job control, it did not pass the compilation. It mistakes routine name as array name.
Here is the defintion of my routine:
Subroutine RunDW(InpurArg,ErrorCode)
Call DSLogInfo("The subroutine is called",InputArg)
ErrorCode = 0;
Return
And my code to call the routine is
error = RunDW("Test")
Can anybody shed some lights?
Thanks,
Carol
I was trying to write a my own subroutine to be called in the job control. I was able to create the routine sucessfully. But when I tried to call the routine in the job control, it did not pass the compilation. It mistakes routine name as array name.
Here is the defintion of my routine:
Subroutine RunDW(InpurArg,ErrorCode)
Call DSLogInfo("The subroutine is called",InputArg)
ErrorCode = 0;
Return
And my code to call the routine is
error = RunDW("Test")
Can anybody shed some lights?
Thanks,
Carol