<?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: pro*c and UNIX  problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364340#M867115</link>
    <description>Thanks for ur reply i will try.</description>
    <pubDate>Thu, 26 Aug 2004 00:53:10 GMT</pubDate>
    <dc:creator>seek</dc:creator>
    <dc:date>2004-08-26T00:53:10Z</dc:date>
    <item>
      <title>pro*c and UNIX  problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364336#M867111</link>
      <description>My program contain code like &lt;BR /&gt;&lt;BR /&gt; EXEC SQL WHENEVER NOTFOUND goto nff; &lt;BR /&gt;   EXEC SQL SELECT 'X' into :temp from CCHCONTROLBAT&lt;BR /&gt;            WHERE SPID=:spid&lt;BR /&gt;        and LOCATION=:location&lt;BR /&gt;        and TERMTYPE=:termtype&lt;BR /&gt;        and TERMID=to_number(:termid)&lt;BR /&gt;        and BATCHNO=to_number(:batchno)&lt;BR /&gt;        and BATCHTYPE=:batchtype&lt;BR /&gt;               and OPERDATE=to_date(:operdate,'yyyymmdd');&lt;BR /&gt;   olddata=0;&lt;BR /&gt;reject:&lt;BR /&gt;if(olddata==0)&lt;BR /&gt;   fprintf(fp,"%s%s%s%s%s%s - duplicate batch\n",spid.arr,location.arr,termtype.arr,termid.arr,batchno.arr,batchtype.arr);&lt;BR /&gt;else   &lt;BR /&gt;  fprintf(fp,"%s%s%s%s%s%s - more than 12 months\n",spid.arr,location.arr,termtype.arr,termid.arr,batchno.arr,batchtype.arr);  &lt;BR /&gt; fflush(fp);&lt;BR /&gt;goto nff1;&lt;BR /&gt;nff:&lt;BR /&gt;  /* some code  */&lt;BR /&gt;when i compiled i got error &lt;BR /&gt;"batregacrecycle.c", line 1742.1: 1506-006 (S) Label nff is undefined.&lt;BR /&gt;make: 1254-004 The error code from the last command is 1. &lt;BR /&gt;&lt;BR /&gt;can you help me please&lt;BR /&gt;Thanks&lt;BR /&gt;seek&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2004 02:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364336#M867111</guid>
      <dc:creator>seek</dc:creator>
      <dc:date>2004-08-25T02:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: pro*c and UNIX  problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364337#M867112</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I do not know much of Pro*C. But it will be a good idea to check the .c file which is generated as part of the compilation of the the .pc file. Check the line no. 725 and th 29th column. &lt;BR /&gt;I hope this points at the problem.&lt;BR /&gt;&lt;BR /&gt;Manish.</description>
      <pubDate>Wed, 25 Aug 2004 02:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364337#M867112</guid>
      <dc:creator>Manish Srivastava</dc:creator>
      <dc:date>2004-08-25T02:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: pro*c and UNIX  problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364338#M867113</link>
      <description>MY PROGRAM HAS 501 LINES ONLY BUT IT SHOWS ERROR AT 525 LINE HOW CAN MODIFI AT 525.&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 25 Aug 2004 02:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364338#M867113</guid>
      <dc:creator>seek</dc:creator>
      <dc:date>2004-08-25T02:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: pro*c and UNIX  problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364339#M867114</link>
      <description>Manish is correct. &lt;BR /&gt;&lt;BR /&gt;Your source is batregarecycle.pc. The pro*c program is a pre-compiler. It processes the .pc file and creates a .c file. If you check the .c file you will find that it is quite a bit larger than your .pc file.&lt;BR /&gt;&lt;BR /&gt;As to the error message you are getting....&lt;BR /&gt;It is complaining about the nff label.&lt;BR /&gt;&lt;BR /&gt;Your whenever notfound goto nff; should (if memory serves) create a piece of code similar to the following:&lt;BR /&gt;&lt;BR /&gt;if(sql.code == 1401) goto nff;&lt;BR /&gt;&lt;BR /&gt;I see the nff: label in your snipet so that doesn't make sense.&lt;BR /&gt;&lt;BR /&gt;Using GOTOs and jumping around in the code can make it hard to follow. You might consider using&lt;BR /&gt;&lt;BR /&gt; whenever notfound call nff &lt;BR /&gt;&lt;BR /&gt;and placing the nff code into a subroutine named nff. &lt;BR /&gt;&lt;BR /&gt;That will make it more modular and hopefully easier to follow. It also keeps structured programmers such as me from breaking out in a rash.&lt;BR /&gt;&lt;BR /&gt;--Good Luck&lt;BR /&gt;&lt;BR /&gt;BTW I notice that you have handed out 0 points for your last 7 questions. Handing out a point of two is a nice way of saying thanks :-)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2004 22:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364339#M867114</guid>
      <dc:creator>R. Allan Hicks</dc:creator>
      <dc:date>2004-08-25T22:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: pro*c and UNIX  problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364340#M867115</link>
      <description>Thanks for ur reply i will try.</description>
      <pubDate>Thu, 26 Aug 2004 00:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pro-c-and-unix-problem/m-p/3364340#M867115</guid>
      <dc:creator>seek</dc:creator>
      <dc:date>2004-08-26T00:53:10Z</dc:date>
    </item>
  </channel>
</rss>

