Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to do a numeric check using easytrieve?

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

New User


Joined: 06 Apr 2005
Posts: 31
Location: visakhapatnam

PostPosted: Thu May 20, 2010 10:41 am    Post subject: How to do a numeric check using easytrieve?
Reply with quote

I have a requirement as follows

If garbage data exists for some fields
a) move Zeroes in case of Numeric fields and
b) spaces for Non-Numeric fields

This needs to be done using Easytrieve only. Can any one help me in this regard?
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2446
Location: Netherlands, Amstelveen

PostPosted: Thu May 20, 2010 12:13 pm    Post subject:
Reply with quote

Its all in the reference manual :


IF fieldname [NOT] NUMERIC

NUMERIC tests for the digits 0 through 9 (in the correct format for the field's data type), and for a possible algebraic sign in the low-order position of type P fields or in the high-order position of type N fields.

IF fieldname [NOT] ALPHABETIC

ALPHABETIC tests for the characters A through Z or a blank space in each byte of the subject field.
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
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Easytrieve with SQL Jan Olav Pedersen CA Products 1 Tue Jan 23, 2018 7:29 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us