cannot create

i am creating a shell script to generate a file format. i want to register each and every activity in the log file.

here are the commands which i have given, Don't know why i am getting error.
v_log_loc="$APPLCSF/log"; export v_log_loc
v_logfile=${p_po_requestid}_LOG; export v_logfile

Please suggest if If i am missing something.

Echo all of the variable to either your screen or a temp file before / during / after you are setting them.

For example

rm my_vars 2>/dev/null
echo $APPLCSF >> my_vars
echo $v_log_loc >>my_vars
echo $p_po_requestid >>my_vars
echo $v_logfile >>my_vars

... etc...

Then, you can take a look at that my_vars file after script execution.

Also, not sure why you are using your syntax:

v_logfile=${p_po_requestid}_LOG

Then again, I do not know your specific variables or other settings.

i am using v_logfile=${p_po_requestid}_LOG so that my log file generated based on requestid passed. like if i pass 123 then my log file name will be 123_LOG.

thanks for reply. i am attaching my script which may have some minor issues. please suggest.

-------------------------------------------------------------------

why not the following?

v_log_loc="$APPLCSF/log"; export v_log_loc
v_logfile="$p_po_requestid"_LOG; export v_logfile

I have changed the same but i don't know the different b/w 2? do you know?

also log file is getting created but my sqlplus connection is failing. I have already attached the script in question. please suggest if i am missing something.