Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IS NUMERIC function in Easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Fri Oct 07, 2011 6:39 pm    Post subject: IS NUMERIC function in Easytrieve
Reply with quote

Hi,


Is there any way to check whether a variable is Numeric or not n easytrieve

Thanks in advance
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7307

PostPosted: Fri Oct 07, 2011 6:45 pm    Post subject: Reply to: IS NUMERIC function in Easytrieve
Reply with quote

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
View user's profile Send private message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Fri Oct 07, 2011 6:47 pm    Post subject: Reply to: IS NUMERIC function in Easytrieve
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 07, 2011 6:47 pm    Post subject: Reply to: IS NUMERIC function in Easytrieve
Reply with quote

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
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7307

PostPosted: Fri Oct 07, 2011 6:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Oct 07, 2011 7:39 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us