How about that:
1. Create flat file of 96 rows with time slot values.
2. Load your file (the file with missing time slots) to hash file.
3. Lookup row in hash file.
Match found: move values from hash.
Match not found: move defaults (zeroes).
Search found 97 matches
- Wed Oct 06, 2004 12:06 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Inserting Blank Rows into a file
- Replies: 7
- Views: 2844
- Fri Oct 01, 2004 12:34 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Invocation ID question
- Replies: 5
- Views: 3132
- Thu Sep 23, 2004 2:49 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Clear a Hashed File Outside of Datastage Job?
- Replies: 37
- Views: 17403
That how I did it: We have a script that: 1. Checks if hash file is in VOC. 2. If not then creates the VOC entry on a fly. 3. The gouv and runs SELECT COUNT(*) FROM filename. 4. Then if the VOC entry was added then it is deleted 5. Exit UV and script. I copied this script and replaced SELECT in step...
- Thu Sep 23, 2004 12:35 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Clear a Hashed File Outside of Datastage Job?
- Replies: 37
- Views: 17403
- Thu Sep 23, 2004 11:52 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Clear a Hashed File Outside of Datastage Job?
- Replies: 37
- Views: 17403
Some how it is doing something that it cannot recover from so you are not getting good error messages. Do the same command at the UNIX prompt but be in the project directory. See what happens. In my previous posting I've shown the result of the UNIX execution at prompt. $ whence clear.file /dsadm/A...
- Thu Sep 23, 2004 9:29 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Clear a Hashed File Outside of Datastage Job?
- Replies: 37
- Views: 17403
If the last 2 lines are not in the log then you are failing hard meaning you are probably core dumping. Your hash file may be corrupt or your filepath is bad or you need to quote it properly. If there is a space in this filepath then you could be clearing a directory or something other than what yo...
- Thu Sep 23, 2004 9:21 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Clear a Hashed File Outside of Datastage Job?
- Replies: 37
- Views: 17403
- Thu Sep 23, 2004 8:58 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Clear a Hashed File Outside of Datastage Job?
- Replies: 37
- Views: 17403
- Thu Sep 23, 2004 6:32 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Clear a Hashed File Outside of Datastage Job?
- Replies: 37
- Views: 17403
Hi Ray, --------------------------- CLEAR.FILE will work via ExecTCL only if the hashed file was created in an account. If the hashed file was created in a directory you need the operating system variant (clear.file) with the pathname of the hashed file. Code: $DSHOME/bin/clear.file pathname execut...
- Wed Sep 22, 2004 2:10 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Clear a Hashed File Outside of Datastage Job?
- Replies: 37
- Views: 17403
CLEAR.FILE will work via ExecTCL only if the hashed file was created in an account. If the hashed file was created in a directory you need the operating system variant (clear.file) with the pathname of the hashed file. $DSHOME/bin/clear.file pathname executed via ExecSH (for UNIX) or ExecDOS (for W...
- Fri Aug 20, 2004 1:33 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 28
- Views: 11342
After doing the straight value, the output came in this format: 7385-10-08 Do not code any conversion in derivation, just bring the value over to new field unchanged.[/img] That is what I did. DATE1 --> DATE1 I brought the value over with no derivations at all. It is because the char to date data t...
- Fri Aug 20, 2004 1:13 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 28
- Views: 11342
- Fri Aug 20, 2004 12:45 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 28
- Views: 11342
The input data type is a character and I am converting it to a date column in this format (YYYYMMDD). However, the OCONV function still put the dashes in the output. I do not want the dashes in the table. That is what I am trying to do. Also the DIGITS function output looks like this: 9811-06-11) s...
- Fri Aug 20, 2004 12:07 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 28
- Views: 11342
Trim (string,character [ ,option] ) option specifies the type of trim operation and can be one of the following: L Removes leading occurrences of character. T Removes trailing occurrences of character. B Removes leading and trailing occurrences of character. R Removes leading and trailing occurrence...
- Fri Aug 20, 2004 11:49 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion
- Replies: 28
- Views: 11342