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 SAS Work space - B37 abend santuece1 JCL & VSAM 11 Tue Jun 19, 2018 1:03 am
No new posts JCL to set Return code when Time Out ... vinu78 JCL & VSAM 6 Wed May 30, 2018 11:27 am
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts VSAM File free space sancraig16 JCL & VSAM 14 Fri Mar 30, 2018 1:02 am
No new posts VSAM BUFFER SPACE? John Poulakos CICS 17 Thu Mar 22, 2018 2:54 am

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