Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Congratulations for your great site. This site helped me more than university..."

Geography

Where in the world do Tek-Tips members come from?
Fooch (Programmer)
3 Aug 07 11:18
Does this exist? I need an easy way to check if the value that was passed in from a CL is a valid number. Because of they don't pass the number in as three chars(ie '060', '040', etc) RPG pulls the values as junk. There is no way for the CL to pass me a number and get it correctly in the RPG. So I want to be able to monitor for the developer sending the value in the right format.
flapeyre (Programmer)
3 Aug 07 12:06
I hate TESTN.

What I do is:

CODE

        If %CHECK('0123456789':Char_Field) = 0;
           // the character field is all numeric.
        Else;
           // there are non-numeric characters in the character field
        Endif;

Solum potestis prohibere ignes silvarum.

Fooch (Programmer)
3 Aug 07 12:13
thanks
arrow483 (MIS)
6 Aug 07 10:32
When I want to test for numeric I do
monitor
numfield = %decimal(charfield:8:0)
on-error
...  send msg or whatever
end-mon

it ignores blanks and aligns decimals automatically.

flapeyre (Programmer)
6 Aug 07 11:20
Arrow483,

Isn't that %dec, not %decimal?

Solum potestis prohibere ignes silvarum.

arrow483 (MIS)
6 Aug 07 13:00
of course, I am doing just a little too much SQL.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close