Search found 195 matches

by talk2shaanc
Tue Feb 15, 2005 4:03 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reset the Status/ Return Code of A routine
Replies: 2
Views: 825

Reset the Status/ Return Code of A routine

Hi, I have written a routine, in which I am reading from a file and doing some operations. Now after the Routines reaches the end of file it returns a status code 1, which means end of file reached. which is fine. but I want to reset the status to 0(only if end of file is reached), in the same routi...
by talk2shaanc
Tue Feb 15, 2005 3:11 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Routines
Replies: 8
Views: 6073

use deffun RoutineName(A1,A2) calling "DSU.RoutineName" for each of the routine. For example: Say I have a routine 'GetFileSize' with arguments "FileName"and"FilePath", which gives me file size when i Pass input Argument. Now if I have to use this function in some other...
by talk2shaanc
Tue Feb 15, 2005 1:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Attempt to convert String value to Date type unsuccessful
Replies: 17
Views: 20602

sorry a small correction, the above query will give ora-00917, as I missed out right parenthesis ')' in the end.
by talk2shaanc
Tue Feb 15, 2005 12:38 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Attempt to convert String value to Date type unsuccessful
Replies: 17
Views: 20602

well I would suggest is, read the column as varchar2(10) through-out all the stages from source till last oracle stage and then write a USER-Defined Query, in which for that column you use date function. Insert into <Table name> (Col1,Col2) values (:1,To_date(:2,'MM/DD/YYYY'). There will be no overh...
by talk2shaanc
Wed Feb 09, 2005 5:52 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Loading Date Values
Replies: 15
Views: 6956

well i was also fed up with such kind of error, so to resolve I have made a practice as described below: say my file has col1 as date having, date format: MM/DD/YYYY. I declare col1 as varchar2(10) in all the stages(including oracle stage) of my Job and then I write a user defined sql, say for inser...
by talk2shaanc
Wed Feb 09, 2005 5:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Getting a list of parameters
Replies: 4
Views: 1783

Result = DSGetJobInfo (JobHandle,DSJ.PARAMLIST)--returns a comma-separated list of parameter names. Result = DSGetParamInfo(JobHandle, ParamName,InfoType) InfoType Specifies the information required and may be one of: Result depends on the specified InfoType, as follows: DSJ.PARAMDEFAULT String - Cu...
by talk2shaanc
Wed Feb 09, 2005 4:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Parameter value
Replies: 4
Views: 1229

If you want to do it on Datastage, you can write DS basic code, in your job control.Sort the data on transaction_id.Then read from the sequential file(sequentially) and for every NEW transaction_id open a new sequential file (<file name>.transaction_id) to write the records , for this use the same l...
by talk2shaanc
Wed Feb 09, 2005 3:45 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Changing database schema name across all jobs
Replies: 6
Views: 1988

i can think of a way, say your current sql statement is something like scott.acct for one of the job. step1: I would first declare a job parameter "SchemaName" in all my 200 DS jobs, with default value as "scott". ways of declaring job parameter in all jobs: 1. manually 2. using ...
by talk2shaanc
Sun Feb 06, 2005 11:22 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: converting rows to columns
Replies: 6
Views: 2908

Use of aggregator is the best and simplest way as Kcbland has suggested. Use of hash file or a database is an extra overhead and its not advisable as its not a good design. As you can think of if your source file size is huge, then your going to eat up lots of space of your server/Database if you ha...
by talk2shaanc
Fri Feb 04, 2005 5:00 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Derived parameters
Replies: 11
Views: 3929

yep i have seen that. The first time i created a job sequence with just two job_activity stage. I was terrified to see some 50 lines code :lol: , for just two stages.
by talk2shaanc
Thu Feb 03, 2005 12:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Derived parameters
Replies: 11
Views: 3929

Yep its a job sequence only :). With Job Sequence in my previous thread I meant GUI only, but I didnt phrase the word properly.
I am also very new to Basic Code. So learning through R&D enjoying it. :)
by talk2shaanc
Wed Feb 02, 2005 11:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: call custom user-defined,Routine or transform in job control
Replies: 3
Views: 1545

call custom user-defined,Routine or transform in job control

In one of my job, i wanted to call a routine(transform) in the job control to get a value then passing that derived value to a job invoked in the same job control. I was geting error message: Array 'Routinename' never dimensioned.It was considering the 'Routinename' as an array, as the the call was ...
by talk2shaanc
Wed Feb 02, 2005 10:58 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: ORA:00904 Error
Replies: 6
Views: 2962

Hey,
Just trying to be more specific.If table name given in SQL query is incorrect and the table does not exist, the error will be ORA-00903: invalid table name.
If the incorrect Table name exist in the Data-Base then only you will get ORA-00904: invalid column name.
by talk2shaanc
Wed Feb 02, 2005 10:47 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Derived parameters
Replies: 11
Views: 3929

An Alternative method, without using Job sequence. Say You server jobname is JOBA. I will create another server job JOBB, with all the parameters, that you have defined for JOBA. JOBB wont be having any mappings/stages. In the Job Control of JOBB, i will write a piece of code, like: SITE,DBName,DBUs...