× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Jon

In RPG and C you need some kind of BEGIN DECLARE SQL or some such, in order
for SQL to use the variables, followed by some kind of END DECLARE. If this
is generated similarly to the mapinc in C, put those DECLARE xxx around the
generating statement. Maybe?

At 06:41 PM 7/30/02 -0400, you wrote:
>This may belong on the COBOL list but I doubt the problem is COBOL specific.
>
>This code (extracted from a larger program) will not compile - insisting
>that VendR "not defined or not usable."  The VENDR structure is compiler
>created (or at least in the full program it was) and has all fields in the
>correct sequence.
>
>
>        01 VendorRecordWS.
>           05 VendR.
>           10 VENDORID              PIC X(6).
>           10 VENDORNAME            PIC X(30).
>           10 ADDRESSLINE1          PIC X(30).
>               :  etc. for every field in the file
>       *    Write VendorRecord
>            Exec SQL
>                 Insert into VendP
>                 Values( :VendR)
>            End-exec.
>
>I've tried qualifying the name (shouldn't be needed) and everything else I
>can think of but ....
>
>Anybody got any ideas?
>
>Jon Paris
>Partner400



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.