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
 

 

How to find NULL values( if any ) in the file

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

New User


Joined: 06 May 2008
Posts: 33
Location: Chennai

PostPosted: Tue Apr 21, 2009 10:38 pm    Post subject: How to find NULL values( if any ) in the file
Reply with quote

Hi,

I have table named as Phone table.
Which has 2 fields Phone number and location code.
There are null values being inserted in these fields. Sometime for either field and sometimes for both fields.

There is file which I think is source of BAD data ( null values),this file is used to update table. But I cannot find any NULL values in the file.
In fact I am not sure how NULL values will appear in the file. How to find NULL ( if any ) in the file.
Possible values in file could be:
1) Spaces
2) Some special character
Zeros is not possible in file as they are removed before a insert in the table.

Any ideas..what should I give for " Find command "
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: Tue Apr 21, 2009 11:09 pm    Post subject:
Reply with quote

Hello,

There is no such thing as a "null value". Every value from x'00' to x'FF' is a "real" value. Null is the absense of a value and can only be recognized by some indicator.

Look at the file using HEX ON. You should quickly be able to see questionable values in the data.

You might also use the FIND P'.' command.
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 BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 1 Tue Jul 25, 2017 12:12 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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