home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / oracle / 2186 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.1 KB

  1. 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
  2. From: kurz.1@ipa.fhg.de (Hermann Kurz)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Problem with ORACLE, E-SQL in COBOL
  5. Date: 12 Nov 1992 15:49:45 GMT
  6. Organization: IPA Stuttgart
  7. Lines: 42
  8. Distribution: world
  9. Message-ID: <kurz.1.27.0@ipa.fhg.de>
  10. NNTP-Posting-Host: leila1.ipa.fhg.de
  11.  
  12. Hello,
  13.  
  14. the following message is forwarded from a person without netaccess.
  15.  
  16. -------------
  17. COBOL program follows
  18. -
  19. DECLARE SECTION
  20.     .
  21.     .
  22.    HOST_VAR1 PIC X(40)
  23.     .
  24. END DECLARE.
  25.  
  26. PROCEDURE DIVISION.
  27.     .
  28.     .
  29.    MOVE SPACES TO HOST_VAR1.
  30.     .
  31.     SQL
  32.     SELECT REC
  33.         WHERE
  34.         .
  35.         .
  36.         VAR1 >= : HOST_VAR1
  37.         .
  38.         .
  39.  
  40. ----
  41. the problem:
  42.  
  43. A host variable defined as CHAR and signed with "SPACE" will be set to 
  44. "NULL" while the SQL-statement is executed, so the comparision 
  45. VAR1 >= : HOST_VAR1 will *never* match.
  46.  
  47. This failure occurs only in E-SQL with HOST variable = SPACE.
  48.  
  49. Is there any solution known without the need to change the sourcecode ??
  50.  
  51. any help/solutions/pointers appreciated.
  52. ----
  53. ern
  54.