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

Retrieve data from nullable column


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

New User


Joined: 07 Jul 2005
Posts: 10

PostPosted: Wed May 10, 2006 2:22 pm
Reply with quote

Hello Friends,


Pls let me know the answer for these questions.


1) How to retrieve data from a nullable column?. Give me the syntax?.

2) How can you manually commit or rollback data in DB2?.


Regards,
S.M.Rajaeswari.
Back to top
View user's profile Send private message
simimathew

New User


Joined: 26 Jan 2006
Posts: 23
Location: London

PostPosted: Wed May 10, 2006 3:27 pm
Reply with quote

Data retrieval from nullable column has already been discussed. Please see www.ibmmainframes.com/viewtopic.php?t=10469&highlight=null+column
Back to top
View user's profile Send private message
hanu_010

New User


Joined: 25 Jan 2007
Posts: 9
Location: hyd

PostPosted: Fri Mar 02, 2007 12:27 pm
Reply with quote

SELECT CNO FROM TABLE1 WHERE CNO IS NULL
Back to top
View user's profile Send private message
hanu_010

New User


Joined: 25 Jan 2007
Posts: 9
Location: hyd

PostPosted: Fri Mar 02, 2007 12:30 pm
Reply with quote

IF SQL CODE = '00'

EXEC SQL
COMMIT
END-EXEC


EXEC SQL
ROLLBACK

END-EXEC
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts How to load to DB2 with column level ... DB2 6
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top