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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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