IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to check NULL condition in a query in SPUFI?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vikeau

New User


Joined: 07 Jul 2011
Posts: 2
Location: india

PostPosted: Fri May 25, 2012 3:36 pm
Reply with quote

I want to write a query where we can put NULL in WHERE clause in SPUFI but not sure of how to put it in SPUFI.

Please help to resolve the query.

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri May 25, 2012 3:39 pm
Reply with quote

why do you think SPUFI has a different SQL syntax than any other method of invoking SQL?

the only thing different from imbedded sql and 'dynamic sql' as you have in spufi,
is that you can not have host variables in spufi.
Back to top
View user's profile Send private message
Naish

New User


Joined: 07 Dec 2006
Posts: 82
Location: UK

PostPosted: Fri May 25, 2012 3:40 pm
Reply with quote

You mean this, right:
Code:
SELECT * FROM TABLE
WHERE <COL-A> IS NULL
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri May 25, 2012 6:52 pm
Reply with quote

Hello,

What happens when you execute it?

Much faster to try it than wait for us to reply. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts SCOPE PENDING option -check data DB2 2
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts RC query -Time column CA Products 3
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top