BASIC Transform vs Transform

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
rwierdsm
Premium Member
Premium Member
Posts: 209
Joined: Fri Jan 09, 2004 1:14 pm
Location: Toronto, Canada
Contact:

BASIC Transform vs Transform

Post by rwierdsm »

Folks,

While reviewing an existing job in EE, I'm trying to determine if the transforms on the canvas are BASIC or not. There is nothing in the properties that indicates the type. They don't appear to be using any BASIC routines, yet there is no 'fan' symbol on either the input or output link.

Is there any quick, decisive way of determining whether a transform is BASIC or not?

Rob
Rob Wierdsma
Toronto, Canada
bartonbishop.com
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A quick way might be simply to open an Expresion Editor to see whether BASIC functions, such as Iconv() and Oconv() are there.

If you want to track it down in DS_JOBOBJECTS, you will see that the different stage type objects are instantiated from different classes.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
thompsonp
Premium Member
Premium Member
Posts: 205
Joined: Tue Mar 01, 2005 8:41 am

Post by thompsonp »

Rob,

I have never used a BASIC transformer in a parallel job, although I thought it was possible.

However, having just tried it in version 7.5.1 the 'Server' transformer is greyed out in the palette of a Parallel job.

Therefore I imagine the easiest way to tell is to look at what job type you are in (top left of canvas).

If you do manage to get both transformers in a Parallel job (please say how it's done) you certainly can't rely on the 'fan', which indicates data is being partitioned. This symbol will change if you set a stage to have different execution mode in the 'Advanced' tab (it can also change if you similarly edit the stage either side of it).

You can look in the tabular output grid of the transformer and you'll see that a 'Server' transformer has a couple of extra fields called Display and Data Element.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

thompsonp wrote:However, having just tried it in version 7.5.1 the 'Server' transformer is greyed out in the palette of a Parallel job.
Server Transformer stage != PX BASIC Transformer stage. Two different things. Problem is all three use the exact same icon on the palette from what I recall.

And you have to specifically add it to your palette, probably via the 'Customize' option, but I don't have PX access and don't recall the specifics right now.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You don't have to add it to your Palette unless you want it there. You can use it directly from the Stage Types branch of the Repository.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

True... but who drags stages from there? :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Folks using 7.5x2 clients to access 7.5.1A servers, for which combination the Palette is horked.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Huh... interesting. Tanks.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rwierdsm
Premium Member
Premium Member
Posts: 209
Joined: Fri Jan 09, 2004 1:14 pm
Location: Toronto, Canada
Contact:

Post by rwierdsm »

thompsonp wrote:You can look in the tabular output grid of the transformer and you'll see that a 'Server' transformer has a couple of extra fields called Display and Data Element.
OK,

I created a parallel job where I use both a BASIC transformer and a normal transformer. When I open the properties, indeed, the BASIC xfm has the two extra columns in the metadata grid.

I guess we can state a rule-of-thumb that if you see the Display and Data Element columns in the metadata grid of a xfm in parallel, be warned, you are dealing with a BASIC xfm, be aware of the implications of having this stage in your job.

Thanks for the input folks! :)

Rob
Rob Wierdsma
Toronto, Canada
bartonbishop.com
gsherry1
Charter Member
Charter Member
Posts: 173
Joined: Fri Jun 17, 2005 8:31 am
Location: Canada

Post by gsherry1 »

be warned , you are dealing with a BASIC xfm, be aware of the implications of having this stage in your job.
The only implications I'm aware of are:
1.) Your limited to the Server edition's Pseudo-Basic 4GL, and cannot access the new functions from Parallel.
2.) Not guranteed to work on MPP architectures.
3.) You may experience timeouts that may require to increase DSIPC_OPEN_TIMEOUT. I think this has something to do with the way Orchestrate engine communicates to the Basic Transform.

Are their others?

- Greg
rwierdsm
Premium Member
Premium Member
Posts: 209
Joined: Fri Jan 09, 2004 1:14 pm
Location: Toronto, Canada
Contact:

Post by rwierdsm »

Both types of transform stage are slower, with the BASIC being, in most cases, the slower of the two (overhead of BASIC vs overhead of C++).
Rob Wierdsma
Toronto, Canada
bartonbishop.com
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not so much "overhead of BASIC" as "overhead of translation into and out of BASIC (typeless) environment from the C++ (strongly typed)envionment".

It is likely that this overhead will cause perceived slowness in server jobs in Hawk, because the same transitions need to occur (everything operates in the parallel environment). The vendor will be unsympathetic and suggest that you migrate to parallel jobs to take advantage of the bright, shiny and (above all?) IBM-logoed product.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Chuah
Participant
Posts: 46
Joined: Thu May 18, 2006 9:13 pm
Location: Melbourne

Post by Chuah »

ray.wurlod wrote:Not so much "overhead of BASIC" as "overhead of translation into and out of BASIC (typeless) environment from the C++ (strongly typed)envionment".

It is likely that this overhead will cause perceiv ...
If I use the BASIC Transformer in my PX jobs ,does that mean then I'll lose the parallelism within the job ?

Pls advise.
SriKara
Premium Member
Premium Member
Posts: 30
Joined: Wed Jun 01, 2005 8:40 am
Location: UK

Post by SriKara »

If I use the BASIC Transformer in my PX jobs ,does that mean then I'll lose the parallelism within the job ?
IMHO,
By using a BASIC Transformer, you wont lose the parallelism. The BASIC transformer stage will be simply run as those no.of instances as the no.of nodes.

Folks, correct me if i am missing something.

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

Post by ray.wurlod »

The BASIC Transformer stage requires the presence of DataStage server software. In an SMP environment (share everything) this is not a problem, but in an MPP environment there will be issues unless DataStage server software is installed on every machine. Can I be your sales rep?!!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply