LOW VALUES INTO DB2 TABLE

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
neo_charan7
Member
Posts: 22
Joined: Wed Apr 15, 2009 11:51 pm
Location: london

LOW VALUES INTO DB2 TABLE

Post by neo_charan7 » Mon Apr 27, 2009 7:42 pm

How to insert low values into DB2 table.
I need to insert the low value into DB2 table X'000000000000'.

I have a table EMP with fields as EMP,NAME

I need to insert above value into NAME field.

what is the insert statement in the above case?

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Apr 27, 2009 7:47 pm

why do you want to populate a CHAR column with low-values?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

neo_charan7
Member
Posts: 22
Joined: Wed Apr 15, 2009 11:51 pm
Location: london

Post by neo_charan7 » Mon Apr 27, 2009 7:51 pm

to do a temopary fix for a production issue

neo_charan7
Member
Posts: 22
Joined: Wed Apr 15, 2009 11:51 pm
Location: london

Post by neo_charan7 » Mon Apr 27, 2009 8:05 pm

Got the solution.

we can edit any row in table and enter the hexadecimal value as x'0000000000' and save the changes.

low values will be available once changes are saved.

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Apr 27, 2009 8:25 pm

your solution is UPDATE.
why was INSERT your question?
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others