I am using a mailx command in informatica powercenter command task. Requirement is to use the content of a file that gets generated with every workflow run, as subject of the email. Issue is subject is a sentence and my command captures only the first word in that sentence stopping at the space. How to overcome this? Is there an alternate way to achieve this?
Sample content of the subject file that gets generated is something like this: testSub="Today is Saturday"
command used in the command task:
. /Targetdirectory/subject.txt; cat /Targetdirectory/Filename.txt |mailx -s $testsub [email protected]
When I receive the email, subject shows up as "Today"
Thanks
Put $testSub in quotes.