Search found 6797 matches

by DSguru2B
Fri Dec 29, 2006 8:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: look up prob
Replies: 7
Views: 1840

If they are in the same schema then you can probably join several keys while building your hashed file. Lets take your current situation. Build your hashed file with the following query from the database. SELECT N.nationkey, R.regionkey, <Rest of the columns that you need in your hashed file> FROM n...
by DSguru2B
Thu Dec 28, 2006 5:13 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Running Stored Procedure as an Input.
Replies: 4
Views: 1934

I missed the ODBC part in the error message. Calling a stored procedure from odbc can only support IN and IN/OUT parameters. It does not support OUT or RETURN parameters.
by DSguru2B
Thu Dec 28, 2006 4:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Running Stored Procedure as an Input.
Replies: 4
Views: 1934

Welcome Aboard :P
Does the stored procedure run from command line or your favourite sql tool?
by DSguru2B
Thu Dec 28, 2006 4:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Capturing File name of the file being loaded
Replies: 5
Views: 2279

You are replying to a post that was last answered in Jun 06.
by DSguru2B
Thu Dec 28, 2006 4:13 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Assigning Job Parameters in a UNIX script
Replies: 29
Views: 8555

You are right Craig. It wont work without preceding it with '-param'. I just missed that :oops:
I fixed my previous post.
by DSguru2B
Thu Dec 28, 2006 4:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Assigning Job Parameters in a UNIX script
Replies: 29
Views: 8555

You can certainly do that. But you got the sytax wrong. Heres the correct syntax

Code: Select all

dsjob -run -param username=abc -param password=xyz project_name job_name
by DSguru2B
Thu Dec 28, 2006 3:47 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fixed width Seq File from Server to Parallel
Replies: 24
Views: 6460

beaditya wrote:Can I just create a server job to write the fixed width data into another normal seq file and then get it into parallel? Will that work ?

I never used HEX, so thats gonna be a problem

Good idea. Sounds good.
by DSguru2B
Thu Dec 28, 2006 3:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage
Replies: 9
Views: 4090

Look into the Modify Stage pdf help. There is a chart of all the conversion functions. From the error message it seems that sucha function doesnt exist. Dont have access to DS right now. If its not there, then use the function us1aslam1us advised.
by DSguru2B
Thu Dec 28, 2006 2:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fixed width Seq File from Server to Parallel
Replies: 24
Views: 6460

us1aslam1us, some spaces are fine. They just mean that there is no value. Spaces within fields are ok, but the OP has to validate that and make sure that these spaces are the 'OK' spaces.
by DSguru2B
Thu Dec 28, 2006 2:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fixed width Seq File from Server to Parallel
Replies: 24
Views: 6460

Your schema is messed up. Analyze it with me, if you will. Lets take your first record and break it up to your schema. The length of the column is in brackets. 0501025414 (10) 638979 (6) P+ (2) 4 (1) (1) 2005-02-01 (10) (1) (4) 0 -12 &#...
by DSguru2B
Thu Dec 28, 2006 2:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage
Replies: 9
Views: 4090

Code: Select all

new_columnName:int32 = int32_from_string (old_columnName)
by DSguru2B
Thu Dec 28, 2006 1:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fixed width Seq File from Server to Parallel
Replies: 24
Views: 6460

The first record of your sample data is of length 54 (including all spaces). If you add up the length's in your meta data, its 61. Your meta data is wrong, or your file is wrong. At a glance, a person can tell that, for a fixed width file, its not formatted correct. Go back to your post and enclose ...
by DSguru2B
Thu Dec 28, 2006 1:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage
Replies: 9
Views: 4090

See if this post helps. Ray mentioned a few conversion functions in that post. You can take a look at that.
by DSguru2B
Thu Dec 28, 2006 1:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fixed width Seq File from Server to Parallel
Replies: 24
Views: 6460

Can i see a sample record, maybe a few records and the meta data that you defined. I suspect your lengths are not correct.
by DSguru2B
Thu Dec 28, 2006 1:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Fixed width Seq File from Server to Parallel
Replies: 24
Views: 6460

All you need to specify is Under format tab - Record Level --> Record length = fixed Record Delimiter = UNIX newline - Field defaults --> Delimiter = none. Then go to the Columns tab and specify all the columns as 'char' type and specify the correct length. That is it.