1752570 Members
5281 Online
108788 Solutions
New Discussion

Shell Scripts

 
HECTOR COLUNGA
Occasional Contributor

Shell Scripts

I have a shell script emnedded with several SQL scripts. How can I pass a value to all of the SQL scripts requiring the same value? The attachment shows two SQL scripts embedded in a shell script. The social security number of a customer is requested twice. How can I pass this value to both SQL scripts by typing the number only once
1 REPLY 1
Rodney Hills
Honored Contributor

Re: Shell Scripts

Remove the second prompt. variable "ssn" will still hold it's value from the first prompt through the whole script.

HTH

-- Rod Hills
There be dragons...