How to get rid of new line return in Datastage basic code
Posted: Tue Aug 05, 2008 8:47 pm
Hi all,
I've a shell script to get date from table, then print it to datastage.
In shell script the date returned is fine but when it went to datastage, it returned date follow by a new line. Thus making the child job inherit the parameter(date) to a null value. Suspect it takes value at the new line which is null.
I've tried trim, and substring but doesnt seem working anyway.
Is there any solution to get rid of newline returned?
Thanks in advance for your help.
agatha
I've a shell script to get date from table, then print it to datastage.
In shell script the date returned is fine but when it went to datastage, it returned date follow by a new line. Thus making the child job inherit the parameter(date) to a null value. Suspect it takes value at the new line which is null.
I've tried trim, and substring but doesnt seem working anyway.
Is there any solution to get rid of newline returned?
Thanks in advance for your help.
agatha