Hi Robert, That part of my code I didn't make clear. I defined the call to QZHBGETVAR as a procedure call earlier in a "SPECIAL NAMES" section of the program. Also, I'm using a distribution of CGIDEV2 that is set up specifically for COBOL, hence the name "QZHBGETVAR". Thanks for the reponse.
Regards, Dean Gordonwood --- In [email protected], Robert Dunn <[EMAIL PROTECTED]> wrote: > > 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 --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/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/
