<?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: Can we eliminate the errors in the auto generated code? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625265#M8804</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you set MSGLEVEL=i? If yes, that setting generates additional notes in the SAS log.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 13:59:25 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2020-02-17T13:59:25Z</dc:date>
    <item>
      <title>Can we eliminate the errors in the auto generated code?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625014#M8793</link>
      <description>&lt;P&gt;Every time I submit code in SAS/Studio I get this annoying note (error) in the log.&lt;/P&gt;
&lt;PRE&gt; INFO: Character variables have defaulted to a length of 200 at the places given by: (Line):(Column). Truncation can result.
       40:1     RC&lt;/PRE&gt;
&lt;P&gt;I was able to track it down to this data step that SAS/Studio is prefixing to my code.&lt;/P&gt;
&lt;PRE&gt; 37         DATA _NULL_;
 38         CALL SYMPUT("GRAPHINIT","");
 39         CALL SYMPUT("GRAPHTERM","");
 40         RC=TSLVL('SASXGOPT','N');
 41         _ERROR_=0;
 42         IF (RC^=' ') THEN DO;
 43         CALL SYMPUT("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
 44         CALL SYMPUT("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
 45         END;
 46         RUN;
 
 INFO: Character variables have defaulted to a length of 200 at the places given by: (Line):(Column). Truncation can result.
       40:1     RC&lt;/PRE&gt;
&lt;P&gt;Can we please fix that so it does not generate that message?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is it even making the RC variable?&amp;nbsp; It is not used anywhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just change to generate code like this instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _NULL_;
  CALL SYMPUT("GRAPHINIT","");
  CALL SYMPUT("GRAPHTERM","");
  _ERROR_=0;
  IF (TSLVL('SASXGOPT','N')^=' ') THEN DO;
    CALL SYMPUTX("GRAPHINIT","GOPTIONS RESET=ALL GSFNAME=_GSFNAME;");
    CALL SYMPUTX("GRAPHTERM","GOPTIONS NOACCESSIBLE;");
  END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Feb 2020 14:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625014#M8793</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-15T14:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we eliminate the errors in the auto generated code?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625018#M8795</link>
      <description>I'm second to that idea&lt;BR /&gt;&lt;BR /&gt;B-)</description>
      <pubDate>Sat, 15 Feb 2020 16:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625018#M8795</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-02-15T16:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can we eliminate the errors in the auto generated code?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625265#M8804</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you set MSGLEVEL=i? If yes, that setting generates additional notes in the SAS log.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 13:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625265#M8804</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2020-02-17T13:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can we eliminate the errors in the auto generated code?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625291#M8805</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you set MSGLEVEL=i? If yes, that setting generates additional notes in the SAS log.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have no idea whether I set it or not. Or whether SAS/Studio did either.&lt;/P&gt;
&lt;P&gt;But it doesn't change the fact that the code should be fixed.&amp;nbsp; It is just sloppy coding to create character variables without a way for the data step to know what length it should use.&amp;nbsp; Which is why SAS is issuing that line in the log.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625291#M8805</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-17T14:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can we eliminate the errors in the auto generated code?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625295#M8806</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response. What version of SAS is it? I need that information to open a feature request.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 15:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625295#M8806</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2020-02-17T15:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can we eliminate the errors in the auto generated code?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625470#M8809</link>
      <description>&lt;P&gt;SAS/Studio is 3.71.&amp;nbsp; Not sure the SAS version matters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the About message.&lt;/P&gt;
&lt;PRE&gt;Release: 3.71 (Enterprise Edition)

Supported browsers:
Microsoft Internet Explorer 11
Mozilla Firefox 21+
Google Chrome 27+
Apple Safari 6.0+ (on Apple OS X)
Build date: Aug 14, 2019 11:45:53 AM
SAS Mid-tier release: May 24, 2019 9:45:00 AM
Java Version: 1.7.0_151
SAS release: 9.04.01M5P09132017
SAS platform: Linux LIN X64 2.6.32-696.13.2.el6.x86_64&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Feb 2020 23:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Can-we-eliminate-the-errors-in-the-auto-generated-code/m-p/625470#M8809</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-17T23:07:58Z</dc:date>
    </item>
  </channel>
</rss>

