Search found 15603 matches

by ArndW
Fri Jun 03, 2005 11:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Abort when Reject occurs during Upsert
Replies: 6
Views: 2206

How about the reject link going to a basic transform stage which simply calls

Code: Select all

DsLogFatal('My rejected row is "':In.Column1:' ':In.Column2,'MyJob')
Takes care of the logging and the abort.
by ArndW
Fri Jun 03, 2005 9:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Abort when Reject occurs during Upsert
Replies: 6
Views: 2206

Can you not run the reject through a transform stage and constrain the output of that transform to your sequential file at one row (plus you need to clear the cleanup flag in the sequential stage so that the file is not rolled back upon the abort).
by ArndW
Fri Jun 03, 2005 9:02 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: File Status
Replies: 3
Views: 1174

The command to execute from TCL is "ACCOUNT.FILE.STATS", and the shared memory analysis program is called from the unix shell in the {./dshome}/bin directory as "analyze.shm".
by ArndW
Thu Jun 02, 2005 10:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Getting required data from a string
Replies: 4
Views: 951

Code would be:

MyString[1,Index(MyString,':',ColumnNumber)-1]

or

Field(MyString,':',1,ColumnNumber)
by ArndW
Thu Jun 02, 2005 9:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to call a user def subroutine from another user def sub
Replies: 7
Views: 1649

Tony - no, you did explain it well; Devyani just missed it ;)
by ArndW
Thu Jun 02, 2005 9:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to remove the duplicate records
Replies: 10
Views: 2294

I would use three stage variables in the order as given

(a) CurrentValue = {current column or columns concatenated}
(b) SameAsLast = IF (LastValue = CurrentValue) THEN 1 ELSE 0
(c) LastValue = CurrentValue

And in your constraint put NOT(SameAsLast)
by ArndW
Thu Jun 02, 2005 9:38 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to call a user def subroutine from another user def sub
Replies: 7
Views: 1649

Devyani,

the DEFFUN statement just declares the function, you actually need to call it using

Code: Select all

x = LogMsgTransform(ParameterOne)
by ArndW
Thu Jun 02, 2005 8:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: File Format Problem (Urgent ) (Ray your help please)
Replies: 9
Views: 2069

Sanjay, remember that the issue is only urgent for you, not to any others on this forum - for urgent solutions you will need to go to your support provider. Be that as it may, Sainath has already showed you where to find your solution. In the sequential file stage of Px you have a number of choices ...
by ArndW
Thu Jun 02, 2005 8:24 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: File Format Problem (Urgent ) (Ray your help please)
Replies: 9
Views: 2069

Sanjay,

man, I'd love to help, but.... :shock:
by ArndW
Thu Jun 02, 2005 8:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: A somewhat odd question about parameters and environments
Replies: 2
Views: 724

Stefl, first off - the question isn't really an odd one; it is a subject that most of us have come up against in the past and/or will most likely encounter in the future. The most important part of ensuring a smooth transition of jobs between the environments is parameterization - without that you a...
by ArndW
Thu Jun 02, 2005 8:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to remove the duplicate records
Replies: 10
Views: 2294

Use a UNIX level sort (or if you really want to, use a sort stage) to sort your input data - optionally the sort program can and will remove duplicate records for you. If your data is sorted, then you can use a stage variable in a transform stage to compare the current record with the previously rea...
by ArndW
Thu Jun 02, 2005 8:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to compare two dates in DS format SQL.SMALLDATETIME
Replies: 6
Views: 1442

Since the format is yyyy/mm/dd you can do a simple string comparison, so your result of doing a ( '2000/01/01' > '1999/01/01' ) will return true. What is the condition you are testing - so that we might see why you state that it is wrong...
by ArndW
Thu Jun 02, 2005 8:03 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: High Values
Replies: 9
Views: 1914

I just tested to see if the EBCDIC(ASCII(high-value) works and it does, so I am not sure why you are getting this error. I'll have to see if I can just create a test file with high-values and a PIC X(7) column. Does each position have a high-value in your string, or just the first?
by ArndW
Thu Jun 02, 2005 7:41 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to compare two dates in DS format SQL.SMALLDATETIME
Replies: 6
Views: 1442

snassimr,

please explain how you are comparing them? If you do a "1999/02/02" = "2000/01/02" you are going to a get a 0 {wrong}. What are you trying to compare - their equality? Days between?
by ArndW
Thu Jun 02, 2005 7:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Settings for Sending Mails
Replies: 8
Views: 5918

Udayashankar,

what happens if you open a cmd window and execute the "d:\Ascential\DataStage\Engine\bin\dssmtpmail.exe -file sendmail_55685_593_file.tmp" command line?