View previous topic :: View next topic
|
Author |
Message |
pecram24
New User
Joined: 12 Oct 2009 Posts: 35 Location: Chennai
|
|
|
|
Hi,
Is there any way to check whether a variable is Numeric or not n easytrieve
Thanks in advance |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Not really a Cobol question. There is a forum for CA products. Look there later after one of the kind moderators moves it for you.
The answer is yes. NUMERIC. Check it in you manual. |
|
Back to top |
|
|
pecram24
New User
Joined: 12 Oct 2009 Posts: 35 Location: Chennai
|
|
|
|
Hi Bill ,
thanks for the reply.. i couldn't find anything like that.. if you have any reference for that can u plz share it here... |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
I'm sure this is defined somewhere in the Easytrieve documentation.
Ask the keeper of your Product documents for access.
Mr. Bill |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Mr Bill is right. It certainly is in the documentation.
Code: |
IF fieldname NUMERIC
do some processing
END-IF |
Try it. Then find it in your manual.
If you still have difficulty, try to find it in the manual again*.
*Look for Field Class Condition
EDIT: There is a hint in this post on where to look in the manual, if you experiment with the presentation of topics here... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
From the manual:
Code: |
JOB INPUT PERSNL NAME MYPROG FINISH FINISH-PROC
IF PAY-GROSS NOT NUMERIC
DISPLAY EMP# ' PERSONNEL RECORD IS DAMAGED'
GOTO JOB
ELSE-IF PAY-GROSS > 500.00
XMAS-BONUS = PAY-GROSS * 1.03
ELSE
XMAS-BONUS = PAY-GROSS * 1.05
END-IF |
If your organization is licensed to use the product, all of the material may be downloaded free from CA Support. |
|
Back to top |
|
|
|