![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Express-C 9.7.2 LUW. *I need to generate CSV text files containing dates in a specific format. *I know there is (or used to be as it's in my existing scripts) a way to force something besides the yyyymmdd default (I need yyyy/mm/dd) but the docs show only a modifiedby spec for timestampformat for the EXPORT command. The docs do show modifier specs for dateformat and timeformat for the IMPORT command as well but only the timestampformat for EXPORT. What simple thing am I missing here (maybe codepage) to get this done? |
#3
| |||
| |||
|
|
Express-C 9.7.2 LUW. *I need to generate CSV text files containing dates in a specific format. *I know there is (or used to be as it's in my existing scripts) a way to force something besides the yyyymmdd default (I need yyyy/mm/dd) but the docs show only a modifiedby spec for timestampformat for the EXPORT command. The docs do show modifier specs for dateformat and timeformat for the IMPORT command as well but only the timestampformat for EXPORT. What simple thing am I missing here (maybe codepage) to get this done? -- Will Honea |
#4
| |||
| |||
|
|
Express-C 9.7.2 LUW. I need to generate CSV text files containing dates in a specific format. I know there is (or used to be as it's in my existing scripts) a way to force something besides the yyyymmdd default (I need yyyy/mm/dd) but the docs show only a modifiedby spec for timestampformat for the EXPORT command. The docs do show modifier specs for dateformat and timeformat for the IMPORT command as well but only the timestampformat for EXPORT. What simple thing am I missing here (maybe codepage) to get this done? -- Will Honea |
#5
| |||
| |||
|
|
Express-C 9.7.2 LUW. *I need to generate CSV text files containing dates in a specific format. *I know there is (or used to be as it's in my existing scripts) a way to force something besides the yyyymmdd default (I need yyyy/mm/dd) but the docs show only a modifiedby spec for timestampformat for the EXPORT command. The docs do show modifier specs for dateformat and timeformat for the IMPORT command as well but only the timestampformat for EXPORT. What simple thing am I missing here (maybe codepage) to get this done? -- Will Honea |
#6
| |||
| |||
|
|
On Oct 7, 11:29 pm, Will Honea <who... (AT) yahoo (DOT) com> wrote: Express-C 9.7.2 LUW. I need to generate CSV text files containing dates in a specific format. I know there is (or used to be as it's in my existing scripts) a way to force something besides the yyyymmdd default (I need yyyy/mm/dd) but the docs show only a modifiedby spec for timestampformat for the EXPORT command. The docs do show modifier specs for dateformat and timeformat for the IMPORT command as well but only the timestampformat for EXPORT. What simple thing am I missing here (maybe codepage) to get this done? You'll have to use TO_CHAR to reformat your date in the select statement, not via an EXPORT option: select TO_CHAR(CURRENT_DATE, 'YYYY/MM/DD') from sysibm.sysdummy1 1 ----------------... 2010/10/07 ... |
![]() |
| Thread Tools | |
| Display Modes | |
| |