Search found 53125 matches

by ray.wurlod
Fri Jun 11, 2004 7:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: create a time dimention table
Replies: 2
Views: 1241

You've elected to have a very limited time dimension table with day as its granularity. All you need to do is to generate a file with the base dates (in external or internal format), then run this through a Transformer stage to generate the key and the hierarchy (week, month, quarter, calendar year,...
by ray.wurlod
Fri Jun 11, 2004 7:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: KeyMgtGetNextValue
Replies: 5
Views: 2043

There's no hierarchy. The ODBC/OCI stage (or any other SQL database stage types) selects a single column, derived as MAX(columnname), from the database table. This is loaded into a hashed file as not-the-key-column, the key column in the hashed file being the table name (probably a job parameter).
by ray.wurlod
Fri Jun 11, 2004 7:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem Concatenation
Replies: 9
Views: 2408

Depending on what you want to do, it may be sufficient to write to two files, then use the cat command to append the second to the first. On the other hand, if you want to append columns from one file to each row in the first file, then what you need is the Merge stage . The Merge stage performs var...
by ray.wurlod
Fri Jun 11, 2004 7:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with XML reader
Replies: 1
Views: 1008

I can only see two DEPTNO tags in your XML. This might explain why there are only two output rows, since DeptNo is a column. Also, should the DNAME tag precede the closing /DEPT tag?
by ray.wurlod
Fri Jun 11, 2004 7:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: TIme calulation
Replies: 7
Views: 2170

Eons ago I posted a function to calculate the interval between two timestamps. Search for it. If you can't find it I'll try to dig it out of my archives!
by ray.wurlod
Fri Jun 11, 2004 7:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: AS400 - Import MetaData
Replies: 9
Views: 6663

You can test your theory with the DS_CONNECT utility from the UV command prompt.
by ray.wurlod
Fri Jun 11, 2004 7:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get Project's Environment variable.
Replies: 10
Views: 3757

The Lookup stage is for parallel jobs.
The original poster specified server jobs, and the desire to view the value of environment variables from the UV command prompt.
by ray.wurlod
Fri Jun 11, 2004 6:56 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Controller problem
Replies: 22
Views: 7554

To summarise thus far, your controlling job generated the error J0BlaSrc..JobControl (@J3BlaSrc): Controller problem: Error calling DSAttachJob(J3BlaSrc) (DSGetJobInfo) Failed to open RT_STATUS1886 file. (DSOpenJob) Cannot open job J3BlaSrc - not a runnable job We have eliminated the open dynamic ha...
by ray.wurlod
Fri Jun 11, 2004 6:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Timed out while waiting for an event
Replies: 5
Views: 4375

Quick first thoughts are to monitor the system to see whether you are running out of some critical resource. For CPU monitor %Idle (very low is bad), for memory monitor PF/sec (high is bad), for physical disk I/O monitor IO/sec (high is bad). You could also check whether you're running out of slots ...
by ray.wurlod
Thu Jun 10, 2004 11:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get Project's Environment variable.
Replies: 10
Views: 3757

ENV is a TCL-level command that displays all currently-set environment variables. You can also use its long form, ENVIRONMENT . On Windows it is equivalent to the DOS /C set command while on UNIX it is equivalent to the SH -c set command. There is nothing in the operating system to distinguish whet...
by ray.wurlod
Thu Jun 10, 2004 7:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get Project's Environment variable.
Replies: 10
Views: 3757

Create a job that does anything (even just X = 0 in Job Control will suffice). Create a before-job subroutine using ExecTCL to execute the ENV command. The environment variables will appear in the job log. If you have a recent enough version of DataStage, you don't even need to do this. Each time yo...
by ray.wurlod
Thu Jun 10, 2004 6:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: can a batch return a value?
Replies: 4
Views: 1363

Each batch can "see" the other's user status area. You could use this variable for communication. It persists even after the batch has finished.

Use DSSetUserStatus() function to assign a value to the user status area, and DSGetJobInfo(hJob, DSJ.USERSTATUS) to retrieve it.
by ray.wurlod
Thu Jun 10, 2004 6:53 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading datastage log files in unix
Replies: 4
Views: 6761

You could create a DataStage job to dump the requisite contents from DataStage job logs into, for example, delimited text files. You could then create a job control routine to process a particular selection of jobs in the project (maybe all of them, maybe just the ones with a status of DSJS.RUNWARN,...
by ray.wurlod
Thu Jun 10, 2004 6:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: need suggestion on using Transformer stage?
Replies: 9
Views: 2705

If you design a server job with a link joining two passive stages, compiling the job causes an invisible "identity Transformer" stage to be used. While this is not visible in Designer palette, you will get an "active stage finishing" message from it in the log. Active stages are the ones that issue ...
by ray.wurlod
Thu Jun 10, 2004 6:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Controller problem
Replies: 22
Views: 7554

Having eliminated T30FILE as a contender, we now need to investigate whether there's really a problem with the status file RT_STATUS1885. Open a TCL prompt or Administrator client window into the project, and issue a query on it, for example COUNT RT_STATUS1886 or (if you prefer SQL) SELECT COUNT(*)...