Wrapped Stage

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
beaulie01
Premium Member
Premium Member
Posts: 6
Joined: Wed Oct 01, 2003 9:24 am

Wrapped Stage

Post by beaulie01 »

Hi everybody,

I have two problems with the Wrapped Stage.

First problem
---------------

To explain my problem, I will take a very simple example:

I want to do an 'echo' UNIX command with a folder as an input parameter and put the result in an output file.
Example : echo /home

To do this, I put this in the Wrapped stage:

General panel
Command=echo

Properties panel
Property Name=l
Data Type=Sring
Prompt=Folder Input
Default Value=/home

If I choose
Conversion=-Value only
the result is 'echo'. That's not correct because I was supposed to have 'echo /home'.

If I choose Conversion=-Name Value
the result is 'echo -l /home'. That's correct!

It semms that the Value Only doesn't work properly! Why?

Second problem
-------------------

To explain the second problem, I will take the same example, but I want to take the folder parameter from an input file.

To do that, I put this in the Wrapped stage:

General panel
Command=echo

Properties panel
Property Name=l
Data Type=Input Column
Prompt=Folder Input
Default Value=
Conversion=-Name Value

Wrapped panel
Link=0
Table Name=MyTable (one column called Folder)
Stream=StandardInput

In my job, I have an sequential input file (with on column called Folder) and one record contains /home. This sequential file is connected to my wrapped stage.
In the properties panel of my wrapped stage, I put the Folder input column in the option.

When I run the job, the result is
'echo -l Folder'. That's not correct beceuse I was supposed to have 'echo -l /home'.

Help me please!
Thanks!!!

Eric
Post Reply