Datastage-What is the escape character for # in execute command activity?

StackOverflow https://stackoverflow.com/questions/21122428

  •  28-09-2022
  •  | 
  •  

Pregunta

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.

¿Fue útil?

Solución 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.

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top