Search found 53125 matches

by ray.wurlod
Tue Mar 08, 2011 4:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Integer and Timestamp
Replies: 1
Views: 947

Welcome aboard. The default value is whatever you set it to. There is no default default except in very specific circumstances such as when the field is null and you try to load it into a non-nullable field. You can construct your own test to learn what values are used in these cases.
by ray.wurlod
Tue Mar 08, 2011 4:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: What are the active and passive stages in data stage?
Replies: 4
Views: 2383

Active stages are those whose active/passive property is "active", passive stages are those whose active/passive property is "passive".

When's the interview?
by ray.wurlod
Tue Mar 08, 2011 4:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: AIX vs Win environment?
Replies: 4
Views: 1756

Welcome aboard.

AIX on hardware suitable for Windows may struggle - it's designed for (what I'm guessing are) larger systems than the typical Windows box. Why not consider Linux?
by ray.wurlod
Tue Mar 08, 2011 4:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date Conversion
Replies: 15
Views: 7976

abhilashnair wrote:will iconv() oconv() work in this case ?
These functions belong in server jobs or BASIC Transformer stage. They are extremely clever at handling date formats, but are not available in the parallel Transformer stage.
by ray.wurlod
Tue Mar 08, 2011 4:46 am
Forum: General
Topic: Jobstatus parameter in Transformer
Replies: 3
Views: 2810

JobStatus is a DataStage macro, and therefore a reserved word. The macro will be expanded when you compile the expression, almost certainly causing syntax errors. Choose a different name.
by ray.wurlod
Mon Mar 07, 2011 10:30 pm
Forum: General
Topic: How to Alter User defined variables within a sequence
Replies: 10
Views: 11530

Can you cite this reference? Have you challenged IBM with it? I can certainly see how it can be done with a user-defined STAGE variable, but not with a User Variables activity. Unless, of course, the User Variables activity invoked a function such as the one I supplied, or one of the key management ...
by ray.wurlod
Mon Mar 07, 2011 10:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date in file name : Logic to abort.
Replies: 10
Views: 2843

Based on ur description ... you can handle this in unix itself ... file_name=filenanme_ddmmyyyy date=passed_date grep $date $file_name rc=? if $rc = 0 rundsjob OR exit 0 and run the ds job separately from scheduling tool else print " wt ever " exit 1 Additionally you can use cut command t...
by ray.wurlod
Mon Mar 07, 2011 9:44 pm
Forum: General
Topic: How to Alter User defined variables within a sequence
Replies: 10
Views: 11530

Use this routine inside the loop rather than a user variables activity. FUNCTION GetCounter(aValue) * Argument is ignored but must be supplied. * Returns 1 the first time invoked, 2 the second time, and so on. COMMON /GetCounter/TheCounter Ans = TheCounter + 1 TheCounter = Ans RETURN(Ans)
by ray.wurlod
Mon Mar 07, 2011 9:39 pm
Forum: General
Topic: How to Alter User defined variables within a sequence
Replies: 10
Views: 11530

No, there's no bug, it's doing precisely what you ask. Look at it in BASIC code:

Code: Select all

x = 1
Loop
While some_condition
   y = x + 1
Repeat
y can only ever be x + 1, and x is unchanging.
Now answer my question about it being a counted loop or not.
by ray.wurlod
Mon Mar 07, 2011 9:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date in file name : Logic to abort.
Replies: 10
Views: 2843

Not if you need the job to abort.

If you don't need the job to abort, but only to process rows for which the date matches, then go with the single output link.
by ray.wurlod
Mon Mar 07, 2011 8:42 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle Connector Stage Parameter Issue
Replies: 6
Views: 4244

None of which addresses the question of using more than one parameter reference in the SQL statement.
:roll:
by ray.wurlod
Mon Mar 07, 2011 8:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date in file name : Logic to abort.
Replies: 10
Views: 2843

Constrain the output from the Transformer stage such that the incoming date field is equal to the parameter value. Create an extra output from the Transformer stage. Mark this as Otherwise/Log and set a row limit on it of 1. The first mismatch will cause your job to abort. I really don't like writin...
by ray.wurlod
Mon Mar 07, 2011 8:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date in file name : Logic to abort.
Replies: 10
Views: 2843

Suddenly we're in a Transformer stage. So you intend to check the file name for every row you process? Where is the source of this "incoming date field"? Why do you want to abort the job?
by ray.wurlod
Mon Mar 07, 2011 8:20 pm
Forum: General
Topic: Command for reseting jobs if required and the execute
Replies: 4
Views: 1813

No, this is only available in sequences.

However you could script dsjob -jobinfo to determine the job's status then dsjob -run -mode RESET if necessary then dsjob -run -mode NORMAL to actually run the job. (Option -mode NORMAL can be omitted.)
by ray.wurlod
Mon Mar 07, 2011 8:17 pm
Forum: General
Topic: Problem using commands for controlling Datastage Jobs
Replies: 7
Views: 3551

You need the -jobstatus option, which causes the exit status of dsjob to be the exit status of the job itself (1 = OK, 2 = Warnings, 3 = aborted and so on). Use -jobstatus instead of -wait option.