The solution given is identical to your second sample that you said works. But if it works, why a problem, just keep using it.
Your first sample is wrong because Field1 will never equal all three values at the same time therefore two of the three checks will always be true
Search found 581 matches
- Wed Jul 25, 2012 4:40 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Not In clause in Filter stage...
- Replies: 8
- Views: 15160
- Tue Jul 24, 2012 4:27 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Loading Decimal field data from fixed width Flat Files
- Replies: 8
- Views: 11017
- Tue Jul 24, 2012 1:00 am
- Forum: General
- Topic: Job is not in the right state (compiled and not running)
- Replies: 60
- Views: 23581
- Mon Jul 23, 2012 4:29 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Scenerio with datastage limitations
- Replies: 9
- Views: 9024
- Thu Jul 19, 2012 11:53 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: APT_ORACLE_PRESERVE_BLANKS
- Replies: 12
- Views: 6968
- Wed Jul 18, 2012 9:57 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how i can achieve this result in datastage 7.5 px
- Replies: 11
- Views: 4926
- Wed Jul 18, 2012 4:46 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how i can achieve this result in datastage 7.5 px
- Replies: 11
- Views: 4926
I'm intrigued... how?nani1974 wrote:I think you can do this by using Column_Export stage.
As for requirement, create a date range out of your lookup.
Or depending on data sizes and db abilities, do a sparse lookup getting rows with date <= current date (as per row) order by date desc and limit to 1
- Wed Jul 18, 2012 4:37 pm
- Forum: General
- Topic: Datastage import using command line
- Replies: 9
- Views: 6517
- Wed Jul 18, 2012 4:31 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: ETL logic using server jobs
- Replies: 4
- Views: 3743
- Wed Jul 18, 2012 4:29 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: date format
- Replies: 1
- Views: 1037
- Mon Jul 16, 2012 4:50 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Index Position of Last Occurrence of String
- Replies: 13
- Views: 10616
I actually meant count rather than dcount (had dcount on my mind due to other thoughts). As for efficiency, I see minimal difference unless the odds on having 2 or more @ symbols in the string is high, since you are always searching for 2 in your index query, it is likely to scan the full string whe...
- Mon Jul 16, 2012 4:41 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Table definitions at runtime
- Replies: 5
- Views: 2494
- Mon Jul 16, 2012 4:37 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: datastage
- Replies: 4
- Views: 2139
- Mon Jul 16, 2012 4:26 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Unable to read a Seq File
- Replies: 4
- Views: 2936
- Sun Jul 15, 2012 4:46 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Index Position of Last Occurrence of String
- Replies: 13
- Views: 10616