I need help with an export with query option. I have a script that includes the following
auddate=`date '+20%y%m%d'`
file="cal_shrlgpa"$auddate".dmp"
exp / file=$file tables=shrlgpa query\=" where shrlgpa_pidm in (Select sztahbr_pidm from purdue.sztahbr where sztahbr_to_extract\=\'Y\' and sztahbr_export_status\=\'N\')\"
echo 'cal export file created:'$file
when I run the script, I get the following error:
cal_export_tables.sh[7]: 0403-057 Syntax error at line 7 : `"' is not matched.
Can someone help me with the query option?
