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

Difference between Null and Space


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
l.nethaji

New User


Joined: 16 Mar 2008
Posts: 90
Location: tamil nadu

PostPosted: Sat Jan 09, 2010 9:40 am
Reply with quote

Hi,

Could any one explain between Null, Space and Blank

How it is stored in cobol and DB2.

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

Global Moderator


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

PostPosted: Sat Jan 09, 2010 10:11 am
Reply with quote

you really refuse to read any manuals.

cobol does not store anything, it is a programming language, not a storage medium.

NULL is a db2 concept- only belongs to db2 - means there is no value for a column. the row contains an additional column - a null indicator.
additional information can be found in the DB2 UDB for z/OS V8 Application Programming and SQL Guide.

space and blank refer to the same thing. ebcdic value x'40'; ascii value x'20'. has nothing to do with cobol or db2 - it is the internal representation of a character - ebcdic for IBM mainframes, ascii for PCs.
additional information can be found in the enterprise cobol programmers guide as well as this link to different tables defining the ebcdic, ascii, or unicode representation of characters; included are all binary values.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
Search our Forums:

Back to Top