× 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.


  • Subject: RE: Embedded SQL in ILERPG
  • From: "Brown, Doug (Golden)" <Doug.Brown@xxxxxxx>
  • Date: Tue, 16 Mar 1999 18:43:17 -0500

Try this!  I was just looking up some SQLCODE values myself.  It's not a
detailed description but if you poke around long enough, you just might find
some useful info!  Happy hunting.

http://as400bks.rochester.ibm.com/cgi-bin/bookmgr/bookmgr.cmd/BOOKS/QB3AQ802
/B.1.2.95

-----Original Message-----
From: owner-midrange-l@midrange.com
[mailto:owner-midrange-l@midrange.com]On Behalf Of Ravi Viswanathan
Sent: Tuesday, March 16, 1999 3:15 PM
To: MIDRANGE-L@midrange.com
Subject: Embedded SQL in ILERPG



 Hello all,

I am trying to retrieve data from an Oracle database using Oracle Access
Manager
and embedded SQL in ILERPG.

I am selecting 12 columns from the ORacle table and inserting into a PF
locally.
I have problems with one of the Oracle columns and if I remove this column
everything works fine.

The problem is this: On  Oracle the field is defined as :
DESCRIPTION_2_TXT      VARCHAR2(30)
In the records that I need to retrieve, all the values are blank in this
column .
After I FETCH the cursor, SQLCA has the following values ( I've just pasted
the
msgs that I think are relevant)

  SQLCA                 DS
      SQLCOD              BIN(9,0)             -000000305.      'FFFFFECF'X

    SQLERM              CHAR(70)             '  DESC2
                             VALUE IN HEX
'0009C4C5E2C3F24040404040404040404
                             41
'404040404040404040404040404040404

   SQLERR              CHAR(24)             '                        '
                      VALUE IN HEX
'000000000000000000000000000000000

  SQLSTT              CHAR(5)              '22002'          'F2F2F0F0F2'X

The host variable that I am retrieving this into is defined as 30A. No
values
from any of the other columns are retrieved. If I get rid of this field from
my
cursor definition, the code works.  How can I "monitor" for this scenario ?
Also,
where do I find more information on these error codes? Can't find anything
in the
manuals........

Any help will be appreciated.....

Thanks

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.