+ Reply to Thread
Results 1 to 8 of 8

Thread: /Free V5R1M0 -- How to validate field is numeric?

  1. #1
    Guest.Visitor Guest

    Default /Free V5R1M0 -- How to validate field is numeric?

    I have found that the easiest way seems to be to use the %Check BIF. I have included an example below. Hope this helps. Alan
    Code

  2. Default /Free V5R1M0 -- How to validate field is numeric?

    Thanks. And that should work with 5.1? I'll be glad when or if we upgrade to 5.2 looks like alot more functions are avalible to use. Thanks again.

  3. #3

    Default /Free V5R1M0 -- How to validate field is numeric?

    If you are uncomfortable using the %check BIF, you can use the CHECK opcode. It works the same way going back to V3R2! Dave

  4. Default /Free V5R1M0 -- How to validate field is numeric?

    Thanks it works like a charm. Question though. . where can I go to research all the bif commands? Would be alot easier on me if I had the list. Thanks!! =)

  5. #5
    Guest.Visitor Guest

    Default /Free V5R1M0 -- How to validate field is numeric?

    You can find a list of BIF's on the IBM web site: http://publib.boulder.ibm.com/iserie...s/c0925083.pdf

  6. #6
    Guest.Visitor Guest

    Default /Free V5R1M0 -- How to validate field is numeric?

    Is this means that testn operation code not supported in /free format. I have also same problem where users need to enter numeric broker# 6,0 to a 10 char alpha field. Theres no validation so there's an enormous amount of errors, I have to capture only the numbers and convert to numeric using %int. I want to create an array and test each char if its number. I used %check and it seems not working because it pass back the position of the field. Is there other way. TIA Tiki

  7. Default /Free V5R1M0 -- How to validate field is numeric?

    I have an incoming field that is alpha. Most cases the info is numeric data. However some instances the field could be 3345AA23. In these cases I have to renumber the account as the system I am converting to is numeric only. So my question, how do I handle this in /Free? I know in the regular RPG side I can do a TESTN over the field and handle it from there. But how do I do this in /Free? Thanks!

  8. #8

    Default /Free V5R1M0 -- How to validate field is numeric?

    I have a utility written by Ted Holt that will take, up to a 30 character alpha field and strip out any numerics returning a numeric field. if this would be of use to you you can email me at bbbarnes@thepantry.com.

+ Reply to Thread

Similar Threads

  1. Moving a date defined field to a numeric field using free format
    By buck.calabro@commsoft.net in forum General
    Replies: 2
    Last Post: 05-25-2004, 02:00 AM
  2. Validate ISO date in /Free?
    By Guest.Visitor in forum RPG
    Replies: 3
    Last Post: 11-04-2003, 07:34 AM
  3. Validate a field with a word dictionary
    By lls_51@yahoo.com in forum General
    Replies: 1
    Last Post: 08-29-2003, 09:45 AM
  4. Validate a field in eRPG/CGI programming
    By vrozen1 in forum Programming
    Replies: 1
    Last Post: 11-02-2001, 06:00 AM
  5. Moving numeric field to date data type field.
    By Guest.Visitor in forum Application Software
    Replies: 19
    Last Post: 08-20-2000, 04:21 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