Search found 4 matches

by Shamshir Rai Luthra
Tue Feb 09, 2016 11:47 am
Forum: IBM DB2 and IMS DB/DC
Topic: Update only the year in DATE in DB2.
Replies: 4
Views: 726

Re: Update only the year in DATE in DB2.

Hi,

I have tried with this:

Code: Select all

UPDATE table
SET YEAR(DATE) = 2017 
WHERE 
YEAR(DATE) = 2016;
But it did not work.
by Shamshir Rai Luthra
Tue Feb 09, 2016 11:46 am
Forum: IBM DB2 and IMS DB/DC
Topic: Unload a table with specific column delimiters and redabale format.
Replies: 3
Views: 576

Re: Unload a table with specific column delimiters and redabale format.

Thanks nicc. But unload was not readable too. Can you please suggest a usual way of doing it?

Would appreciate any help you can provide.
by Shamshir Rai Luthra
Mon Jan 18, 2016 12:04 pm
Forum: IBM DB2 and IMS DB/DC
Topic: Update only the year in DATE in DB2.
Replies: 4
Views: 726

Update only the year in DATE in DB2.

Hi,

Using a DB2 query I need to update only the year of a date. The date is defined in DATE format. Can we do this? I could not find a way of doing this?
Can anyone help please?
by Shamshir Rai Luthra
Mon Jan 18, 2016 11:56 am
Forum: IBM DB2 and IMS DB/DC
Topic: Unload a table with specific column delimiters and redabale format.
Replies: 3
Views: 576

Unload a table with specific column delimiters and redabale format.

Hi I need to unload a DB2 table. And in the unload I want the columns to be delimited by semicolon, ";". Also all decimal values should be converted in to readable format. For this, I tried to use DSNUPROC like this: DELIMITED COLDEL ';' PUNCHDDN SYSPUNCH UNLDDN SYSREC00 EBCDIC But this di...

Go to advanced search