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
 
Difference between Null and Space

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Difference between Null and Space
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: 6970
Location: porcelain throne

PostPosted: Sat Jan 09, 2010 10:11 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Change NULL indicator in UNLOAD utility Khadhar Basha DB2 1 Fri Dec 15, 2017 3:01 pm
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm
No new posts The TS7720 is out of cache space. Rex Montemayor All Other Mainframe Topics 2 Mon Sep 25, 2017 7:18 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm

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