how to call unix script with project level parameters

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Your requirement is bit unclear for me. Maybe that is because you are discussing more than one issue.

How are you calling your Unix script from DataStage ?

Is it a before/after routine or from sequence ? If it is from sequences, you can use convert function to change '\' to '/'.

How are you using the directory names ? Hope you are concatenating the filename after the directory. If so, you can suffix an extra dot ('.') to the directory name. Something like'

"ksh yourScript " : $scriptDir : ". " : $logDir : ". "

This way, the last char will not be a back-slash.
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

I think one of the slashes in the TR command need an escape character..
Post Reply