Search found 53125 matches

by ray.wurlod
Sat Mar 25, 2006 1:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Invalid Arguments when run from command line
Replies: 10
Views: 2046

The thing you need to invoke from the command line is a job sequence that reads the parameter file then uses the results from that to provide parameter values to job activities that are downstream in the job sequence.
by ray.wurlod
Fri Mar 24, 2006 5:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Extract COBOL file data using CFF
Replies: 7
Views: 4307

Pre-process the file by reading it as a single column (or maybe two, if the record type is in the first position), using a Transformer stage to split the stream according to record type.
There are various techniques for preprocessing EBCDIC to ASCII.
by ray.wurlod
Fri Mar 24, 2006 5:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Invalid Arguments when run from command line
Replies: 10
Views: 2046

Given that you're picking up the parameter setting arguments with $* are you correctly specifying them as "-param name=value" when invoking your script? Your shift command will move the parameter list to the left. So you lose the parameter file first. Probably not what you wanted. (Add echo statemen...
by ray.wurlod
Fri Mar 24, 2006 5:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: getting year from date
Replies: 7
Views: 1101

Code: Select all

Left(Oconv(InLink.TheTimeStamp, "MCN"), 4)
by ray.wurlod
Fri Mar 24, 2006 5:00 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transformations
Replies: 1
Views: 444

You set up derivation expressions for the three columns. They will be based on the If..Then..Else logic you have described. For example STS is derived as something like If InLink.STS = "N" Then If InLink.UserID = "Pesft" Then "Y" Else If InLink.UserID = "etlsot&quo...
by ray.wurlod
Fri Mar 24, 2006 4:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: What timing use in deadlock
Replies: 1
Views: 666

The deadlock daemon does not "block" anything. It wakes periodically (this is its "time" setting) to check whether there are any deadlocks in the Repository. Note that it does NOT check for deadlocks in your database servers. A secondary task performed by the deadlock daemon is to clean up any locks...
by ray.wurlod
Fri Mar 24, 2006 4:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Multiple source files single ETL
Replies: 33
Views: 8464

Welcome aboard. :D Your question suggests some unfamiliarity with job parameters. If you define a job parameter, then you can use a reference to that job parameter (surrounded by "#" characters) in your sequential file stage. However, this would only let you process a single file. To process multipl...
by ray.wurlod
Fri Mar 24, 2006 4:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Slow Start on Certain Jobs
Replies: 3
Views: 765

The clock starts running right away, but rows may not. Before any rows can be processed, all files need to be opened, connections must be made to all database servers, SQL must be prepared by those servers, and any before-job (and maybe before-stage) subroutine and/or job control code executed. The ...
by ray.wurlod
Fri Mar 24, 2006 4:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generate row count.
Replies: 15
Views: 3316

@INROWNUM gives the true row number of the input stream. If you split this (for example with a Link Partitioner) then the only way you can guarantee contiguous numbers at the end is to make sure your collection algorithm (in a Link Collector) preserves sorting by row number. Alternately you could in...
by ray.wurlod
Fri Mar 24, 2006 4:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing parameter out of datastage job
Replies: 21
Views: 34623

Create a routine that passes its argument unchanged but also loads it into the user status area.

Code: Select all

FUNCTION UpdateUserStatus(Arg1)
Call DSSetUserStatus(Arg1)
Ans = Arg1
RETURN(Ans)

Pass your value through this function during its derivation.
by ray.wurlod
Fri Mar 24, 2006 4:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Update previous record based on current
Replies: 5
Views: 2436

The previous record has already been processed when you are processing the current record, and therefore can not be edited other than in a second pass through the data or some form of intermediate storage that can be updated (for example a UV stage).
by ray.wurlod
Fri Mar 24, 2006 4:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Jobs aborted in the middle of dataloading into warehouse
Replies: 6
Views: 2383

Did the 5000 rows actually make it into the target table? Or did the entire transaction roll back? Do you use a staging area of any kind between your ETL and your actual load process?
by ray.wurlod
Fri Mar 24, 2006 4:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Practical Examples/tests to train new resource
Replies: 4
Views: 1275

We don't do "urgent". This is an all volunteer site. No-one is paid for the time they spend posting here. No-one. If you want urgent answers, buy premium support from your support provider. Those who do provide examples of the kind you seek usually do so within the context of their own training pack...
by ray.wurlod
Fri Mar 24, 2006 4:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Concurrently Accessing the Same Routine.
Replies: 8
Views: 2624

OpenSeq will take its Else clause if the file being opened does not exist. You are unconditionally aborting in this case. You probably do not want to do this; check the Status() function to determine whether the sequential file is, in fact, opened for writing in the Else clause. Find a generic seque...
by ray.wurlod
Fri Mar 24, 2006 4:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error in logging on the Project
Replies: 5
Views: 1307

Make sure both groups of users have their umask set to 002.
Run DS.REINDEX ALL on the project.