Hi,
Can anyone help me to resolve this?
I'm receiving the timestamp value. It is in format of 24hrs. I need to convert to 12 hrs format.
Eg:Input: 2005-01-01 00:00:00.000000
Output:2005-01-01 12:00:00 AM
Thanks,
Search found 75 matches
- Fri Feb 04, 2011 4:49 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Timestamp format- 24 hrs to 12 hrs
- Replies: 5
- Views: 6555
- Thu Jan 27, 2011 11:01 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: add leading space and leading zeros
- Replies: 2
- Views: 6616
- Thu Jan 27, 2011 5:56 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: add leading space and leading zeros
- Replies: 2
- Views: 6616
add leading space and leading zeros
Hi, I want all my output fields should be Right aligned. Eg 1: If my input field: Col1, data type: Char(4), field value:+1 My output should be: +1 (2 leading spaces then field value) Eg 2: If my input field: Col2, data type: integer(4), field value:10 My output should be:0010 (2 leading zeros then f...
- Mon Jan 24, 2011 9:19 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Populate space to the output column
- Replies: 16
- Views: 6621
Then you missed something. Tell us exactly what you did to correct this - how you made sure the output field was null at the right time and what exact properties you set for that field. Before funneling, in both the inputs for the particular column 1. Set the field as nullable 2. In Extended proert...
- Mon Jan 24, 2011 8:40 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Populate space to the output column
- Replies: 16
- Views: 6621
Re: POPULATE SPACE TO THE OUTPUT COLUMN
Hi Craig,chulett wrote:Actually, everything in a file is a string so it can. Set it to NULL and then edit the column so the 'null value' property is the appropriate number of spaces.ajithaselvan wrote:It can be nullable. But it can not be representated as string.
It didn't work. populating zero.
Regards,
- Mon Jan 24, 2011 8:21 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Populate space to the output column
- Replies: 16
- Views: 6621
Re: POPULATE SPACE TO THE OUTPUT COLUMN
I need to populate space to the output column.The data type for the column is float(2,5). Kindly help me to resolve. The answer is simple - it cannot be done. Get a new requirement... for example, is the field nullable? Can it be represented as a string? It can be nullable. But it can not be repres...
- Mon Jan 24, 2011 8:19 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Populate space to the output column
- Replies: 16
- Views: 6621
Ajitha S - please don't post in all capital letters, it is considered SHOUTING. I corrected your post Subject for you, so more of just an FYI. Thanks. Sure craig. This will not be repeated. Regarding my query, I'm funneling 2 inputs of same columns. column(col3) from input 1 throwing a value. colum...
- Mon Jan 24, 2011 6:40 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Populate space to the output column
- Replies: 16
- Views: 6621
- Mon Jan 24, 2011 5:07 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Populate space to the output column
- Replies: 16
- Views: 6621
Populate space to the output column
Hi,
I need to populate space to the output column.The data type for the column is float(2,5). Kindly help me to resolve.
Thanks,
I need to populate space to the output column.The data type for the column is float(2,5). Kindly help me to resolve.
Thanks,
- Thu Jan 06, 2011 8:23 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: MULTIPLE ROWS TO SINGLE ROW
- Replies: 5
- Views: 2895
- Thu Jan 06, 2011 8:22 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: MULTIPLE ROWS TO SINGLE ROW
- Replies: 5
- Views: 2895
Re: MULTIPLE ROWS TO SINGLE ROW
In the output, REC_TYPE 'T' is the hardcoded value. Yes.2 input rows has to be merged into single row.
Thanks & Regards
Thanks & Regards
- Thu Jan 06, 2011 6:53 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: MONTH & YEAR FROM DATE
- Replies: 10
- Views: 5667
- Thu Jan 06, 2011 6:45 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: MULTIPLE ROWS TO SINGLE ROW
- Replies: 5
- Views: 2895
MULTIPLE ROWS TO SINGLE ROW
Hi,
Kindly help me to solve this in parallel job.
Input:
REC_TYPE,REC_COUNT, REC_SUM
C,3,1000
D,5,1500
Output:
REC_TYPE,C_REC_COUNT,C_REC_SUM,D_REC_COUNT,D_REC_SUM
T, 3, 1000, 5,1500
Thanks & Regards
Kindly help me to solve this in parallel job.
Input:
REC_TYPE,REC_COUNT, REC_SUM
C,3,1000
D,5,1500
Output:
REC_TYPE,C_REC_COUNT,C_REC_SUM,D_REC_COUNT,D_REC_SUM
T, 3, 1000, 5,1500
Thanks & Regards
- Thu Jan 06, 2011 4:59 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: MONTH & YEAR FROM DATE
- Replies: 10
- Views: 5667
- Thu Jan 06, 2011 4:35 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: MONTH & YEAR FROM DATE
- Replies: 10
- Views: 5667
MONTH & YEAR FROM DATE
Hi,
Pls let me know what is function to be used to get
only month & year from date. Format is below
Input: YYYY-MM-DD
Output: MM-YY
Thanks & Regards,
Pls let me know what is function to be used to get
only month & year from date. Format is below
Input: YYYY-MM-DD
Output: MM-YY
Thanks & Regards,