Search found 38 matches
- Wed Jul 12, 2006 7:51 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Concatenating Timestamp With a Sequential file
- Replies: 33
- Views: 11215
- Wed Jul 12, 2006 7:30 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Concatenating Timestamp With a Sequential file
- Replies: 33
- Views: 11215
Concatenating Timestamp With a Sequential file
HI! All I have a job which is loading data in to a sequential file ,This jobs runs 5 times a day. I want to generate a file with filename concatenated with timestamp every time the job finishes. Therefore I need to generate five files a day for example: "OrderInvoice 23/06/2006 00:00:00 AM"...
- Tue May 23, 2006 7:55 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Subract the date with 365 days
- Replies: 7
- Views: 1824
- Tue May 23, 2006 6:28 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Subract the date with 365 days
- Replies: 7
- Views: 1824
- Tue May 23, 2006 2:36 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Subract the date with 365 days
- Replies: 7
- Views: 1824
Both te formats are in YYYY-MM-DD HI24:MI:SS ,iam not passing Sysdate as a parameter ,instead iam using SELECT TO_CHAR(UDT_DATE, 'YYYY-MM-DD HH24:MI:SS'), TO_CHAR(DATETIME_ADDED, 'YYYY-MM-DD HH24:MI:SS'), to_char(SYSDATE, 'YYYY-MM-DD HH24:MI:SS') AS LAST_UDT FROM edw_product_d and pulling the sysdat...
- Tue May 23, 2006 1:18 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Subract the date with 365 days
- Replies: 7
- Views: 1824
Subract the date with 365 days
HI! All I have a date column UDT_DATE ,iam using this date to calculate the flag My condition If UDT_DATE>=(last 12 months ) Then 'Y' ELse 'N' .So i used this way If UDT_DATE>= Sysdate-365 Then 'Y' ELse 'N' .I bring the Sysdate form the source level .The problem when i tried to subract the sysdate w...
- Thu May 11, 2006 11:50 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Difference
- Replies: 2
- Views: 847
Hi!
If you want to do this in query level you can use this
SELECT to_char(TO_CHAR(DATETIME_ADDED,'YYYY')-TO_CHAR(UDT_DATE,'YYYY'))||'/'||
to_char(TO_CHAR(DATETIME_ADDED,'MM')-TO_CHAR(UDT_DATE,'MM'))
||'/'||to_char(TO_CHAR(DATETIME_ADDED,'DD')-TO_CHAR(UDT_DATE,'DD')) AS DATEDIFF FROM EDW_PRODUCT_D
SELECT to_char(TO_CHAR(DATETIME_ADDED,'YYYY')-TO_CHAR(UDT_DATE,'YYYY'))||'/'||
to_char(TO_CHAR(DATETIME_ADDED,'MM')-TO_CHAR(UDT_DATE,'MM'))
||'/'||to_char(TO_CHAR(DATETIME_ADDED,'DD')-TO_CHAR(UDT_DATE,'DD')) AS DATEDIFF FROM EDW_PRODUCT_D
- Thu May 11, 2006 10:37 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DATE FORMAT
- Replies: 10
- Views: 2279
HI!
You can use TO_CHAR(COLUMN NAME,'YYYYMMDD') in the source query