This issue is resolved and I used the calculation of
((Monthnumber-1)/3)+1 to find the quarter and assigned to an integer variable.
Thanks Craig. Thanks Ray.
Search found 100 matches
- Wed Feb 17, 2010 3:58 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Find a quarter from a date
- Replies: 7
- Views: 4353
- Tue Feb 16, 2010 11:29 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Find a quarter from a date
- Replies: 7
- Views: 4353
- Tue Feb 16, 2010 11:23 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Find a quarter from a date
- Replies: 7
- Views: 4353
- Tue Feb 16, 2010 11:04 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Find a quarter from a date
- Replies: 7
- Views: 4353
- Tue Feb 16, 2010 10:10 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Find a quarter from a date
- Replies: 7
- Views: 4353
Find a quarter from a date
Hi,
I need to find the quarter from the input date '2010-02-01' . The output should be 1 ( which implies the input date falls in 1st quarter)
In server editon, we have Built in-date transform routine like 'QUARTER.TAG . I am unable to find one in PX.
Please let me know.
I need to find the quarter from the input date '2010-02-01' . The output should be 1 ( which implies the input date falls in 1st quarter)
In server editon, we have Built in-date transform routine like 'QUARTER.TAG . I am unable to find one in PX.
Please let me know.
- Tue Feb 10, 2009 1:21 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Concatenate 3 files and generate sequence number
- Replies: 14
- Views: 8741
The problem is resolved. I did like this, Before -job subroutine -------------------------- cat #sct_eswm_mig.$PROJECT_PATH#/#sct_eswm_mig.$OUTPUT_DIR#/#OUTPUT_FILE# > #sct_eswm_mig.$PROJECT_PATH#/#sct_eswm_mig.$STAGE_DIR#/#GLCOMP_FILE#.tmp after job subroutine ------------------------ mv #sct_eswm_...
- Thu Feb 05, 2009 4:38 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Concatenate 3 files and generate sequence number
- Replies: 14
- Views: 8741
Thank you all, for your responses. I can understand chulett and Ray's solution. Let me explain the scenario. For eg- If a Job X is creating 3 different files FILE1,FILE2,FILE3 then in the job properties of Job X, in after sub routine - EXECSH- I can use the command of cat FILE1 FILE2 FILE3 > FILE4 B...
- Thu Feb 05, 2009 12:49 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Concatenate 3 files and generate sequence number
- Replies: 14
- Views: 8741
- Wed Feb 04, 2009 9:33 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Concatenate 3 files and generate sequence number
- Replies: 14
- Views: 8741
Concatenate 3 files and generate sequence number
I have generated 3 output sequential files from 3 different input files. All the output files has column headings and values separated by '|' Symbol OUTPUT FILE1 NAME- FN23_1a.dat ====================== GLORDDER|COMPVALUE|COMPTEXT|ORGID|SID 1|1111|ANZ|X601|1 1|1112|ANE|X601|2 1|1113|ANB|X601|3 1|111...
- Thu Jan 29, 2009 6:01 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Current date to Sequential file name
- Replies: 2
- Views: 2992
As mentioned by you, this problem got resolved when gave the command in Job Properties-Input value mv #sct_eswm_mig.$PROJECT_PATH#/#sct_eswm_mig.$OUTPUT_DIR#/#OUTPUT_FILE#_#BATCH_NUM#.dat #sct_eswm_mig.$PROJECT_PATH#/#sct_eswm_mig.$OUTPUT_DIR#/#OUTPUT_FILE#_#BATCH_NUM#_`date +%Y%m%d`.dat for the aft...
- Thu Jan 29, 2009 5:06 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Current date to Sequential file name
- Replies: 2
- Views: 2992
Current date to Sequential file name
I need to generate a file with filename of MAXIMO_GLACCOUNT_23_20090130.dat where MAXIMO_GLACCOUNT is a constant. 23- batch number 20090130-current system date when the file is generated( If I am generating the file tommorrow, it should be like MAXIMO_GLACCOUNT_23_20090131.dat .dat - constant I have...
- Wed Jan 14, 2009 5:05 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: System Date format - 2009-01-06-12.00.00.000000
- Replies: 3
- Views: 2303
- Wed Jan 14, 2009 12:18 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: System Date format - 2009-01-06-12.00.00.000000
- Replies: 3
- Views: 2303
System Date format - 2009-01-06-12.00.00.000000
I am having a column by name 'changedate' where the current system date has to be populated in the format of 2009-01-14-12.00.00.000000 Where today's date is 14-01-2009 and 12.00.00.000000 should be appended to the system date. When I assign @DATE = changedate in transformer stage and generate a seq...
- Tue Jan 13, 2009 10:16 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Jobs running after resetting being done
- Replies: 5
- Views: 2865
- Tue Jan 13, 2009 9:40 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Jobs running after resetting being done
- Replies: 5
- Views: 2865