<?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: Cobol variable truncated to 30 characters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884112#M846934</link>
    <description>Hi,&lt;BR /&gt;can you please provide:&lt;BR /&gt;Operating System Version&lt;BR /&gt;Compiler name and version&lt;BR /&gt;Thanks</description>
    <pubDate>Fri, 04 Feb 2005 05:51:03 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2005-02-04T05:51:03Z</dc:date>
    <item>
      <title>Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884111#M846933</link>
      <description>Hi, &lt;BR /&gt;We are using a new cobol compiler, but now the names of variables are truncated to 30 characters. So the cobol compiler is giving the following message: &lt;BR /&gt;F-VOR-VOORWAARDE-CRITERIUM-COD IN &lt;BR /&gt;........^ &lt;BR /&gt;%COBOL-F-UNDEFSYM, Undefined name &lt;BR /&gt;because it has to be F-VOR-VOORWAARDE-CRITERIUM-CODE&lt;BR /&gt;Where can we change the lengthvalue of variables? &lt;BR /&gt;&lt;BR /&gt;Wijnand van Riel&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2005 05:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884111#M846933</guid>
      <dc:creator>Wijnand van Riel</dc:creator>
      <dc:date>2005-02-04T05:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884112#M846934</link>
      <description>Hi,&lt;BR /&gt;can you please provide:&lt;BR /&gt;Operating System Version&lt;BR /&gt;Compiler name and version&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 04 Feb 2005 05:51:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884112#M846934</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-04T05:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884113#M846935</link>
      <description>Winjnand,&lt;BR /&gt;for example:&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/doc3k/B3150090013.11820/14" target="_blank"&gt;http://docs.hp.com/cgi-bin/doc3k/B3150090013.11820/14&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;states for HP COBOL II/XL on MPE:&lt;BR /&gt;"Each word is limited to a maximum length of 30 characters.  Certain types&lt;BR /&gt;of words, such as user-defined words, may be restricted to a shorter&lt;BR /&gt;length."&lt;BR /&gt;&lt;BR /&gt;More documents halfway down the page at:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/dev.html" target="_blank"&gt;http://docs.hp.com/en/dev.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 04 Feb 2005 06:09:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884113#M846935</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-04T06:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884114#M846936</link>
      <description>Sorry for not giving enough information. &lt;BR /&gt;Our operating system is OpenVMS 7.3&lt;BR /&gt;We used Pro*COBOL: Release 1.8.4 with&lt;BR /&gt;COBOL V2.5-980. With those compilers we didn't get truncated variables. &lt;BR /&gt;&lt;BR /&gt;Now we are testing Pro*COBOL 9.2.0.5 with COBOL V2.7-1209. Is the length of words changed with the newer version, and what can we do as workaround without changing our sourcecode?&lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;Wijnand&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2005 06:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884114#M846936</guid>
      <dc:creator>Wijnand van Riel</dc:creator>
      <dc:date>2005-02-04T06:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884115#M846937</link>
      <description>Ok,&lt;BR /&gt;can we establish whether the variable is truncated by the Pro*Cobol pre-compiler?&lt;BR /&gt;Have a look for the file after the SQL has been translated. In Pro*C the file extension would change from '.pc' to '.c'.&lt;BR /&gt;&lt;BR /&gt;If the varibale name is complete there we can eliminate the pre-compiler.&lt;BR /&gt;&lt;BR /&gt;Please let us know what you find.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 04 Feb 2005 07:27:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884115#M846937</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-04T07:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884116#M846938</link>
      <description>From the pro cobol manual:&lt;BR /&gt;&lt;BR /&gt;Declaring and Referencing Host Variables&lt;BR /&gt;Every program variable used in a SQL statement must be declared according to the&lt;BR /&gt;rules of the COBOL language. Normal rules of scope apply. COBOL variable names&lt;BR /&gt;can be any length, but only the first 30 characters are significant for Pro*COBOL..&lt;BR /&gt;Any valid COBOL identifier can be used as host variables, including those beginning with&lt;BR /&gt;digits.&lt;BR /&gt;The external datatype of a host variable and the internal datatype of its source or&lt;BR /&gt;target database column need not be the same, but they must be compatible.&lt;BR /&gt;Table 4â  6, â  Conversions Between Internal and External Datatypesâ   shows the compatible&lt;BR /&gt;datatypes between which Oracle8 converts automatically when necessary.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d</description>
      <pubDate>Fri, 04 Feb 2005 07:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884116#M846938</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-04T07:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884117#M846939</link>
      <description>This is what we find:&lt;BR /&gt;In the .PCO we have following:&lt;BR /&gt;05  F-VOR-VOORWAARDE-CRITERIUM-CODE&lt;BR /&gt;and&lt;BR /&gt;MOVE F-VOR-VOORWAARDE-CRITERIUM-CODE(VOR-INDEX)&lt;BR /&gt;&lt;BR /&gt;In the .COB the last statement is generated by the Pro*COBOL compiler (notice the missing -E at COD)&lt;BR /&gt; 05  F-VOR-VOORWAARDE-CRITERIUM-CODE&lt;BR /&gt;MOVE F-VOR-VOORWAARDE-CRITERIUM-CODE(VOR-INDEX)&lt;BR /&gt;CALL "SQLADR" USING&lt;BR /&gt;        F-VOR-VOORWAARDE-CRITERIUM-COD IN&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Wijnand&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2005 07:49:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884117#M846939</guid>
      <dc:creator>Wijnand van Riel</dc:creator>
      <dc:date>2005-02-04T07:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884118#M846940</link>
      <description>So the pre-compiler seems to be at fault here.&lt;BR /&gt;If Harry was right I would expect the pre-compiler to leave the statement as is and only use the first 30 chars. This may result in a duplicate varibale declaration if two variables were used with the first 30 characters mathing.&lt;BR /&gt;&lt;BR /&gt;What seems to happen here is that SOME of the variables are truncated,while elsewhere the same variable is left as is.&lt;BR /&gt;&lt;BR /&gt;Any Pro*Cobol gurus present to confirm?</description>
      <pubDate>Fri, 04 Feb 2005 07:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884118#M846940</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-04T07:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884119#M846941</link>
      <description>&lt;BR /&gt;fyi for those that didn't know that pro*cobol is an oracle precompiler.&lt;BR /&gt;&lt;BR /&gt;Do you have any other variables that start with F-VOR-VOORWAARDE-CRITERIUM-COD ? (note I didn't say F-VOR-VOORWAARDE-CRITERIUM-CODE)&lt;BR /&gt;&lt;BR /&gt;If you do, then you need to make some variable name changes.&lt;BR /&gt;&lt;BR /&gt;If you don't, then I would report this as a BUG to Oracle.&lt;BR /&gt;&lt;BR /&gt;btw, I remember the the 30 character limit from my youthful programming days in the late 70's early 80's.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Feb 2005 08:00:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884119#M846941</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-04T08:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884120#M846942</link>
      <description>Wijnand,&lt;BR /&gt;I finally found the pre-compiler doc at&lt;BR /&gt;&lt;A href="http://www.lc.leidenuniv.nl/awcourse/oracle/appdev.920/a96109/toc.htm" target="_blank"&gt;http://www.lc.leidenuniv.nl/awcourse/oracle/appdev.920/a96109/toc.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and the section to read is:&lt;BR /&gt;&lt;A href="http://www.lc.leidenuniv.nl/awcourse/oracle/appdev.920/a96109/pco02prc.htm#5795" target="_blank"&gt;http://www.lc.leidenuniv.nl/awcourse/oracle/appdev.920/a96109/pco02prc.htm#5795&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 04 Feb 2005 08:28:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884120#M846942</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-04T08:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cobol variable truncated to 30 characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884121#M846943</link>
      <description>I've reported the BUG at Oracle. Thanks for your help. We will change shorten the names of our variables</description>
      <pubDate>Fri, 04 Feb 2005 08:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cobol-variable-truncated-to-30-characters/m-p/4884121#M846943</guid>
      <dc:creator>Wijnand van Riel</dc:creator>
      <dc:date>2005-02-04T08:29:46Z</dc:date>
    </item>
  </channel>
</rss>

