+ Reply to Thread
Results 1 to 3 of 3

Thread: SCAN for Numeric

  1. #1
    Guest.Visitor Guest

    Default SCAN for Numeric

    Use the opcode "CHECK" Chris
    Code

  2. Default SCAN for Numeric

    Can you scan a numeric field for characters. I have just used a move from a character field to numeric field and I need to verify that the character field or numeric field only contains 0-9. thanks

  3. #3

    Default SCAN for Numeric

    Use the testn opcode. Indicator LO = character field only contains numerics, LO = character field contains leading blanks and numerics only, EQ = character field only contains blanks. If the indicators are not on then there is non-numeric data. This is really useful when you have negative data with in a character field (i.e., value '775N' is actually is -7755). Just scanning for numeric numbers is not going to cover you in this case. Matt

+ Reply to Thread

Similar Threads

  1. %scan %trim %replace
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 04-23-2001, 10:08 AM
  2. Scan for a single quote
    By Guest.Visitor in forum Programming
    Replies: 10
    Last Post: 02-27-2001, 05:49 AM
  3. Case sensitivity on SCAN op
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 12-12-2000, 09:01 AM
  4. Convert numeric to numeric date fields
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 01-15-1999, 09:57 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