Search found 58 matches

by harikhk
Tue Feb 10, 2015 6:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Before SQL statement in DB2 Connector not working
Replies: 4
Views: 1907

Before SQL statement in DB2 Connector not working

Hi, Need to extract data from a view. Want to create this view using the Before SQL option of DB2Connector stage by reading the create the statement from a file. The job fails saying The object name(here the view) is undefined. My understanding with BeforeSQL statement is, the statements defined in ...
by harikhk
Thu Oct 02, 2014 10:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Passing parameters to the query read from a file
Replies: 2
Views: 2187

Passing parameters to the query read from a file

Hi, Below is my requirement. Execute a query by reading the query from a file in DB2 connector stage and writing to a sequential file. But the catch is I have a where clause in the select query and pass parameters at run time to this where clause. For example : where search_column like #PARAM# Could...
by harikhk
Thu May 22, 2014 4:46 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field value to the length of the column
Replies: 13
Views: 6334

Thanks Craig and Eric.
Marking the topic resolved
by harikhk
Thu May 22, 2014 2:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field value to the length of the column
Replies: 13
Views: 6334

Thanks for the space() function and also I think option concatenation with a null value may not work.
PAD_CHAR helps for right padding. I am looking for a left padding option
by harikhk
Thu May 22, 2014 2:00 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field value to the length of the column
Replies: 13
Views: 6334

Craig, Overlooked the link. Thanks for sharing the part. For performance noted option B better Still intersted to know if there is another option to avoid hard coding or is only the option considering below scenario Just in case the target field is a 200 character length and has 50 input characters,...
by harikhk
Thu May 22, 2014 1:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field value to the length of the column
Replies: 13
Views: 6334

Hi Craig, Decimal datatypes auto pad with zeros while integers do not. Yes, if defined as Decimal/Numeric, it does have the decimal point which is not preferred along with a space for the sign And in case of strings, padding by default is to the right as defined by the $APT_STRING_PADCHAR I am not a...
by harikhk
Thu May 22, 2014 10:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field value to the length of the column
Replies: 13
Views: 6334

Field value to the length of the column

Hi, I have a query while creating a fixed width file 1. If there is an integer field(or even a char type) of length 6 how do I get 0s(or another padding character) appended to the beginning Ex: Input : 1234 Expected Output : 001234(Length of the target column is 6 ) I have tried the options a) Str(0...
by harikhk
Wed Apr 16, 2014 3:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bulk load using DB2 UDB stage
Replies: 10
Views: 9680

HI,

Thanks for the response.
I am able to create the dump file in the database server.

I still wonder inorder to capture all the rejects, I have to go through exceptions table and also dump file and is there a way to capture all in once place

Thanks a lot for the help.
by harikhk
Fri Apr 11, 2014 3:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bulk load using DB2 UDB stage
Replies: 10
Views: 9680

Hi Craig,

The directory exists and the user has permissions.
The other log file is created in the same route and with teh same user.

Where should the dump file be created-On datastage server or database serve
by harikhk
Fri Apr 11, 2014 2:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bulk load using DB2 UDB stage
Replies: 10
Views: 9680

Hi Michael, I have mentioned the dump file as /log/blk_dump. This path is on the datastage unix server The job failed with below errors DB2_Connector_6,0: Error 9 occurred while closing the named pipe. DB2_Connector_6,0: The DB2 Load API call failed with SQLCODE -2,036. Load messages are stored in m...
by harikhk
Thu Apr 10, 2014 2:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bulk load using DB2 UDB stage
Replies: 10
Views: 9680

Hi Michael,

Thanks for the clarification on 'exception table is to capture unique key violations'
How to get the error code in the exception table(Foreign key viloation, unique key violation)
Could you please explain how to create the dump file and also how to get the error code for the same
by harikhk
Thu Apr 10, 2014 1:12 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bulk load using DB2 UDB stage
Replies: 10
Views: 9680

Sorry.. Put in the wrong category. changing to parallel
by harikhk
Thu Apr 10, 2014 12:05 pm
Forum: General
Topic: Datastage director read only access
Replies: 4
Views: 2506

Hi Eric,
Thanks for the post.
Will check the option with the IBM support team
by harikhk
Thu Apr 10, 2014 11:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bulk load using DB2 UDB stage
Replies: 10
Views: 9680

Bulk load using DB2 UDB stage

Hi, Stuck with bulk load features in DB2 Connector stage. After multiple errors left with queries. Below I am trying to explain my problem with maximum details. Your expert help needed resolve the problem Using bulk load facility to load massive data for faster load and to avoid creating of archive ...