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 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 Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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