From: Hudson R. <hud...@so...> - 2002-09-02 04:25:48
|
Hi Ferran, > The variable can be any type, I use pic x(n) but pic a(n) or pic 9(n) > should work. > The size is not important, the size of parameter-wor only needs to be > big enought to contain all the address and the null char. If there is an > empty space after this, the C routine won't use it. Ok. I got it. > To get the return value, you should use the giving or returning clause > of the call statement. > > call "cgi_goodemailaddress" using parameter-wor giving return-wor. > > I recomend that return-wor were a pic 9(6) comp, this picture is the equivalent to a C int. This way, it shows nothing in return-wor variable, even if the e-mail address is true. Talking with Husni(a brasilian TinyCOBOL user), I notice that cgi_goodemailaddress routine not return values from a COBOL call. anyway, thanks for your help! Hudson |