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



This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
The following SQL:
     C/EXEC SQL
     C+ Declare C1 cursor for
     C+ SELECT login.logid, login.logpas, login.logfnm, login.loglnm,
     C+        login.logcnm, login.logacc, login.logact, login.loglev,
     C+        login.logsts, login.logphone, login.logemail,
     C+        login.logflg1, login.logflg2, login.logedte, login.logeusr,
     C+        login.logmdte, login.logmusr, login.logpsod, login.logpwcd,
     C+        login.logpwei, login.logpwex,
     C+        tpnbr.tpnbr, tpnbr.tpttype, tpnbr.rolecode,
     C+        tptype.tpt400, tptype.tptlib, tptype.tptfile,
     C+        tptype.tptfield, tptype.tptpname, tptype.tpphone,
     C+        tptype.tpfax, tptype.tpemail,
     C+        tpfacl.tpfacl, tpfacl.tpdrawflr
     C+     FROM (((login left outer join tpnbr
     C+        ON login.logid = tpnbr.logid)
     C+        left outer join tptype
     C+        on tpnbr.tpttype = tptype.tpttype)
     C+        left outer join tpfacl
     C+        on tpnbr.logid = tpfacl.logid
     C+        and tpnbr.tpnbr = tpfacl.tpnbr
     C+        and tpnbr.tpttype = tpfacl.tpttype)
     C+     WHERE login.logid=:UserName and login.logpas=:Password
     C+        and login.logsts='1'
     C+        and login.logpwex='0'
     C+        and (login.logpwei<0 or
     C+            (CURRENT DATE <= DATE(logpwcd)+ logpwei days))
     C/END-EXEC

gives me this error:
                        Additional Message Information

Message ID . . . . . . :   SQL0305       Severity . . . . . . . :   30
Message type . . . . . :   Diagnostic
Date sent  . . . . . . :   05/13/02      Time sent  . . . . . . : 14:43:01


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 LSAMPLE.TPFACL.  The relative position
of
  the host variable in the INTO clause or parameter list is 33. If the
host
  variable name is *N, an SQLDA was specified.
Recovery  . . . :   Specify an indicator variable, and precompile the
program
  again.

when there is no match in TPFACL file for TPNBR.  I am guessing my
alternatives are to use null indicator variables, or have defaulting
values.  I am open for suggestions.

Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin


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.