Can we call UniX Scripts in Jobs(Not in Sequence)

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
laknar
Participant
Posts: 162
Joined: Thu Apr 26, 2007 5:59 am
Location: Chennai

Can we call UniX Scripts in Jobs(Not in Sequence)

Post by laknar »

Hi,

Can we call UniX Scripts in Jobs? i.e Transformer Stage

if IsNull(A) then SetNull()

Instead of the above condition can we use

NullToValue(A,NULL).

Please suggest me.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

NullToValue is not a UNIX script.

Can you be more precise about your requirement? In particular do you wish to invoke the UNIX command once per run or once per row?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
laknar
Participant
Posts: 162
Joined: Thu Apr 26, 2007 5:59 am
Location: Chennai

Post by laknar »

Hi Ray,

two doubts one is regarding Null Handling.
Another is UNIX Script in Jobs both in row level and One time execution.
Please suggest me.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You ought to ask the question - a specific question please - about NULL handling in a different thread. We stick to "one thread, one question" to make it easier on future searchers.

Executing a UNIX script one time is done from a before-job or after-job subroutine, typically ExecSH or one of its derivatives (or you can write your own). The Input Arguments field takes the entire script command line; it can use job parameters, which will be resolved before the call is made.

Executing a UNIX script once for each line is not to be recommended because of the overhead of establishing and relinquishing a shell in which that script would run. It would be very, very slow.
However, if you insist, this is what the Wrapped stage is for. For more information find the relevant chapter in the DataStage Parallel Job Advanced Developer's Guide manual.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
OddJob
Participant
Posts: 163
Joined: Tue Feb 28, 2006 5:00 am
Location: Sheffield, UK

Post by OddJob »

You can also use the following stages as source, transform or target:

Source: External Source
Transform: External Filter
Target: External Target
Post Reply