Search found 504 matches

by ShaneMuir
Tue Oct 31, 2006 1:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Oconv and iconv
Replies: 6
Views: 3386

Welcome Aboard! :)

Oconv converts to an output format, Iconv to an internal storage format.

Given that there are so many different conversions that can be acheived with Oconv and Iconv the easiest way to learn about them is to read the documentation or press help.
by ShaneMuir
Tue Oct 17, 2006 12:27 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unable to open temp file
Replies: 3
Views: 2497

Am I missing something here?

What sort of file? Sequential? Hash?
by ShaneMuir
Tue Oct 10, 2006 7:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Data Rationalisation - Performance and Optimisation
Replies: 13
Views: 4549

Just for everybody's information.

The changes suggested (ie use hash files and unix sorts) have sped the job up from 3 hours to 35 mins. (In initial testing anyway put its a very promising sign!! :D )

Thanks again to everybody who put forward suggestions.
by ShaneMuir
Wed Oct 04, 2006 7:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Oracle Datatypes XML vs CLOB
Replies: 0
Views: 1517

Oracle Datatypes XML vs CLOB

Hi All I have a query regarding the difference between the datatypes XML and CLOB as used by Oracle 9.2. Are both of them long datatypes? And how will this interact with the ORAOCI8 stage. I have an issue where I am trying to capture rejected XML records. When a record is rejected the xml record is ...
by ShaneMuir
Wed Oct 04, 2006 4:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Merge 2 different files
Replies: 7
Views: 1782

Thanks for your ideas, but with your methods I think I can't have a file with this structure: header 1 ligne 1 ligne 2 header 2 ligne 1 ligne 2 Is there any link between the header and the detail? ie So you know which detail lines belong to which header, or is it just write header, 2 detail lines, ...
by ShaneMuir
Wed Oct 04, 2006 6:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Merge 2 different files
Replies: 7
Views: 1782

Can't you just use a unix command in a before or after subroutine?

eg cat detail.txt >> header.txt
by ShaneMuir
Tue Oct 03, 2006 7:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: extract data from file different num of fields in each row
Replies: 22
Views: 8060

Important thing is, the file will have only one Header and one Trailer records . Ok now you have lost me again. Do you mean that you are processing one file at a time and each file only has one header record and one trailer record? If that is the case then do as Ray suggests, just check the file fo...
by ShaneMuir
Tue Oct 03, 2006 6:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: extract data from file different num of fields in each row
Replies: 22
Views: 8060

I hope I have made my ideas clear. Please correct me if I have to follow a much better approach. Not really that clear unfortunately? I am assuming that you are writing the Trailer record to a hash file and then using some sort of key value to match that trailer record to a detail record. If there ...
by ShaneMuir
Tue Oct 03, 2006 5:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: extract data from file different num of fields in each row
Replies: 22
Views: 8060

Hi All, There is some more logic to be implemented in this job. 1. Need to check if both Trailer (T) and Header (H) records are present in the file. 2. The Detail (D) records should be processed only if the file consists of both Header and Trailer records. 3. The Trailer will have date, time and ID...
by ShaneMuir
Tue Oct 03, 2006 12:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: extract data from file different num of fields in each row
Replies: 22
Views: 8060

You could read the sequential file with a seq file stage with one column. Set this column to have a delimeter of 000 and a quote of 000. Connect it to a transformer and select the first character of each row into a stage variable. Have 3 outputs to sequential files, each containing the one row and ...
by ShaneMuir
Tue Oct 03, 2006 12:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: extract data from file different num of fields in each row
Replies: 22
Views: 8060

You could read the sequential file with a seq file stage with one column. Set this column to have a delimeter of 000 and a quote of 000. Connect it to a transformer and select the first character of each row into a stage variable. Have 3 outputs to sequential files, each containing the one row and s...
by ShaneMuir
Fri Sep 15, 2006 12:27 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Folder Stage, Ereplace and Field Marks (@FM)
Replies: 5
Views: 6042

Use the five-argument variant of Ereplace() in which you can specify the starting occurrence and number of occurrences. But I still think Cats() or Splice() is a neater solution. Have already implemented and tested the 5 argument version. Thanks for the suggestion of cats or splice - i will give th...
by ShaneMuir
Thu Sep 14, 2006 9:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Folder Stage, Ereplace and Field Marks (@FM)
Replies: 5
Views: 6042

Ok I have figured it out! :o :D It was the variable ReplacedFirstRow that was the problem. The substring value of the ereplace was set to pick up the value of the first row, when it found other instances of the value it replaced them also. All I need to do is limit the replacement to the first insta...
by ShaneMuir
Thu Sep 14, 2006 8:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Folder Stage, Ereplace and Field Marks (@FM)
Replies: 5
Views: 6042

Tell/show us how Prefix is defined/derived. Investigate the Cats() function and the Splice() function for easier mechanisms for adding a prefix to each element of a dynamic array. Cats(Reuse(Prefix:","),input.data) Splice(Reuse(Prefix), ",", input.data) Hi Ray Prefix = input.fil...
by ShaneMuir
Thu Sep 14, 2006 8:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Folder Stage, Ereplace and Field Marks (@FM)
Replies: 5
Views: 6042

Folder Stage, Ereplace and Field Marks (@FM)

Hi All Back again and totally confused as usual. We have a job which reads from a folder stage into a transformer and out to a sequential file. Folder ---> Transform ---> Seq File In the transform stage there are several stage variables whose aim is to append a prefix to each row. The variables are ...