<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calling sqlplus scripts from unix in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489351#M801040</link>
    <description>Hi brian,&lt;BR /&gt;I think the problem is, by calling those scripts, you reassign values to &amp;amp;1 &amp;amp;2 all the time. May be you schould print &amp;amp;1 &amp;amp;2 between those calls. I think it will show them destroyed after the second call.&lt;BR /&gt;&lt;BR /&gt;You schould save the values after the first call:&lt;BR /&gt;DEFINE P1 = &amp;amp;1&lt;BR /&gt;DEFINE P2 = &amp;amp;2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;and call your scripts with those variables.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Feb 2001 18:12:29 GMT</pubDate>
    <dc:creator>Volker Borowski</dc:creator>
    <dc:date>2001-02-02T18:12:29Z</dc:date>
    <item>
      <title>Calling sqlplus scripts from unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489350#M801039</link>
      <description>Inside an Unix script I call a sqlplus script and pass 6 parameters.  Inside the sqlplus script I use &amp;amp;1 - &amp;amp;6.  I call multiple sqlplus scripts inside the 1st sqlplus script using &amp;amp;1-&amp;amp;6 as the paramters.  I call 3 different ones one using &amp;amp;1 &amp;amp;2, 2nd using &amp;amp;3 &amp;amp;4, 3rd using &amp;amp;5 &amp;amp;6.  Now when i call my 4th sqlplus plus script I try using &amp;amp;1 again but instead of using the original value of &amp;amp;1 it uses the value of &amp;amp;5.  My believe is that once I call another sqlplus script that takes arguments, it then resets &amp;amp;1 to that current value for all lvls.  Therefore when I come back up one lvl and try to use the old value for &amp;amp;1 it has been reset to the whatever the value was that I used when calling the last sqlplus script.  Is this how it is supposed to work or am I am doing something wrong.  Or is there another way to do this.&lt;BR /&gt;&lt;BR /&gt;unix script&lt;BR /&gt;  sqlplus_script_1 v1 v2 v3 v4 v5 v6&lt;BR /&gt;    sqlplus_script_1_1 &amp;amp;1 &amp;amp;2&lt;BR /&gt;    sqlplus_script_1_2 &amp;amp;3 &amp;amp;4&lt;BR /&gt;    sqlplus_script_1_3 &amp;amp;5 &amp;amp;6&lt;BR /&gt;  (ALL THE ABOVE SCRIPTS WORK FINE)&lt;BR /&gt;    sqlplus_script_1_4 &amp;amp;1 &amp;amp;2&lt;BR /&gt;  (Now sqlplus_script_1_4 uses the value for v5 and v6 instead of using v1 v2.)&lt;BR /&gt;&lt;BR /&gt;Is this how it is supposed to work.&lt;BR /&gt;&lt;BR /&gt;    &lt;BR /&gt;    &lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2001 16:46:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489350#M801039</guid>
      <dc:creator>Brian Gebhard</dc:creator>
      <dc:date>2001-02-02T16:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calling sqlplus scripts from unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489351#M801040</link>
      <description>Hi brian,&lt;BR /&gt;I think the problem is, by calling those scripts, you reassign values to &amp;amp;1 &amp;amp;2 all the time. May be you schould print &amp;amp;1 &amp;amp;2 between those calls. I think it will show them destroyed after the second call.&lt;BR /&gt;&lt;BR /&gt;You schould save the values after the first call:&lt;BR /&gt;DEFINE P1 = &amp;amp;1&lt;BR /&gt;DEFINE P2 = &amp;amp;2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;and call your scripts with those variables.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2001 18:12:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489351#M801040</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-02-02T18:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling sqlplus scripts from unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489352#M801041</link>
      <description>I agree that that would fix your problem.  If you set up the variables as state. script 4 could be executed as:&lt;BR /&gt;&lt;BR /&gt;sqlplus_script_1_4 ${P1} ${P2}&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2001 18:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489352#M801041</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-02-02T18:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calling sqlplus scripts from unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489353#M801042</link>
      <description>Thank you for your help.  I changed the script and set those 6 arguments to variables and it works fine now.</description>
      <pubDate>Fri, 02 Feb 2001 22:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489353#M801042</guid>
      <dc:creator>Brian Gebhard</dc:creator>
      <dc:date>2001-02-02T22:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calling sqlplus scripts from unix</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489354#M801043</link>
      <description>How about points ?&lt;BR /&gt;Just to keep in mind how this forum works.&lt;BR /&gt;Best Regards&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 06 Feb 2001 07:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calling-sqlplus-scripts-from-unix/m-p/2489354#M801043</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-02-06T07:41:42Z</dc:date>
    </item>
  </channel>
</rss>

