Page 1 of 1

Array 'DSGetLinkInfo' never dimensioned

Posted: Thu May 05, 2005 4:27 am
by Rubu
Hi
While Compiling a Transform Rouitne I am recieving following error.



Compiling: Source = 'DSU_BP/DSU.WriteSequence', Object = 'DSU_BP.O/DSU.WriteSequence'
*?*
0012 Count=DSGetLinkInfo(JobHandle,LStageName,LLinkName,DSJ.LINKROWCOUNT)
.......................... ^
',' unexpected, Was expecting: '!', ')', '=', "AND", "OR", "LT", "LE",
"GT", "GE", "NE", "EQ", "MATCH"
Array 'DSAttachJob' never dimensioned.
WARNING: Variable 'DSJ.ERRFATAL' never assigned a value.
Array 'DSGetLinkInfo' never dimensioned.
Array 'DSDetachJob' never dimensioned.

4 Errors detected, No Object Code Produced.


Why is it happening with this simple routine, where I am trying to get the no of rows passed through a link?

Regards
rubu

Posted: Thu May 05, 2005 4:33 am
by dstechdev
Searching FAQs for DEFFUN may give you a good starting point for researching the issue

Posted: Thu May 05, 2005 4:35 am
by Sainath.Srinivasan
I think you have problems somewhere before this. Probably in the line where you attach to the job. Maybe mismatch '(' to ')'

Posted: Thu May 05, 2005 4:38 am
by roy
Hi,
I think your Routine is missing the:

Code: Select all

$INCLUDE DSINCLUDE JOBCONTROL.H
statement in it's begining to support job control functions such as the various DSGet... functions.

after adding it recompile, if moe problems continue this post

IHTH,

Array 'DSGetLinkInfo' never dimensioned

Posted: Thu May 05, 2005 4:40 am
by Sunshine2323
$IFNDEF JOBCONTROL.H
$INCLUDE DSINCLUDE JOBCONTROL.H
$ENDIF


Add this to the begining of the code and try compiling.

Posted: Thu May 05, 2005 4:42 am
by roy
you do not nee the IFNDEF part just the include line
(simply since the IFNDEF is already in the JOBCONTROL.H file.)

Thnaks

Posted: Thu May 05, 2005 8:45 pm
by Rubu
Thanks All of you.
I actually did not include the jobcontrol.h file...