Search found 53125 matches

by ray.wurlod
Sun Feb 14, 2016 2:40 am
Forum: General
Topic: Clear the log from commadline based on number of days
Replies: 1
Views: 706

CLEAR.FILE is absolute. ALL records are removed from the file.

Every log event has a TIMESTAMP field so you could use a DELETE statement constraining on that.
by ray.wurlod
Thu Feb 11, 2016 3:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting StringToDecimal and back DecimalToString
Replies: 9
Views: 4175

To add to what Craig said, if you need the intermediate value, park it in a stage variable.

Can you tell us why you have to avoid stages in the job? Not just because "they" told you to, but their actual technical reason behind that directive.

Never be afraid to ask "why?"
by ray.wurlod
Thu Feb 11, 2016 3:25 pm
Forum: IBM QualityStage
Topic: Does AVI populate any Time Zone information in output field?
Replies: 13
Views: 7781

I don't believe so.
by ray.wurlod
Thu Feb 11, 2016 12:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Challenging design problem
Replies: 9
Views: 3353

I think the easiest solution is to use a loop in a Transformer stage to extract each of the delimited components from Business_Rule. This output can then stream into a Lookup stage to effect the conversions.
by ray.wurlod
Wed Feb 10, 2016 11:47 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Challenging design problem
Replies: 9
Views: 3353

rkashyap wrote:What is the source of the ComponentValue and BusinessRule file?
How big is the ComponentValue file?
Which flavor of Unix are you using?
Why do any of those matter?
by ray.wurlod
Wed Feb 10, 2016 9:20 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Restructuring of data
Replies: 2
Views: 1204

Begin by sorting the data by app_id then by id.
Then use stage variables to detect change of app_id (new group) and to process adjacent pairs of rows.

Note that there is no "look ahead" in DataStage - but you can always sort in reverse order!
by ray.wurlod
Wed Feb 10, 2016 4:19 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: input Column 0 value to NULL in target
Replies: 4
Views: 2159

Makes no difference to what Craig suggested.

You'll need to convert the string to a date if it's valid, otherwise set the value to null. Do these things in a Transformer stage.

Something like:

Code: Select all

If (IsValid(InLink.TheString, "date")) Then StringToDate(InLink.TheString) Else SetNull()
by ray.wurlod
Wed Feb 10, 2016 4:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Address verification interface on grid
Replies: 8
Views: 3732

And have you checked that one or both of these environment variables is set for the executing user? (Tip: the second event in the job log will display environment variable values.)
by ray.wurlod
Wed Feb 10, 2016 4:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Label Value Processing
Replies: 1
Views: 811

So, ignoring the header for the moment, all you really need to do is to process label/value pairs. This is very similar to processing name/value pairs (for example in Hadoop) so should be very straightforward. Use stage variables to capture the values from the header rows to build your record struct...
by ray.wurlod
Wed Feb 10, 2016 2:06 am
Forum: General
Topic: Jobs Runtimes
Replies: 3
Views: 1806

Yes. The Operations Console is your management console for DataStage workload management. You can be as clever as you like with the queues.
by ray.wurlod
Wed Feb 10, 2016 2:04 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Delimiter issue in file
Replies: 1
Views: 984

Replace Delimiter property with Delimiter String property.
by ray.wurlod
Tue Feb 09, 2016 4:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Address verification interface on grid
Replies: 8
Views: 3732

What error messages do you see? Have you properly provisioned all the required components?
by ray.wurlod
Tue Feb 09, 2016 4:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Challenging design problem
Replies: 9
Views: 3353

At least three solutions exist. What have YOU tried?
by ray.wurlod
Tue Feb 09, 2016 4:20 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Null handling for CHAR + nullable field
Replies: 8
Views: 3711

Augmenting what Andy said, DataStage requires that the Null Field Value have the same length as a Char data type field. You can get around this by declaring it to be VarChar, and sorting it out afterwards.
by ray.wurlod
Tue Feb 09, 2016 4:16 pm
Forum: General
Topic: Prorammatically create a parallel job
Replies: 2
Views: 1309

It would probably be far easier to create the equivalent osh script (for sufficiently simple transformation rules that could be processed by a modify operator).