Command Activity
Posted: Sat May 21, 2011 3:43 pm
Hi
I am trying to retrieve data from file using commmand Activity stage in datastage
Actually i have created file with 1 value.
And used cat <filename>
Displayed Output: 1 and showing extraline(Eg: 1
)
I tried checking with Len(that commandactivity_output). It is giving 2.
How can we extract only the value 1 using Command Activity stage as i am passing this value to parameter.
And This file is being created in Command Activity stage later this stage.
Thanks
Prasad
I am trying to retrieve data from file using commmand Activity stage in datastage
Actually i have created file with 1 value.
And used cat <filename>
Displayed Output: 1 and showing extraline(Eg: 1
)
I tried checking with Len(that commandactivity_output). It is giving 2.
How can we extract only the value 1 using Command Activity stage as i am passing this value to parameter.
And This file is being created in Command Activity stage later this stage.
Thanks
Prasad