Hi Dean,

I am not a COBOL programmer, but if you are using
cgidev2, shouldn't you be using the "zhbgetvar"
procedure and call it using a "call procedure" instead
of a "call"?

Robert Dunn 
--- Dean Gordonwood <[EMAIL PROTECTED]> wrote:

> Greetings,
> 
> I am developing a CGI program in COBOL that must
> receive multiple 
> fields from the web page. I used the api
> "QZHBGETVAR" to get the 
> fields, as follows:
>            77  item-number          pic x(15).
>            77  component-item       pic x(15). 
>            .
>            .
>            .
>            move "pitnbr" to var-name of
> CGIVarVal-parms.
>            call "QZHBGETVAR" using
>                by content var-name  of
> CGIVarVal-parms
>                returning into item-number
>            end-call.
>            move "citnbr" to var-name of
> CGIVarVal-parms.
>            call "QZHBGETVAR" using
>                by content var-name  of
> CGIVarVal-parms
>                returning into component-item
>            end-call.
> 
> I could not get this to compile.  The compiler would
> note that 
> the "returning into" field in the first call to
> "QZHBGETVAR" did not 
> have the correct type or length. (Error LNC2756). 
> The second call 
> to "QZHBGETVAR" did not have an error.  The only way
> I have been able 
> to get it to work is to declare a general purpose
> field and use this 
> on all calls to "QZHBGETVAR", then move the contents
> of the general 
> purpose field to another field.  Is this the only to
> get "QZHBGETVAR" 
> to work?
> 
> Best Regards,
> Dean Gordonwood
> 
> 
> 
> 



                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/wbFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Easy400Group/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to