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
 
Clause that can define a field as NOT ZERO

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Lord.of.Wind

New User


Joined: 17 Nov 2005
Posts: 60

PostPosted: Mon Nov 27, 2006 9:05 am    Post subject: Clause that can define a field as NOT ZERO
Reply with quote

Hi, all:

Is there a clause that can define a field NOT ZERO, if it is numeric ?

For example,
N_UPDATE_COUNTER SMALLINT NOT ZERO

If you know about this question, please kindly teach me, many thanks!
Back to top
View user's profile Send private message

khannay2k

New User


Joined: 24 Feb 2005
Posts: 28
Location: Bangalore

PostPosted: Mon Nov 27, 2006 2:38 pm    Post subject: Re: Clause that can define a field as NOT ZERO
Reply with quote

Lord.of.Wind,

Instead you can go for comparing the value in the field N_UPDATE_COUNTER SMALLINT with zeros, and if it yeilds it would satisfy your requirement.

A simple logic like N_UPDATE_COUNTER SMALLINT = Zeros.

Regrads.
Rajesh
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts define object with CCSID = 500 Pedro DB2 0 Thu Feb 01, 2018 4:51 am
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

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