Question

What is the escape character for # in execute command activity? Well i was trying to replace one string in file with "#",but datastage treating # as job parameter and expecting the value to be assigned in datastage parameters.For that we need escape character for "#". I tried using \ and / as escape characters but none of them solved my problem. Thank You.

Was it helpful?

Solution 2

Use awk to replace the # sign, and you can use the octal character code for # in the regular expression:

!/^\043/

There is a thread in DSXchange that discusses this.

Here is a guide on escape sequences in AWK expressions.

A table with ascii codes, including a column for octal values.

OTHER TIPS

Just wanted to add that the actual answer to this question is: \043 The expression mentioned previously (!/^\043/) is related to the first link @Damienknight posted.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top