home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!newsgate.watson.ibm.com!news.ans.net!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!news.belwue.de!leila1.IPA.FhG.de!kurz.1
- From: kurz.1@ipa.fhg.de (Hermann Kurz)
- Newsgroups: comp.databases.oracle
- Subject: Problem with ORACLE, E-SQL in COBOL
- Date: 12 Nov 1992 15:49:45 GMT
- Organization: IPA Stuttgart
- Lines: 42
- Distribution: world
- Message-ID: <kurz.1.27.0@ipa.fhg.de>
- NNTP-Posting-Host: leila1.ipa.fhg.de
-
- Hello,
-
- the following message is forwarded from a person without netaccess.
-
- -------------
- COBOL program follows
- -
- DECLARE SECTION
- .
- .
- HOST_VAR1 PIC X(40)
- .
- END DECLARE.
-
- PROCEDURE DIVISION.
- .
- .
- MOVE SPACES TO HOST_VAR1.
- .
- SQL
- SELECT REC
- WHERE
- .
- .
- VAR1 >= : HOST_VAR1
- .
- .
-
- ----
- the problem:
-
- A host variable defined as CHAR and signed with "SPACE" will be set to
- "NULL" while the SQL-statement is executed, so the comparision
- VAR1 >= : HOST_VAR1 will *never* match.
-
- This failure occurs only in E-SQL with HOST variable = SPACE.
-
- Is there any solution known without the need to change the sourcecode ??
-
- any help/solutions/pointers appreciated.
- ----
- ern
-