Search found 44 matches

by news78
Thu May 17, 2007 10:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Manipulate Job Parameter
Replies: 3
Views: 1350

chulett wrote:Use two parameters, one for the folder and another for the filename. ...
Is there no other way using one parameter? Making two parameters is currently the last option as it will involve many other changes for us.
by news78
Thu May 17, 2007 9:49 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Manipulate Job Parameter
Replies: 3
Views: 1350

Manipulate Job Parameter

Is it possible to manipulate the a job parameter in the Folder stage? For e.g. I have a job parameter "File" which has the absolute path to a file e.g. File = /a/b/file1.dat Now in the folder stage in the Properties tab I need to specify just the folder "/a/b" I tried doing #File...
by news78
Tue Mar 20, 2007 8:52 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing pattern as a Job parameter
Replies: 4
Views: 1569

It ought to be possible, but you would need to guarantee that only one file matches the regular expression if you are planning to use it as the filename property directly. Otherwise, specify a filt ... Yes only one file will match the pattern. If so is there any way to achive this? In case I use a ...
by news78
Mon Mar 19, 2007 3:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing pattern as a Job parameter
Replies: 4
Views: 1569

Passing pattern as a Job parameter

I have a datastage job that reads a file using a Sequential File stage and processes it. Now the file name is dynamic and follows a pattern: feedata_<month>_1_<yyyy>.txt e.g. feedata_January_1_2007.txt Does datastage provide any option so that I can provide feedata_<month>_1_<yyyy>.txt as job parame...
by news78
Tue Feb 20, 2007 1:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: optimum way to delete/insert
Replies: 5
Views: 1254

If my design is as follows: [Transformer] > [DRS] And all am doing is issuing a delete query from the DRS stage(using the user defined sql tab, and database is oracle): "delete from A where date1 < somedate" Will setting the Array Size and Transaction size help from a faster query executio...
by news78
Fri Feb 16, 2007 12:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: optimum way to delete/insert
Replies: 5
Views: 1254

One target stage with before sql DELETE FROM TABLE B where B.KEY IN ( SELECT A.KEY from TABLE A) update option set to "Insert rows without clearing". Source will be your TABLE A. But that is going to take time for 2M records. You need to go for TRUNCATE and BULK loads. I thought of this. ...
by news78
Fri Feb 16, 2007 11:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: optimum way to delete/insert
Replies: 5
Views: 1254

optimum way to delete/insert

Scenario: Two tables A and B, both have columns col1. Both tables contain approx 2 million records. I need to delete all records from table B which match with table A based on col1. Then insert all records from A into B Whats the fastest way to achieve this in DataStage server job? Database is Oracl...
by news78
Tue Feb 13, 2007 8:30 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DRS rollback not occuring with IPC stage
Replies: 19
Views: 5250

So it is a known fact that if a job uses IPC stage we cannot do rollback if the job aborts? Why so? (I assume this happens because IPC creates two processes?)
by news78
Mon Feb 12, 2007 12:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DRS rollback not occuring with IPC stage
Replies: 19
Views: 5250

narasimha wrote:What is your target database?
Oracle
by news78
Mon Feb 12, 2007 12:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DRS rollback not occuring with IPC stage
Replies: 19
Views: 5250

DSguru2B wrote:Get rid of the IPC stage.
Is there any other option? I need the IPC stage as I can see faster loads with IPC in place.
by news78
Mon Feb 12, 2007 10:30 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DRS rollback not occuring with IPC stage
Replies: 19
Views: 5250

DRS rollback not occuring with IPC stage

My job looks similar to as follows: [IPC] -> [DRS] | | [SequentialFile] --> [Transformer] | | [IPC] -> [DRS] Note in the job, the ipc links are coming out of the transformer, for some reason I am not able to show that here. Now, the requirement is if any error occurs while loading records, there sho...
by news78
Wed Feb 07, 2007 5:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transformer Stage with zero input link
Replies: 14
Views: 4867

Same pearl with a different shine. You'll probably need to use user-defined sql. :wink: First, clarify what 'col2 < firstday_of_month' means. Col2 is a date? I doubt you can use 'MM' here without also including the year as well. I'm guessing you need a sql statement more akin to this: delete from t...
by news78
Wed Feb 07, 2007 4:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transformer Stage with zero input link
Replies: 14
Views: 4867

I'd suggest stepping back and not using user-defined sql, it's not needed here. Create one column in the stage for col1 in the table and mark it as a Key field. Use an Update action of 'Delete existing rows only'. Set the value of the key field passed down from the Transfomer to 1. Done. OK that wo...
by news78
Wed Feb 07, 2007 4:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transformer Stage with zero input link
Replies: 14
Views: 4867

That was just to get your job compiling and running with a chance of success. The actual setup of the DRS stage for this is a completely different issue. Post your delete SQL. The sql is realy simple. delete from tablename where col1=1 In the DRS stage, I have specified the tabel name in the "...
by news78
Wed Feb 07, 2007 2:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transformer Stage with zero input link
Replies: 14
Views: 4867

You need to define a stage variable so the job will compile, no need to actually use it. Then a constraint to ensure that only one record goes to the database stage, otherwise the job will run forver. I use: @OUTROWNUM=1 I tried this. 1. I tried with defining the table name in DRS. Also I defined o...