TomLiotta
8080 pts. | Nov 7 2009 2:03AM GMT
Can you show (1) the UDF arguments and return value definitions, and (2) a statement that invokes the UDF?
Tom
RJonesPartrick
15 pts. | Nov 9 2009 2:49PM GMT
The arguments are a decimal 2,0 and a character 2. The return value is character 10. A sample statement is: select item, #MRKT_MGR(comp#,cxcode) as mrktmgr from pubprices join iim on item = iprod join iicx on iclas = cxclas where comp# = 2. The #MRKT_MGR is the UDF. The arguments are values from the file pubprices (comp#) and from iicx (cxcode).
TomLiotta
8080 pts. | Nov 27 2009 9:43AM GMT
My apologies for coming back so late. I watched for a couple days and didn’t see a reply… I should have watched for a couple days plus 13 hours. I’m a little surprised that no one else jumped in.
In case you haven’t found a resolution –
What are the column definitions of comp# and cxcode? (Particularly, their data types and lengths.) Please show the actual definitions. These should match exactly with the corresponding UDF parm declarations.
If the interface parts all match, then schema (library) attributes become of interest.
Tom






