+ Reply to Thread
Results 1 to 5 of 5

Thread: Case sensitivity on SCAN op

  1. #1
    Guest.Visitor Guest

    Default Case sensitivity on SCAN op

    Is there anyway of 'turning off' case sensitivity on the SCAN Op Code? Yours Hopefully Ken

  2. #2
    Guest.Visitor Guest

    Default Case sensitivity on SCAN op

    Ken, The typical way to handle something like that would be to just capitalize each string and then run the scan. Here is some RPG/400 code to capitalize a field:
     I 'ABCDEFGHIJKLMNOPQRS- C UP I 'TUVWXYZ' I 'abcdefghijklmnopqrs- C LO I 'tuvwxyz' I* C LO:UP XLATEFIELD FIELD 
    Bill

  3. #3
    Guest.Visitor Guest

    Default Case sensitivity on SCAN op

    Ken - If you want to retain the case in the original field, you would translate it into a new field, scan against the new field, and use the resulting position against the original field. Bill

  4. #4
    B.Myrick Guest

    Default Case sensitivity on SCAN op

    Ken, If the program does updates to that field/file, be sure to xlate a workfield after moving the file/field data to it. -bret

  5. #5

    Default Case sensitivity on SCAN op

    Instead of the SCAN opcode, you can use the QCLSCAN API which, depending on the parameters you pass, will convert the string to upper case. See: http://publib.boulder.ibm.com/cgi-bi.../QB3AMV03/1.26?

+ 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. SCAN for Numeric
    By Guest.Visitor in forum RPG
    Replies: 2
    Last Post: 10-28-2002, 02:50 PM
  3. %scan %trim %replace
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 04-23-2001, 10:08 AM
  4. Convert lower case to Upper case(COBOL/400)
    By Guest.Visitor in forum Application Software
    Replies: 3
    Last Post: 05-25-2000, 09:27 AM
  5. Scan tool?
    By Guest.Visitor in forum Analysis
    Replies: 3
    Last Post: 10-02-1998, 02:20 PM

Posting Permissions

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