Search found 3329 matches

by Sainath.Srinivasan
Thu Oct 21, 2010 6:34 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: ORA-00001: unique constraint for NO SOURCE RECORDS
Replies: 3
Views: 3562

An ora-0001 is a primary key violation. I do not see any chance of this error occuring without any rows passed to the target. Maybe you are generating rows which is not in the source. Normally these errors are accompanied with the data row that triggers them. Take a copy of the job and replace the t...
by Sainath.Srinivasan
Mon Oct 18, 2010 4:24 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generate ID
Replies: 10
Views: 3737

Then refer to the initial post which said to have understood.

Also in future please post what you did and the full output rather than saying that 'it does not fit your requirement'.
by Sainath.Srinivasan
Mon Oct 18, 2010 2:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generate ID
Replies: 10
Views: 3737

What was the initial value you set the stage variable to ?
by Sainath.Srinivasan
Fri Oct 15, 2010 9:01 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generate ID
Replies: 10
Views: 3737

Code: Select all

svCurrKey = input.Key
svOutputId = if input.Port_Id = 0 And svCurrKey <> svPrevKey Then svOutputId + 1 Else svOutputId
svPrevKey = svCurrKey

In the output link,
output.Port_Id = If input.Port_Id = 0 then svOutputId Else input.Port_Id 
by Sainath.Srinivasan
Fri Oct 15, 2010 5:52 am
Forum: General
Topic: How to list jobs modification dates?
Replies: 25
Views: 8938

Search for DS_AUDIT.
by Sainath.Srinivasan
Fri Oct 15, 2010 3:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Facing problem with PX routines in DataSatge 8.1
Replies: 4
Views: 2176

You said that you made both as non-nullable. That means that your new function is identical to your old one - except for the new input parameters. If that does not work, you need to start by removing them. By changing the return type from char* to char, you are making the pointer of return value to ...
by Sainath.Srinivasan
Fri Oct 15, 2010 2:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generate ID
Replies: 10
Views: 3737

Obtain the max id in another job and pass its value to the current job.

In this job, set the stage variable to do a normal key change check but control incrementing the id and setting the target as for only when Id = 0.
by Sainath.Srinivasan
Tue Oct 05, 2010 3:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: zero not to be truncated
Replies: 6
Views: 4789

'03' is only a displaytype for integers. You can do something like

Code: Select all

SELECT to_char(yourIntField, '00')
FROM yourTable 
by Sainath.Srinivasan
Fri Oct 01, 2010 9:37 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Want to Migrate job DataStage 4.0 to Datastage 7.5
Replies: 6
Views: 2484

Version 5 had memory constraints of limiting the routine arguments. Due to this, there was a routine written to check any issue routines and provide to list.

As long as you do not have any trouble-creating routines, you must be ok.
by Sainath.Srinivasan
Fri Oct 01, 2010 9:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: occurring problem
Replies: 13
Views: 6612

chulett wrote:Sai, re-read cuckoo's last post. I edited it slightly for clarity and to emphasis the points they were trying to make.
Craig,

I think the solution provided will work for
"Address (Occurs 3 Times)"
by Sainath.Srinivasan
Fri Oct 01, 2010 6:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: occurring problem
Replies: 13
Views: 6612

One method may be to parse the occurs into long strings using stage variable and pivot it. This is assuming that your max occurs is finite and managable. Something like NAME ADDRESS (Occurs 3 Times) Can be parsed in following steps 1.) stage variables svOccursPosition = index(inputString, "(Occ...
by Sainath.Srinivasan
Tue Sep 28, 2010 5:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: occurring problem
Replies: 13
Views: 6612

Does the cobol structure has a depending on clause associated with it ? If not, declare n address subset variables as placeholder. That must be enough whilst reading from the file. Assuming that your input has Address OCCURS 3 times and the datatype is CHAR (say 50 length), you can declare 3 variabl...
by Sainath.Srinivasan
Thu Sep 23, 2010 7:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generate portfolio id
Replies: 10
Views: 3491

To obtain valid feedback using datastage macros of datastage, the commit must be controlled. That will slow down the performance.