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.chulett wrote:Use two parameters, one for the folder and another for the filename. ...
Search found 44 matches
- Thu May 17, 2007 10:56 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Manipulate Job Parameter
- Replies: 3
- Views: 1350
- 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...
- 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 ...
- 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...
- 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
- 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
- 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...
- 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
- 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
- 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
- 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...
- 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...
- 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...
- 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
- 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...