Search found 78 matches

by bhasds
Mon Oct 01, 2012 3:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Regarding Ontology File
Replies: 6
Views: 3946

Hi additiya, You can read the entire data as a single file and in the transformer stage variable - 1. If Field(Colname,":",1)<> SV2 Then Field(Colname,":",2, Dcount(Colname,":")) Else SV1 :",":Field(Colname,":",2, Dcount(Colname,":")) SV1 F...
by bhasds
Sat Sep 29, 2012 9:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Assign Value if duplicate record
Replies: 6
Views: 2575

TWO step1- same as ONE step2- If Trim(colname,Right(DSLink105.col1,1),"T") <> SV2 Then colname Else SV1 :" ":Right(colname,1) SV1 Trim(colname,Right(colname,1),"T") SV2 step3- Same as ONE. However, as said by Craig you can still do it through Pivot enterprise stage.
by bhasds
Sat Sep 29, 2012 9:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Assign Value if duplicate record
Replies: 6
Views: 2575

Hi Cherukuri, If you are still looking for any logic which can be used in transformer then the below two should give you desired out put- ONE. step1-read those 5 columns in a single column in seq file stage and passs to the transformer step2-take two stage variable in transformer- If Trim(colname,Fi...
by bhasds
Fri Sep 28, 2012 1:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Records flow one by one to Lookup table.
Replies: 13
Views: 7314

Hi Cherukuri,

If I have understood your question, then I think the lookup stage does exactly the same thing what you want in your job.
by bhasds
Thu Sep 27, 2012 12:28 pm
Forum: General
Topic: How to pass year and month fro ma sequencer to the job
Replies: 4
Views: 2930

Hi Venkata,

If you need to pass current year and month from sequence as a parameter then you can use Oconv function in the expression grid of the Job activity.

Code: Select all

Oconv(Date(),"DYM[4,2]")
by bhasds
Thu Sep 27, 2012 5:03 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To identify set of records
Replies: 4
Views: 1956

Hi Cherukuri, you can use 3 stage variables- In stage variable- Derivation Satage Variable If col1<>SV2 And col2 <>SV3 Then SV1+1 Else SV1 SV1(initialize by 0) col1 SV2(initialize by 0) col2 SV3(initialize by 0) In output- In the third column derivation take the out put from SV1
by bhasds
Thu Sep 27, 2012 4:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: function to trim commas between a string
Replies: 3
Views: 2050

Hi Phanikumar,

I was able to get the desired output with-

Code: Select all

Convert(" ",",",CompactWhiteSpace(Convert(","," ","colname")))
by bhasds
Sat Sep 22, 2012 2:47 pm
Forum: General
Topic: oracle connector not working in 8.7
Replies: 0
Views: 956

oracle connector not working in 8.7

Hi All,

The oracle connector stage is giving following error-

OCI function OraOCIEnvNlsCreate:OCI_UTF16ID returned status -1

This post says that the permission has to be given to the client user for oracle library.

Could you please explain how to do it in Windows?
by bhasds
Thu Sep 20, 2012 1:20 pm
Forum: General
Topic: JOB ID In datastage
Replies: 7
Views: 9051

Hi ntr,

If you are searching with the job number, then you can search with the job number in the DS_JOBS table-

Code: Select all

SELECT NAME FROM DS_JOBS WHERE JOBNO = 'job_number';

The above query can be executed in administrator command prompt.
by bhasds
Thu Sep 20, 2012 1:01 pm
Forum: General
Topic: JOB ID In datastage
Replies: 7
Views: 9051

or

execute the command

Code: Select all

LIST DS_JOBS WITH @ID=job_name


in administrator command prompt
by bhasds
Thu Sep 20, 2012 12:47 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: firstname,middle name, lastname
Replies: 8
Views: 6592

Hi Srivalli_b, I have tried with the below input- vekat raJU VENKAT RAM Raju narayana Jean Claude Van Damme Field(CompactWhiteSpace(src.col1)," ",1) col1 If Dcount(CompactWhiteSpace(src.col1)," ") >2 Then Field(CompactWhiteSpace(src.col1)," ",2,Dcount(CompactWhiteSpace(...
by bhasds
Thu Sep 20, 2012 5:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: firstname,middle name, lastname
Replies: 8
Views: 6592

Hi srivalli_b, If there are multiple spaces in first name,lastname can you plese let me know how to handle this. In the above scenario the compactwhitespace function should work fine.... If Dcount(CompactWhiteSpace(Col1)," ") >2 Then Field(CompactWhiteSpace(Col1)," ",2,Dcount(Com...
by bhasds
Fri Sep 14, 2012 5:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to process a condition on 124 occurences of a field?
Replies: 3
Views: 1481

Hi Jayakannan, The desired result for the above scenario can also be achieved through transformer and funnel stage. In transformer- 1.from transformer we can take 124 links each for one satus and date. the derivation of status and date for each output link can be- Derivation Columna Name If status_1...
by bhasds
Fri Sep 07, 2012 11:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading the sequential file
Replies: 4
Views: 5253

Reading the sequential file

Hi Halpavan2,

The below command in filter option in sequential file stage should give you the result as said by Ray-

Code: Select all

awk -F","  '{if ($2==1 || $2==2) print $0}'
by bhasds
Thu Sep 06, 2012 6:27 am
Forum: General
Topic: execute command for readinging sequentialfile in looping
Replies: 5
Views: 2570

execute command for readinging sequentialfile in looping

Hi Roshan, If I have understood your question correctly, you are asking- 1.How to get record count of a file through execute command? 2.How to pass the records to the loop in sequence and the count should determine the number of time the loop should run? 3. How to prevent the loop from running if th...