Search found 53125 matches

by ray.wurlod
Fri Nov 21, 2014 3:01 am
Forum: General
Topic: DataStage Routine
Replies: 6
Views: 4700

No, I suspect you are populating Ans each time through the loop, and that the last line in the file is empty.

Try this.
Replace

Code: Select all

Ans = ParValue
with

Code: Select all

Ans<-1> = ParValue
Where does Name come from?
by ray.wurlod
Fri Nov 21, 2014 2:58 am
Forum: General
Topic: Designer Tools Customize Window
Replies: 2
Views: 1272

Tools > Customize is only about being able to add extra commands to the Tools menu. For example I can start DS Administrator from there, or Notepad.

In short, it works as documented.
by ray.wurlod
Thu Nov 20, 2014 8:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Tracking user id from which job has been run
Replies: 7
Views: 4102

Why, if you've "handed it over"? Doesn't it become their problem? :wink:
by ray.wurlod
Thu Nov 20, 2014 5:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Leading Zero in RCP Job
Replies: 14
Views: 11722

If it has to be integer, then you need to strip out the ".". The leading zeroes are not a problem.
by ray.wurlod
Thu Nov 20, 2014 3:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: "View data" shows data but job aborts
Replies: 6
Views: 3021

That'll do it. There is an explicit warning about special characters in passwords (including how to avoid problems when they're used by mapping to a special sequence such as __036__) in the documentation.
by ray.wurlod
Thu Nov 20, 2014 3:12 pm
Forum: General
Topic: DataStage Routine
Replies: 6
Views: 4700

Two points.

OPENSEQ has four possible clauses. The ON ERROR clause is taken in the event of system error, and the LOCKED clause is taken in the event that the file is open by another process.

You need a REPEAT statement to terminate your uncounted loop.
by ray.wurlod
Thu Nov 20, 2014 2:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Tracking user id from which job has been run
Replies: 7
Views: 4102

Add ExecDOS as a before-job or after-job subroutine and execute any Windows command that will identify the user (such as echo %USER%).
by ray.wurlod
Thu Nov 20, 2014 2:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: question about join/lookup
Replies: 3
Views: 2121

Join stage needs sorted inputs for efficiency. With sorted inputs it only needs to deal with a single key value at a time. Depending on your settings, if you don't sort your data DataStage will insert a tsort operator so that they are sorted (you can see this in the score). Lookup can't do right out...
by ray.wurlod
Thu Nov 20, 2014 12:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Leading Zero in RCP Job
Replies: 14
Views: 11722

Something clever in sed or awk, or a simple job/routine to parse the entire line, or abandonment of the requirement that everything has to be generic and RCP driven.
by ray.wurlod
Thu Nov 20, 2014 12:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help on designing Datastage Job
Replies: 4
Views: 2614

Get yourself a premium membership.

At less than 30c (Rs12) per day it's not expensive, and the revenue is devoted to the hosting and bandwidth costs incurred by DSXchange. So you're helping to keep the site alive.
by ray.wurlod
Wed Nov 19, 2014 7:43 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Performance issue with SQL Server
Replies: 8
Views: 4973

Any reason you're not using the bulk loader?
by ray.wurlod
Wed Nov 19, 2014 5:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Leading Zero in RCP Job
Replies: 14
Views: 11722

It may not look correct, but it IS correct.
by ray.wurlod
Wed Nov 19, 2014 5:23 pm
Forum: IBM QualityStage
Topic: Multiple variables not working
Replies: 14
Views: 8338

Check the classification of PVT. (It doesn't occur in USNAME out of the box, but PTY is classified as W.)
by ray.wurlod
Wed Nov 19, 2014 3:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help on designing Datastage Job
Replies: 4
Views: 2614

Build the target table name as a constant (perhaps using a Column Generator stage or a Transformer stage) upstream of the Lookup stage.

A generic approach might use a job parameter for the target table name.
by ray.wurlod
Wed Nov 19, 2014 3:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Leading Zero in RCP Job
Replies: 14
Views: 11722

They may be unnecessary (to you) but they're not wrong. What exactly is the problem?

DataStage puts them there driven by the precision and scale settings of the Decimal field.