Hi All,
How can I call a sprintf command to read the following
selcmd1=sprintf("%s","echo select A_NUM=nullif\(A_NUM,\\\" \\\"\) R_DT=date\('2006/06/06'\) "\\\\ngo | " opt)
in other words the result must return like :
echo select A_NUM=nullif\(A_NUM,\" \"\) where R_DT=date\('2006/06/06'\) \\ngo | /sybase_oc/OCS-12_0/bin/isql
It it those " ' " that I cannot get right. Without those quotes, awk thinks and does mathematical sums.
I need those in order to do a date function in Sybase.
Please help
Many Thanks
Chris
How can I call a sprintf command to read the following
selcmd1=sprintf("%s","echo select A_NUM=nullif\(A_NUM,\\\" \\\"\) R_DT=date\('2006/06/06'\) "\\\\ngo | " opt)
in other words the result must return like :
echo select A_NUM=nullif\(A_NUM,\" \"\) where R_DT=date\('2006/06/06'\) \\ngo | /sybase_oc/OCS-12_0/bin/isql
It it those " ' " that I cannot get right. Without those quotes, awk thinks and does mathematical sums.
I need those in order to do a date function in Sybase.
Please help
Many Thanks
Chris