+ Reply to Thread
Results 1 to 4 of 4

Thread: Convert lower case to Upper case(COBOL/400)

  1. #1
    Guest.Visitor Guest

    Default Convert lower case to Upper case(COBOL/400)

    Thanks for taking time here. I'm working on COBOL program. In the program, I'm comparing 2 fields. One has Upper case characters. Another field has lower case characters. FIELDA = APPLE FIELDB = apple I'd like to treat them as the same value.(FIELDA = FIELDB) Is there any reserved word of COBOL to convert lower case to upper case? Is there any way to convert them other than using array? Any advice will be appreciated. Again, thanks for taking your time and considerations.

  2. #2
    Guest.Visitor Guest

    Default Convert lower case to Upper case(COBOL/400)

    I don't know much about Cobol, but I do know that there is an API that will do it. You might want to take a look at the Convert Case API (QLGCNVCS). It converts an input string to either upper or lower case. Mark

  3. #3
    Guest.Visitor Guest

    Default Convert lower case to Upper case(COBOL/400)

    May be you would like to try the following : INSPECT CONVERTING 'abcdefghijklmnopqrstuvwxyz' TO 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' where is the name of the field containing the string to be converted. HTH Best Regards Bernd

  4. #4
    M.Martinez Guest

    Default Convert lower case to Upper case(COBOL/400)

    If you have ILE Cobol compiler, you can use the UPPER-CASE or LOWER-CASE functions. Attached is some code that will demonstrate how this works. It's pretty straight forward. The code works on V4R4, but I don't know what OS/400 version is required to run it. HTH

+ Reply to Thread

Similar Threads

  1. Lower case - Upper case problem
    By Guest.Visitor in forum RPG
    Replies: 1
    Last Post: 02-23-2004, 04:47 AM
  2. Native SQL forces upper case?
    By billhamaker@mfpoer.com in forum Programming
    Replies: 1
    Last Post: 10-15-2001, 02:26 PM
  3. ALTSEQ and upper/lower case
    By Guest.Visitor in forum Programming
    Replies: 6
    Last Post: 10-24-1999, 11:44 PM
  4. Converting lower to upper case
    By Guest.Visitor in forum Programming
    Replies: 12
    Last Post: 08-05-1998, 07:32 PM
  5. E-mail addresses upper vs lower case
    By frankgw@adelphia.net in forum Internet
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts