Thanks Craig.
Remember:
If you compare "10000 12345" against "2 12345" then you are doing a STRING compare. However, day 2 is January 2, 1968 and day 10000 is May 17th, 1995. So, you will not sort correctly, nor will you have a valid > or < comparison.
Search found 4992 matches
- Mon Nov 29, 2004 12:49 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Iconv and sort
- Replies: 9
- Views: 1847
- Mon Nov 29, 2004 12:44 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Counting Duplicates
- Replies: 14
- Views: 2785
- Mon Nov 29, 2004 12:42 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Load from Multiple Hash
- Replies: 5
- Views: 1219
HASHa --> XFMa --> HASHb --> XFMb --> LINKCOLLECTOR --> AGG --> SEQ HASHc --> XFMc --> Use your target file metadata in the XFM? stages. Map each hash file into that metadata, putting @NULL as the derivations for the columns that don't come from that hash file. In the AGGregator stage, group by the...
- Mon Nov 29, 2004 12:34 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Iconv and sort
- Replies: 9
- Views: 1847
No, no, no. You have been steered wrong and must not be watching the previous posts. ICONV will turn a date in to the integer number of days since Jan 1, 1968. It turns time into the number of seconds since midnight. Concatenating those two values together will NOT give you a number you can do equiv...
- Mon Nov 29, 2004 12:24 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Counting Duplicates
- Replies: 14
- Views: 2785
Yes, but is the data in a text file, a hash file, or a table? You state duplicate composite primary keys, which by definition can't be duplicated in a table. In a hash file, you would only have one occurrence, the last occurrence written to the hash file under that primary key. So, I'm guessing that...
- Mon Nov 29, 2004 12:19 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sort on a Timestamp Column
- Replies: 13
- Views: 5249
- Mon Nov 29, 2004 12:02 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Counting Duplicates
- Replies: 14
- Views: 2785
- Mon Nov 29, 2004 11:44 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sort on a Timestamp Column
- Replies: 13
- Views: 5249
It doesn't keep track of date and time components. Everything to DS Server is a STRING. The point is that the ISO format will allow you to STRING sorts in any situation. Experiment with it in a text file and use the sort command from Unix. You'll see that it works! The same thing applies in SQL and ...
- Mon Nov 29, 2004 11:26 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Updating in Server jobs
- Replies: 4
- Views: 1329
- Mon Nov 29, 2004 11:25 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sort on a Timestamp Column
- Replies: 13
- Views: 5249
Nahh, use ISO formatted timestamps and you have a natural lexicographic sort capability. YYYY-MM-DD HH24:MI:SS.xxxxxx will always do a left-justified sort and give you the correct answer. The fact that the entire world has failed to comprehend this elegance mystifies me. You can sort a timestamp fie...
- Mon Nov 29, 2004 11:22 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: count on hash file
- Replies: 7
- Views: 2306
Dynamic hash files are binary data structures, you cannot simply do text file commands against them. If you want to run SQL against a hash file, then search the forum for the ways to do that. If your hash file exists within a project (not fully qualified path), then use the DS Admin client and you c...
- Mon Nov 29, 2004 11:17 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Updating in Server jobs
- Replies: 4
- Views: 1329
- Mon Nov 29, 2004 10:28 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Sort on a Timestamp Column
- Replies: 13
- Views: 5249
If your data is presented to you thru a database, why not use the SQL ORDER BY clause? If your data is presented to you as a sequential file, why not pre-sort it using the unix sort command with a -k option to specify the sort key and redirect the results to a sorted file? You could always use the S...
- Mon Nov 29, 2004 9:59 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Load from Multiple Hash
- Replies: 5
- Views: 1219
Maybe I'm just dense this morning, but I'm still not following. If you have 5 hash files with a single column, then that column MUST be the primary key. If you're "trying to merge all these files into a single file", then you need to in effect concatenate and then unique the results. Now you talk ab...
- Mon Nov 29, 2004 9:15 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Load from Multiple Hash
- Replies: 5
- Views: 1219