Search found 195 matches

by talk2shaanc
Wed Feb 02, 2005 12:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can anyone Help me in reviewing My Basic Code.
Replies: 3
Views: 1497

Further improvement please help in this, ignor the previous one. I spotted the knot, it was silly mistake. :( EST #1 ******* Arg1 = C:\Orders\ Arg2 = jcOrders.txt Arg3 = 10 Test failed. Program "DSU.SplitFile": Line 17, Improper data type. --------------------------- The code looks like th...
by talk2shaanc
Tue Feb 01, 2005 11:52 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Can anyone Help me in reviewing My Basic Code.
Replies: 3
Views: 1497

Can anyone Help me in reviewing My Basic Code.

I have a requirement to split a file, into N multiple files. N is dependent on size. Say one day I have 100MB file. I want to split the files of say 10MB(This value will be passed as parameter,will be constant) each. So I will have 10, 10MB files.Tommorrow if I have 60MB file, than I will have 6,10M...
by talk2shaanc
Tue Feb 01, 2005 11:19 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing a Job Parameter for picking up a dynamic File Name
Replies: 10
Views: 4294

sorry forgot to mention this will work for NT server.
by talk2shaanc
Tue Feb 01, 2005 11:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing a Job Parameter for picking up a dynamic File Name
Replies: 10
Views: 4294

Use this routine, it will give you the file name. *Function GetFileName(FileName,FilePath) Deffun DSRMessage(A1, A2, A3) Calling "*DataStage*DSR_MESSAGE" RoutineName='GetFileName' Call DSExecute("DOS", 'Dir /b ':FilePath:'\':FileName:'*', Output, SystemReturnCode) If Trim(Output)...
by talk2shaanc
Tue Feb 01, 2005 10:17 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: ORA:00904 Error
Replies: 6
Views: 2954

Its Oracle error, ORA-00904: string: invalid identifier Cause: You tried to execute an SQL statement that included an invalid column name or the column name is missing. Solution: Import proper metadata into your Oracle stage, directly from the DataBase, Instead of free hand typing. As every body has...
by talk2shaanc
Tue Feb 01, 2005 10:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to merge multiple sequencial files together effectively
Replies: 6
Views: 3518

Hi,
I think Link Collector stage in DS, will also solve the purpose.
In which I can have multiple file as input, with same structure and one single output and in properties tab you can specify the collection algorithm.
by talk2shaanc
Tue Feb 01, 2005 12:14 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: want to know the count of last record processed
Replies: 4
Views: 2974

Restart Logic

If I have understood the requirement properly, then taking a case, where there are 1million records coming from source say flat file. Now while loading into a table the load breaks at say 25000, I have set a commit point every 20K records. Now the second time when i restart the job i want to start f...
by talk2shaanc
Mon Jan 31, 2005 5:33 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Log
Replies: 12
Views: 3632

thanks ray, My requirement is like that. :)
I still have a problem, either of the way doesnt give desired result when the job status is other than 'finished'. :(
So thinking of some other way, do let me know if anyone has some other idea's.
by talk2shaanc
Mon Jan 31, 2005 2:09 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Log
Replies: 12
Views: 3632

hey ray, Thanks, a small correction to your code. It would be "DSGetLinkInfo" NOT "DSLinkRowCount". And in my requirement, I need to get count of different link of my first job in one of the transformer stage of my second job. So if I do Attaching of my first job, to get One coun...
by talk2shaanc
Mon Jan 31, 2005 12:38 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Log
Replies: 12
Views: 3632

Here is the Solution, Create a routine and pass an argument say,Arg1. ----------------------------------------------------------------------------- Equate RoutineName To "GetLinkCount" Call DSExecute("DOS",Arg1,Output, SystemReturnCode) Count =Output[':',2,1] Ans=Oconv(Count, &qu...
by talk2shaanc
Mon Jan 31, 2005 12:10 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Log
Replies: 12
Views: 3632

Hey Ray U didnt read my requirement properly. I wanted my second job to read about my first job statistics, from the director log, in one of its Transformer stage and store the information in the Audit Table. And Using after/before job routine in first/second job would mean creating some physical fi...
by talk2shaanc
Mon Jan 31, 2005 12:01 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Log
Replies: 12
Views: 3632

Thanks Guys,
I got solution to it.
by talk2shaanc
Sun Jan 30, 2005 11:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Log
Replies: 12
Views: 3632

Thanks, But I know i can do it using API or after/before job routine, but i want the value inside my transformer and I dont want to create text file prior to running the job and then read the text file in my transformer stage. I want something that would give me the value, on the fly.
by talk2shaanc
Sun Jan 30, 2005 10:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Read Log
Replies: 12
Views: 3632

Read Log

Hi, I have requirement where after completion of First Job, which loads into a table from a flat file, I am starting a Job for Audting. In my Auditing job i want to store the "No of records read","No of records loaded" of my first job. But I dont know how to read Director log and...
by talk2shaanc
Tue Jan 18, 2005 8:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: initializing parameter, inside a transformer stage
Replies: 5
Views: 1320

initializing parameter, inside a transformer stage

hi Guys, My requirement is something like reading a sequential file with header and trailer then loading data into a oracle DB with some business logic in b/w along with a date field which will be read from the header. Then using the loaded records (Not all the colmns) to create an outbound file. Fo...