Search found 53125 matches

by ray.wurlod
Thu Feb 12, 2004 3:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Questions about subroutine
Replies: 8
Views: 1612

Hmmm... hmmm... hmmm... patiently waits for Ray to whack Ken with the same stick he whacked me with [taps foot] One can get away without bullet-proofing routines, because JOBCONTROL.H is never (up to version 7.0 anyway) automatically defined/included in user-written Routines. I still put the check ...
by ray.wurlod
Thu Feb 12, 2004 3:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Connection to DataStage over Wide Area Network (WAN)
Replies: 5
Views: 1812

Also, make sure that all your jobs are in categories.

At one site I worked at there were hundreds of jobs not in categories. They all had to be loaded every time the Jobs part of the repository tree view was selected. :cry:
by ray.wurlod
Thu Feb 12, 2004 3:39 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage Licensing
Replies: 5
Views: 2166

When clients are logged in, take a look at the contents of the DS_LICENSE hashed file in the UV account.

Code: Select all

LIST.ITEM DS_LICENSE

These records' keys are also visible in the LIST.READU output, but it's the other fields that I think you'll find interesting given that you want to know how it works.
by ray.wurlod
Thu Feb 12, 2004 3:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Edditing DS Macros
Replies: 26
Views: 8713

I realized that I wasnt actualy using the parramiter that I had available to me so I did, but I would still like to know how to add a paramiter to a before/after routne Jim If you want to use a job parameter in a before/after subroutine, you can do it the same way as in a job control routine. That ...
by ray.wurlod
Thu Feb 12, 2004 3:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: SourceFile name as my Domain(Key)
Replies: 4
Views: 1787

You can get the file names with a Folder stage, or in Job Control code. You can extract everything to the left of the first underscore using the Field() function. For example: Field(filename, "_", 1, 1) In job control code, you would open the directory as if it were a table (using ...
by ray.wurlod
Thu Feb 12, 2004 3:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Log
Replies: 8
Views: 2383

You can set this up with auto-purge. In director, choose the Job menu, then Clear Log. Instead of choosing immediate purge, choose to enable auto-purge. This opens the auto-purge options frame, in which you can set "clear up to last run". Director will ask you to confirm that you want to override th...
by ray.wurlod
Thu Feb 12, 2004 3:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Importing PDF's into SQL Database
Replies: 4
Views: 1157

I second Ken's remarks. :idea:

If you must do it, pre-encode it with something that converts it to a text-compatible encoding, use Sequential File stages, don't attempt to transform it, and decode the resulting text file prior to bulk loading into SQL Server. Yuk.
by ray.wurlod
Thu Feb 12, 2004 3:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Export Table Definition
Replies: 3
Views: 1135

Adding to Roy's point, the CREATE TABLE statement (which can be captured from the stage type) is only part of the story. There is always the setting up of the physical storage (and, depending on the database, logical storage too) which is an implicit part of getting best performance from the databas...
by ray.wurlod
Thu Feb 12, 2004 3:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Connection to DataStage over Wide Area Network (WAN)
Replies: 5
Views: 1812

The other problem with a WAN is that there are many potential points of failure, any one of which can lead to a "connection is broken" (81002) error occurring and your having to re-start the client. Sometimes a dedicated dialup line may prove to be a more viable solution even if notionally slower. D...
by ray.wurlod
Thu Feb 12, 2004 3:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: job parameters
Replies: 7
Views: 3057

Re: job parameters

Hi Can anyone explain the purpose of job parameters, why and how they are used ... Thanks In a word, insurance. Insurance against changes between environments (development, test and production); things such as data source names, pathnames and so on. Insurance against things that change over time; t...
by ray.wurlod
Thu Feb 12, 2004 3:00 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: 64BIT Hashed Files
Replies: 27
Views: 8641

A final thought on this topic. If you call the UVFIXFILE command above through DSExecute, the exit status will be 0 in the case of success and non-zero (probably -1) otherwise. So, if you need to test for 64-bit from BASIC, this is an easy solution. * This code relies on the fact that there's no res...
by ray.wurlod
Thu Feb 12, 2004 2:55 pm
Forum:
Topic: regarding surrogate generation in parellel jobs
Replies: 2
Views: 1775

What do you mean by "surrogate key" based on two columns? Are you saying that the natural key contains two columns? The surrogate key itself, of course, need only occupy one column; it's an artificial value with no inherent meaning, used only to guarantee uniqueness. That you've included "based on" ...
by ray.wurlod
Thu Feb 12, 2004 2:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Operator in PX?
Replies: 9
Views: 5818

I noticed that you specified 5.x as your DataStage release.
If that's true, you don't have PX at all! :?
by ray.wurlod
Wed Feb 11, 2004 7:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Edditing DS Macros
Replies: 26
Views: 8713

There's no need to edit the macro definitions. You can simply override them with newer macro definitions of your own. The newer $DEFINE will replace the older.
In your case, leave out the $IFNDEF that tests whether it is already defined (and its corresponding $ENDIF of course).
by ray.wurlod
Wed Feb 11, 2004 7:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Edditing DS Macros
Replies: 26
Views: 8713

You need to add this at the top of the routine to get it to compile: $INCLUDE DSINCLUDE JOBCONTROL.H Also note that your error will never get passed out if there's a problem. You need to add an 'else' in there. It's better (more "bullet proof") to guard against redefinition of constants. The token ...