• Subject: Re: Embedded SQL in ILERPG
  • From: pytel@xxxxxxxxxx
  • Date: Tue, 16 Mar 1999 17:26:50 -0600

Message ID . . . . . . . . . :   SQL0305

Message file . . . . . . . . :   QSQLMSG

  Library  . . . . . . . . . :     QSYS


Message . . . . :   Indicator variable required.

Cause . . . . . :   A FETCH, an embedded SELECT, a CALL or a SET or VALUES

  INTO statement has resulted in a null value, but an indicator variable
was
  not specified for host variable &2.  The relative position of the host

  variable in the INTO clause or parameter list is &1. If the host variable

  name is *N, an SQLDA was specified.

Recovery  . . . :   Specify an indicator variable, and precompile the
program
  again.



Best regards
    Alexey Pytel



Ravi Viswanathan <ravi@spacestar.com> on 03/16/99 04:14:49 PM

Please respond to MIDRANGE-L@midrange.com

To:   MIDRANGE-L@midrange.com
cc:    (bcc: Alexei Pytel/Rochester/IBM)
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
+---


This thread ...


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

This mailing list archive is Copyright 1997-2019 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].