Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONCSUB variable has a space

Status
Not open for further replies.

bgreen

Programmer
Feb 20, 2003
185
CA
How do I pass a variable into a consub which contains spaces???

I need to retain its form (like MACHNAM below), not to be broken up.

MACHNAM=THIS HAS A SPACE

Example:


CONCSUB ${FCP_LOGIN} XXCA 'CUSTOM INTERFACES' KRAMER WAIT=10 \
CONCURRENT XXCA XXCLICDLAA "${COMPANY}" "${TWO_TASK}" "${YYYY}" \
"${MACHNAM}" YES "${REMOTE_PATH}" > ${CONC_LOG}
 
Well the variable is set by a select stsement

MACHNAM=`sqlplus......`

How would you do it now?
 
VALUE=`sqlplus -silent user/password@instance <<END
set pagesize 0 feedback off verify off heading off echo off
select name from t1;
exit;
END`

 
That should be fine. What do you get if you echo "$VALUE" after that line?

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top