Search found 46 matches

by svhari76
Wed Dec 29, 2010 2:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to do conditional commit?
Replies: 3
Views: 1614

I hope i should be more clear about my requirement. I am reading the lines from seq. file and group of lines forms a record in table. If line contains 'ABC' then that is starting of new record, which means we have to commit the group of lines we have inserted so for in table. Eg: i have 25 lines in ...
by svhari76
Wed Dec 29, 2010 1:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to do conditional commit?
Replies: 3
Views: 1614

How to do conditional commit?

Hi I have a scenario where i need to commit the database insertion only if certain condition meets. Eg: i am reading a file line by line and started inserting the same into a table and if the line containe 'ABC' then commit the records inserted sofar and start new insertion. Any help would be great.
by svhari76
Wed Dec 29, 2010 1:13 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Split one row to multiple rows
Replies: 17
Views: 10318

You Can use soem thing like Job1: Source Table-->Tranformer-->Sequencialfile(not hash file) Job2: Sequential file -->PIvot stage -->hashfile You can even combine Job1 and 2 in a single job. In you sequential file if you have something like a:1,b:12,c:123 ... and if you know the max number of fields ...
by svhari76
Wed Dec 29, 2010 12:00 pm
Forum: General
Topic: dsjob command help
Replies: 14
Views: 7777

In my job the source file path has been defined as #SrcDir#/#SrcFile#,
Job has individual parameters like SrcDir, SrcFile etc. More over in the director logs i am seeing my hardcoded file name rather than passed file name missing note.
by svhari76
Wed Dec 29, 2010 11:22 am
Forum: General
Topic: dsjob command help
Replies: 14
Views: 7777

The spaces are getting deleted when i am editing this message with dummy values. I tried this as well still it fails because job can not get the file name from commadn prompt. ./dsjob -server Server1 -user User1 -password password -run -param SrcDir=/dvl/etl/projects/Project1/Source -param SrcFile=P...
by svhari76
Wed Dec 29, 2010 9:23 am
Forum: General
Topic: dsjob command help
Replies: 14
Views: 7777

I tried with both single Quote and double quote options for the params.I have 4 other paramters which i wanted to take the default ones that i defined in the job.(So i am not passing them) ./dsjob -server Server1 -user User1 -password password -run -param "SrcDir=/dvl/etl/projects/Project1/Sour...
by svhari76
Tue Dec 28, 2010 4:29 pm
Forum: General
Topic: dsjob command help
Replies: 14
Views: 7777

Chulett - It has space aftre warn .
kduke - I tried as you suggested, but still job fails.

Any other suggestions?
by svhari76
Tue Dec 28, 2010 2:23 pm
Forum: General
Topic: dsjob command help
Replies: 14
Views: 7777

dsjob command help

Hi All I am trying to execute the sequencer from command prompt and i used following command. ./dsjob -server Servername -user username -password password -run -param SrcDir="Dir path" -param SrcFile="FileName"-warn 5000 Project Jobname The job has been kicked off, but failed bec...
by svhari76
Mon Dec 20, 2010 2:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Suggest better design
Replies: 6
Views: 4587

Suggest better design

I am trying to design a job which does following. 1) Get source flat file(havingng approx. 1-2M records) and separate them into 2 files (file1,file2) based on category. 2) key columns are same in these files.Load file 1 records to table1. File 2 is having all comma delimited fields(variable number o...
by svhari76
Sun Dec 19, 2010 12:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to use Pivot stage
Replies: 1
Views: 1459

How to use Pivot stage

Hi I have a text file with approximately 20 variable length columns max. First 10 columns are always present and the next 10 columns are variable i.e i can get 14 columns in a row and 18 columns in next row etc.. when i am defining the sequencial file read i defined 20 columns by default and want to...
by svhari76
Fri Dec 17, 2010 5:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Two differnt delimitters in one file
Replies: 11
Views: 4874

Ok Do like this. Procedure 1: 1)Job1 - read the file with comma(,) delimitor, in the transformer pick all the fields except | separated column(remember all pipe separated field will be read into single column here, so make sure to give enough length for this field) write these field to one file -fil...
by svhari76
Fri Dec 17, 2010 5:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to control Transactions
Replies: 1
Views: 1278

How to control Transactions

Hi All, Can some one through some information on how i can control the datastage when to commit the transcation. Example: Lets say we have flight table and passenger table and if i want to commit the data for each flight with all the passenger information at once(2 different tables, one transaction ...
by svhari76
Fri Dec 17, 2010 3:00 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get exact integer value
Replies: 5
Views: 2381

I end up being using TRIM function to delete the leading zeros and it works fine now. But if i define SQL data type as smallint,integer it should work but appenrently it did not.
by svhari76
Fri Dec 17, 2010 12:42 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get exact integer value
Replies: 5
Views: 2381

How to get exact integer value

Hi All, I am trying to read data from flat file and looking for record existance in hashedfile(which is populated from DB) . My hashed file contains a numeric field and i am getting it as 3, 4 etc. From the flat file i am getting input as 003, even though i defined the field as smallInt. Because of ...
by svhari76
Thu Dec 16, 2010 4:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Hash file look up
Replies: 2
Views: 1798

I should be able to solve the issue, the date format was the culprint.

Thanks for the assitance.