As is, it is neither a unix script, nor some code
, nor something bteq could use.
My guess would be, your 'script' looks like this (dismissed the lonely ` as typing error)
exec 1> $CODE/edlr2/logs/AGP_MBR_BTEQ_CSA_MBR_STG_LOAD_$(date +"%Y%m%d_%H%M%S").log 2>&1
echo "script file =" $0
PARM_FILE=$1
echo "parm file= "$PARM_FILE.parm
. $CODE/edlr2/scripts/$PARM_FILE.parm select name from customer;
As @Xander already guessed it would redirect output to a log-file and print info about script and logfile name and then execute the script $PARM_FILE.parm
with some parameters.
Further guessing, because BTEQ is mentioned in the name for the log file, in that .parm
script bteq may be used to execute a SQL-command which is passed to it as parameters.
bteq
needs a logon command. If that is added in the .parm
script, before the concatenated parameters, and that passed to bteq, you may get some meaningfull response.
Be aware, that the ;
at the end would never be passed to the script. The shell would take it as end of command
token. And the .parm
script would have to add the ;
too to construct a valied SQL-command.
Why a dot-command is used to execute a script, which is named .parm
is beyond my imagination.