Search found 53125 matches

by ray.wurlod
Fri Oct 15, 2004 5:51 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Issue with Iconv & Oconv
Replies: 8
Views: 7539

You do not have to specify formatting with Iconv; it's very clever. But you must get the day-month-year order correct. Oconv(Iconv(TheDate, "DDMY"), "D/MDY[Z,2,2]") You may find Date Conversion Demystified an interesting summary. Beware, too, of the CENTURYPIVOT r...
by ray.wurlod
Fri Oct 15, 2004 5:43 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: COMMON Variables
Replies: 2
Views: 825

A variable defined in COMMON is only available in one process. In version 5.x and 6.x, two Transformer stages joined by a link would run in a single process (DSD.StageRun), that invoked the subroutine for each in turn. My guess is that you have enabled row buffering in your 7.x version of the job, w...
by ray.wurlod
Fri Oct 15, 2004 5:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Best Practice
Replies: 4
Views: 2441

Is there an easy way to detect changes in the source databases? If so, then DataStage can run periodically to detect these and process those rows very easily. For example, the SELECT statement generated by DataStage could include a constraint on the LAST_UPDATED_DATE column selecting only rows updat...
by ray.wurlod
Fri Oct 15, 2004 5:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Cannot Insert new records into table!!!
Replies: 8
Views: 4285

The SQL is obviously of the form SELECT MAX( column ) FROM TABLE; You can create a DataStage job that collects this value, and writes it directly into the SDKSequences hashed file (the one used by the SDK Key Management routines) where the key value is defined as a constant in the Transformer stage....
by ray.wurlod
Fri Oct 15, 2004 5:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: ODBC Stage: Insert on 2 links; Transaction Size
Replies: 6
Views: 1049

Provide you've not enabled transaction groupings, the SQL statements executed on the two input links to an ODBC stage are independent of each other. You can prove this quite easily by enabling ODBC tracing then poring over the results, that very thick book the ODBC API manual in hand. Of course, if ...
by ray.wurlod
Fri Oct 15, 2004 5:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: View job log in batch job
Replies: 1
Views: 899

You will need to create a custom routine to build the full message body that you've specified, which can then invoke DSSendMail to send the email. The Notification Activity is quite limited - indeed it's just a fancy front end to the DSSendMail function; replace the Notification Activity with a Rout...
by ray.wurlod
Fri Oct 15, 2004 5:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage & MetaStage
Replies: 1
Views: 767

Is the listener running?
by ray.wurlod
Fri Oct 15, 2004 5:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Connection Fail in DataBase
Replies: 7
Views: 1989

Validate only is good immediately after deploying into production, as an extra check that DSNs, pathnames and passwords are all good. Unfortunately, since this can't be a parameter, it means deploying other than in read-only mode. I have my own mechanisms (a routine that mimics the way Version Contr...
by ray.wurlod
Fri Oct 15, 2004 5:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Audit trail for failed jobs (private message I got)
Replies: 1
Views: 720

In the given design, the name of the job executed by Activity1 is hard coded in Activity1 and could therefore just as easily be hard coded (as a string parameter value) in Activity3.
by ray.wurlod
Fri Oct 15, 2004 4:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using Folder Stage when there are multiple source files
Replies: 9
Views: 3701

1. Can you document what you want to achieve (not what you want to do with DataStage; what you want to achieve )? 2. Job parameter references need a trailing "#" character; your samples lack this. That is, you specify D:\test\#DataFile when you should be specifying D:\test\#DataFile# to use a job pa...
by ray.wurlod
Thu Oct 14, 2004 4:13 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to retrieve multiple rows via lookup?
Replies: 5
Views: 1576

It is possible, as dhiraj says, but only when the reference input link is fed from the ODBC and UniVerse stage types.
Open Help from Manager or Designer and open the topic called Defining Multirow Lookup for Reference Inputs
by ray.wurlod
Thu Oct 14, 2004 4:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unable to INSERT and UPDATE
Replies: 6
Views: 1725

Luckily for you, LEN(@NULL) returns zero! 8)
by ray.wurlod
Thu Oct 14, 2004 4:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Huge number of processes for single job
Replies: 11
Views: 3453

Arguably, given that the job runs OK in the development environment, the problem isn't in DataStage. You're going to need to put on your detective hat and aggressively determine anything that is different between the two systems. Don't take "nothing" as an answer from anyone. I'd be looking at thing...
by ray.wurlod
Thu Oct 14, 2004 3:56 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Aborting Job when a Semaphor is set
Replies: 9
Views: 2337

My solution to the "manual" approach was cited earlier: Of course, you need to ensure that any manually-run job as well as any automatically-run job updates DW_BATCH_CONTROL when it starts and when it ends. I normally ensure this with standard before-job and after-job subroutines. Typically these ro...
by ray.wurlod
Thu Oct 14, 2004 3:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Execute Stored Procedure at ODBC stage
Replies: 7
Views: 3248

There is a Tutorial that comes with DataStage. If you work through this you will obtain at least a fundamental understanding of how to design and execute DataStage jobs.