Search found 30 matches

by sweetleaf
Wed Feb 19, 2003 11:34 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: handling pk violations
Replies: 4
Views: 2177

handling pk violations

Hi there, I have a sequential file stage which I want to read data into 2 oracle tables. table 1 will contain records which satisfy the pk (product#,vendor). I'd like bad records (records missing pk data, or duplicates) to get routed to table 2. I've already got bad records with missing pk data goin...
by sweetleaf
Tue Feb 11, 2003 1:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading header information in a flat file
Replies: 2
Views: 956

Thanks Ray,

I'll work on your first suggestion, it sounds a little easier for me.

Thanks much!
by sweetleaf
Fri Feb 07, 2003 3:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date format
Replies: 3
Views: 1532

Hi,

I've found that the following function works fine in the transformer stage if you want to insert a date into Oracle:

DateGenericToODBC(DSLink9.movementDate)
by sweetleaf
Wed Feb 05, 2003 4:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading header information in a flat file
Replies: 2
Views: 956

Reading header information in a flat file

Hi, I sure hope theres no posting limit in this forum.. I have a job which will read a sequential file into an oracle table -sound familiar?- on a nightly basis. The file has at least 3 rows of header data at the top. The header data contains things like order#,customer# etc.. During the load, I mus...
by sweetleaf
Wed Feb 05, 2003 3:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date format
Replies: 3
Views: 1532

Date format

Hi there, I have a job which reads data from a comma-delimitted sequential file into an oracle table. One of the columns is a date value(format is mm/dd/yyyy ie.1/30/2003). Once the data has been inserted into oracle from DataStage, however, the dates get mangled up (like was: 1/30/2003 now:1/3/2030...
by sweetleaf
Wed Feb 05, 2003 8:07 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: read folder contents
Replies: 6
Views: 1904

Hi guys, Thanks so much for all of your valuable input. The route i've opted to take is to use the folder stage to read file names and their contents (as one large string) into the oracle backend. Then write a seperate chunk of plsql to parse through the comma delimitted string and process each valu...
by sweetleaf
Thu Jan 30, 2003 8:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: read folder contents
Replies: 6
Views: 1904

read folder contents

Hi there,

Does anyone know of a DataStage function that will read the file names inside of a predefined directory, like a "dir" or "ls" command, then pass each file name into a variable in a given job.

Thanks much!
by sweetleaf
Wed Jan 29, 2003 11:21 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: reading sequential files
Replies: 6
Views: 2725

To reply to Suresh, Hi there, as you can see i'm trying a few methods for getting .csv data into my database.. I've managed to set up a folder stage which does exactly what you'd mentioned: it loads 2 columns into my table, FileName and File contents. The contents are quite huge often exceeding 3000...
by sweetleaf
Wed Jan 29, 2003 11:11 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: reading sequential files
Replies: 6
Views: 2725

Hi guys, Thanks for your suggestions as you can tell i'm a DataStage newbie. Now that I've found the Job Control tab, I don't know what type into it to tell DataStage which directory to look in, to capture file names and file count, then pass the filename as a param to another job. I don't have the ...
by sweetleaf
Wed Jan 29, 2003 8:07 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: reading sequential files
Replies: 6
Views: 2725

Hi Ray, The only thing is that the file names and the number of files will never be known in advance. I've actually come across something new to me:the Folder Stage. In the folder properties I've defined the output(column names, folder path that will contain my files etc..) I've created a link b/w a...
by sweetleaf
Tue Jan 28, 2003 3:12 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: reading sequential files
Replies: 6
Views: 2725

reading sequential files

Hi everyone, A quick question: If I have a job that I want to read the contents of all the csv files (all having the same format) in a given directory into a database table, how can I do this? Can DataStage except something like this "/export/home/*" in the file name prompt? Or can I get i...
by sweetleaf
Tue Jan 28, 2003 12:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sequential file data length checking
Replies: 4
Views: 1711

Thanks guys! That was a big help, As you can tell I'm a DataStage newbie! I just got your helpful posts now. A quick question: If I have a job that I want to read the contents of all the csv files in a given directory into a database table, how can I get it so that where it prompts for file name (Se...
by sweetleaf
Sat Jan 25, 2003 1:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: sequential file data length checking
Replies: 4
Views: 1711

sequential file data length checking

Hi there, I have a Sequential file stage and an ORAOCI8 stage. So far I can import the contents of the sequential file into an oracle table. But I need to be able to check that the character length of one of the inbound columns from the csv file is 12 digits long, and if not then reject the entry an...
by sweetleaf
Sat Jan 25, 2003 1:02 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can DataStage be used w/out lan
Replies: 6
Views: 2443

Hi guys, Thanks so much for your responses! I forgot to mention that I have DataStage Client installed on my machine. Basically whats happened is that I've been requested to import data into our existing oracle db(but i want to practice doing this on my own local db before i do anything on the netwo...
by sweetleaf
Fri Jan 24, 2003 3:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can DataStage be used w/out lan
Replies: 6
Views: 2443

Can DataStage be used w/out lan

Hi there,

I will have no network/internet connection.
I have DataStage installed on my pc, and a local oracle db installation.
I'd like to have DataStage "read" a csv on my pc into a local oracle table.

Is this possible?

Thanks