<?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: perl scripts error! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234585#M714537</link>
    <description>SEP: for that, there is a -&amp;gt;quote () method:&lt;BR /&gt;&lt;BR /&gt;$quoted_string = $dbh-&amp;gt;quote ($string);&lt;BR /&gt;&lt;BR /&gt;Hein: no, the error is earlier. The error complains about the statement handle being undefined, and thus cannot execute the 'execute' method at all.&lt;BR /&gt;&lt;BR /&gt;It is the prepare that fails&lt;BR /&gt;&lt;BR /&gt;print "Connect informix server ok......\n";&lt;BR /&gt;$sql = "SELECT * FROM cam2asics"; &lt;BR /&gt;$dbh-&amp;gt;trace (9);&lt;BR /&gt;$sth = $dbh-&amp;gt;prepare ($sql);&lt;BR /&gt;# At this point, the $sth is probably undefined&lt;BR /&gt;$dbh-&amp;gt;trace (0);&lt;BR /&gt;print STDERR $dbh-&amp;gt;errstr;&lt;BR /&gt;&lt;BR /&gt;Could probably give you the information you need to resolv the issue&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
    <pubDate>Wed, 31 Mar 2004 01:06:28 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2004-03-31T01:06:28Z</dc:date>
    <item>
      <title>perl scripts error!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234582#M714534</link>
      <description>Dear sir:&lt;BR /&gt;F0llowing is my per1 scripts,it has some error...&lt;BR /&gt;What I going to do it ? Thanks!&lt;BR /&gt;#!  /opt/perl64/bin/perl5.8.3&lt;BR /&gt;use DBI;&lt;BR /&gt;use DBD::Informix;&lt;BR /&gt;my $data_source = "DBI:Informix:pdview"; &lt;BR /&gt;my $server = "aaatcp";&lt;BR /&gt;my $database = "pdaaa";&lt;BR /&gt;my $username = "pdbbb"; &lt;BR /&gt;my $password = "pdbbb"; &lt;BR /&gt;my $dbh = DBI-&amp;gt;connect($data_source, $username, $password) or die "Error! $DBI::errstr"; &lt;BR /&gt;print "Connetc informix server ok......\n";&lt;BR /&gt;$sql = "SELECT * FROM cam2asics"; &lt;BR /&gt;$sth = $dbh-&amp;gt;prepare($sql); &lt;BR /&gt;$sth -&amp;gt; execute() or die ("error!"); &lt;BR /&gt;print "$database include......:\n";&lt;BR /&gt;while(@rows = $sth-&amp;gt;fetchrow_array) &lt;BR /&gt;{ &lt;BR /&gt;        foreach(@rows) &lt;BR /&gt;        { &lt;BR /&gt;               print "$_\t"; &lt;BR /&gt;        } &lt;BR /&gt;        print "\n";&lt;BR /&gt;} &lt;BR /&gt;$sth-&amp;gt;finish; &lt;BR /&gt;$dbh -&amp;gt; disconnect(); &lt;BR /&gt;exit 0;&lt;BR /&gt;&lt;BR /&gt;result message:&lt;BR /&gt;Connetc informix server ok......&lt;BR /&gt;Can't call method "execute" on an undefined value at connect2 line 13.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Mar 2004 22:15:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234582#M714534</guid>
      <dc:creator>Asics</dc:creator>
      <dc:date>2004-03-30T22:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: perl scripts error!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234583#M714535</link>
      <description>Tough one.&lt;BR /&gt;&lt;BR /&gt;When I used perl to handle sqlplus I had to worry about special characters like @ that trip up the interpreter. You have to put a special character in froont of special characters to have them not break up the string and blow up the script.&lt;BR /&gt;&lt;BR /&gt;@ has to be \@&lt;BR /&gt;&lt;BR /&gt;" needs to be \"&lt;BR /&gt;&lt;BR /&gt;I don't know the full list of special characters, but this is a likely problem with your script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 30 Mar 2004 22:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234583#M714535</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-30T22:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: perl scripts error!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234584#M714536</link>
      <description>&lt;BR /&gt;Hmmm, should line 13 read:&lt;BR /&gt;&lt;BR /&gt;$result = $sth -&amp;gt; execute() or die ("error!"); &lt;BR /&gt;&lt;BR /&gt;Hein.</description>
      <pubDate>Wed, 31 Mar 2004 00:51:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234584#M714536</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-03-31T00:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: perl scripts error!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234585#M714537</link>
      <description>SEP: for that, there is a -&amp;gt;quote () method:&lt;BR /&gt;&lt;BR /&gt;$quoted_string = $dbh-&amp;gt;quote ($string);&lt;BR /&gt;&lt;BR /&gt;Hein: no, the error is earlier. The error complains about the statement handle being undefined, and thus cannot execute the 'execute' method at all.&lt;BR /&gt;&lt;BR /&gt;It is the prepare that fails&lt;BR /&gt;&lt;BR /&gt;print "Connect informix server ok......\n";&lt;BR /&gt;$sql = "SELECT * FROM cam2asics"; &lt;BR /&gt;$dbh-&amp;gt;trace (9);&lt;BR /&gt;$sth = $dbh-&amp;gt;prepare ($sql);&lt;BR /&gt;# At this point, the $sth is probably undefined&lt;BR /&gt;$dbh-&amp;gt;trace (0);&lt;BR /&gt;print STDERR $dbh-&amp;gt;errstr;&lt;BR /&gt;&lt;BR /&gt;Could probably give you the information you need to resolv the issue&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 31 Mar 2004 01:06:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234585#M714537</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-31T01:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: perl scripts error!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234586#M714538</link>
      <description>Dear sir:&lt;BR /&gt;I use this scripts runing with the windows 2000 environment is ok!&lt;BR /&gt;But use it with HPUX still error....&lt;BR /&gt;Please give me help,thanks sir!&lt;BR /&gt;=========================================&lt;BR /&gt;use DBI;&lt;BR /&gt;use DBD::Informix;&lt;BR /&gt;my $data_source = "DBI:Informix:pdview"; &lt;BR /&gt;my $username = "pduser"; &lt;BR /&gt;my $password = "pduser"; &lt;BR /&gt;my $dbh = DBI-&amp;gt;connect($data_source, $username, $password) or die "Error! $DBI::errstr"; &lt;BR /&gt;print "Connetc informix server ok......\n";&lt;BR /&gt;$sql = "SELECT * FROM cam2asics"; &lt;BR /&gt;$dbh-&amp;gt;trace(9);&lt;BR /&gt;$sth = $dbh-&amp;gt;prepare($sql); &lt;BR /&gt;$dbh-&amp;gt;trace(0);&lt;BR /&gt;print STDERR $dbh-&amp;gt;errstr;&lt;BR /&gt;$sth -&amp;gt; execute() or die "error! can't prepare SQL", $dbh-&amp;gt;errstr(), "\n";&lt;BR /&gt;print "$rrr\n";&lt;BR /&gt;print "$database include......:\n";&lt;BR /&gt;while(@rows = $sth-&amp;gt;fetchrow_array) &lt;BR /&gt;{ &lt;BR /&gt;        foreach(@rows) &lt;BR /&gt;        { &lt;BR /&gt;               print "$_\t"; &lt;BR /&gt;        } &lt;BR /&gt;        print "\n";&lt;BR /&gt;} &lt;BR /&gt;$sth-&amp;gt;finish; &lt;BR /&gt;$dbh -&amp;gt; disconnect(); &lt;BR /&gt;exit 0;&lt;BR /&gt;=============================================&lt;BR /&gt;#result message&lt;BR /&gt;Connetc informix server ok......&lt;BR /&gt;    DBI::db=HASH(0x800000000025bb00) trace level set to 9 in DBI 1.40-nothread (pid 7614)&lt;BR /&gt;    Note: perl is running without the recommended perl -w option&lt;BR /&gt;    -&amp;gt; prepare for DBD::Informix::db (DBI::db=HASH(0x8000000000046758)~0x800000000025bb00 'SELECT * FROM cam2asics')&lt;BR /&gt;    dbih_setup_handle(DBI::st=HASH(0x800000000025bc68)=&amp;gt;DBI::st=HASH(0x800000000025bd08), DBD::Informix::st, 800000000025bc78, Null!)&lt;BR /&gt;    dbih_make_com(DBI::db=HASH(0x800000000025bb00), 8000000000152940, DBD::Informix::st, 360, 0) thr#0&lt;BR /&gt;    dbih_setup_attrib(DBI::st=HASH(0x800000000025bd08), Err, DBI::db=HASH(0x800000000025bb00)) SCALAR(0x800000000014e1e8) (already defined)&lt;BR /&gt;    dbih_setup_attrib(DBI::st=HASH(0x800000000025bd08), State, DBI::db=HASH(0x800000000025bb00)) SCALAR(0x800000000014e188) (already defined)&lt;BR /&gt;    dbih_setup_attrib(DBI::st=HASH(0x800000000025bd08), Errstr, DBI::db=HASH(0x800000000025bb00)) SCALAR(0x800000000014e1b8) (already defined)&lt;BR /&gt;    dbih_setup_attrib(DBI::st=HASH(0x800000000025bd08), TraceLevel, DBI::db=HASH(0x800000000025bb00)) 9 (already defined)&lt;BR /&gt;    dbih_setup_attrib(DBI::st=HASH(0x800000000025bd08), FetchHashKeyName, DBI::db=HASH(0x800000000025bb00)) 'NAME' (already defined)&lt;BR /&gt;    dbih_setup_attrib(DBI::st=HASH(0x800000000025bd08), HandleError, DBI::db=HASH(0x800000000025bb00)) undef (not defined)&lt;BR /&gt;        --&amp;gt;&amp;gt; DBD::Informix::dbd_ix_st_prepare()&lt;BR /&gt;        &amp;lt;&amp;lt;-- DBD::Informix::dbd_ix_st_prepare()&lt;BR /&gt;    &amp;gt;&amp;gt; DESTROY     DISPATCH (DBI::st=HASH(0x800000000025bc68) rc1/1 @1 g0 ima4 pid#7614) at connect2 line 10&lt;BR /&gt;    &amp;lt;&amp;gt; DESTROY ignored for outer handle DBI::st=HASH(0x800000000025bc68) (inner DBI::st=HASH(0x800000000025bd08))&lt;BR /&gt;    &amp;gt;&amp;gt; DESTROY     DISPATCH (DBI::st=HASH(0x800000000025bd08) rc1/1 @1 g0 ima4 pid#7614) at connect2 line 10&lt;BR /&gt;    -&amp;gt; DESTROY for DBD::Informix::st (DBI::st=HASH(0x800000000025bd08)~INNER)&lt;BR /&gt;Statement handle DBI::st=HASH(0x800000000025bd08) DESTROY ignored - never set up&lt;BR /&gt;    &amp;lt;- DESTROY= undef at connect2 line 10&lt;BR /&gt;    DESTROY (dbih_clearcom) (sth 0x800000000025bc68 0x0, com 0x8000000000283b88, imp DBD::Informix::st):&lt;BR /&gt;       FLAGS 0x111: COMSET Warn PrintError &lt;BR /&gt;       PARENT DBI::db=HASH(0x800000000025bb00)&lt;BR /&gt;       KIDS 0 (0 Active)&lt;BR /&gt;       IMP_DATA undef&lt;BR /&gt;       NUM_OF_FIELDS 0&lt;BR /&gt;       NUM_OF_PARAMS 0&lt;BR /&gt;    dbih_clearcom 0x800000000025bc68 (com 0x8000000000283b88, type 3) done.&lt;BR /&gt;&lt;BR /&gt;    &amp;lt;- prepare= undef at connect2 line 10&lt;BR /&gt;    -&amp;gt; trace for DBD::Informix::db (DBI::db=HASH(0x8000000000046758)~0x800000000025bb00 0)&lt;BR /&gt;    &amp;lt;- trace= 9 at connect2 line 11&lt;BR /&gt;Can't call method "execute" on an undefined value at connect2 line 13.&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Mar 2004 01:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234586#M714538</guid>
      <dc:creator>Asics</dc:creator>
      <dc:date>2004-03-31T01:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: perl scripts error!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234587#M714539</link>
      <description>I don't see why that would fail. Sorry, I don't have informix.&lt;BR /&gt;&lt;BR /&gt;I also do not see the error message.&lt;BR /&gt;Could you show:&lt;BR /&gt;&lt;BR /&gt;my $dbh = DBI-&amp;gt;connect ($data_source, $username, $password) or die "Error! $DBI::errstr"; &lt;BR /&gt;print "Connect informix server ok......\n";&lt;BR /&gt;$dbh-&amp;gt;{PrintError} = 1;&lt;BR /&gt;$dbh-&amp;gt;{RaiseError} = 1;&lt;BR /&gt;$sql = "SELECT * FROM cam2asics"; &lt;BR /&gt;$sth = $dbh-&amp;gt;prepare ($sql);&lt;BR /&gt;&lt;BR /&gt;And also, given that "name" is a valid field in table cam2asics, what does&lt;BR /&gt;&lt;BR /&gt;my $dbh = DBI-&amp;gt;connect ($data_source, $username, $password) or die "Error! $DBI::errstr"; &lt;BR /&gt;print "Connect informix server ok......\n";&lt;BR /&gt;$dbh-&amp;gt;{PrintError} = 1;&lt;BR /&gt;$dbh-&amp;gt;{RaiseError} = 1;&lt;BR /&gt;$sth = $dbh-&amp;gt;prepare ("select name from cam2asics");&lt;BR /&gt;&lt;BR /&gt;Also consider taking this to dbi-users mailing list, where Informix expertise is more likely to be present&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 31 Mar 2004 02:41:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-scripts-error/m-p/3234587#M714539</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-31T02:41:27Z</dc:date>
    </item>
  </channel>
</rss>

