<?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: Is there a SAS style guide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579975#M164700</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; There's no Strunk and White or Chicago Style manual, if that's what you mean. There are a lot of papers on good coding practices. In Programming 1, we have some basic recommendations for program style:&lt;/P&gt;
&lt;P&gt;1) start each statement on a new line&lt;/P&gt;
&lt;P&gt;2) indent lines and use white space to aid readability.&lt;/P&gt;
&lt;P&gt;3) use comments&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example, which program would you rather work with?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class;title 'my title'; var sex age name height weight; run;

 
proc print data=sashelp.class;
title 'my title';
var sex age name height weight;
run;

 
** This is my first report;
proc print data=sashelp.class;
   title 'my title';
   var sex age name height weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;They are all the same program, I'd rather work with 3 or 2. Program 1 would make me crazy. But SAS doesn't care about readability, so it doesn't care.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 19:34:08 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-08-08T19:34:08Z</dc:date>
    <item>
      <title>Is there a SAS style guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579855#M164657</link>
      <description>&lt;P&gt;I have searched the community, and find no related post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I can not find a complete style guide for SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can provide such information, or any good coding standard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 12:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579855#M164657</guid>
      <dc:creator>GFW</dc:creator>
      <dc:date>2019-08-08T12:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a SAS style guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579874#M164660</link>
      <description>google 'SAS style guide' and you'll find plenty.</description>
      <pubDate>Thu, 08 Aug 2019 13:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579874#M164660</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-08-08T13:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a SAS style guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579897#M164665</link>
      <description>&lt;P&gt;Pick one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://lexjansen.com/search/searchresults.php?q=style%20guide" target="_blank"&gt;https://lexjansen.com/search/searchresults.php?q=style%20guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep an eye on dates on the papers, SAS is from the 1970's so there's a lot of old stuff laying around the internet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266218"&gt;@GFW&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have searched the community, and find no related post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far, I can not find a complete style guide for SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope someone can provide such information, or any good coding standard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579897#M164665</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-08T14:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a SAS style guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579965#M164698</link>
      <description>Out of curiosity, what 'community' did you search?</description>
      <pubDate>Thu, 08 Aug 2019 18:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579965#M164698</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-08-08T18:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a SAS style guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579975#M164700</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; There's no Strunk and White or Chicago Style manual, if that's what you mean. There are a lot of papers on good coding practices. In Programming 1, we have some basic recommendations for program style:&lt;/P&gt;
&lt;P&gt;1) start each statement on a new line&lt;/P&gt;
&lt;P&gt;2) indent lines and use white space to aid readability.&lt;/P&gt;
&lt;P&gt;3) use comments&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example, which program would you rather work with?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class;title 'my title'; var sex age name height weight; run;

 
proc print data=sashelp.class;
title 'my title';
var sex age name height weight;
run;

 
** This is my first report;
proc print data=sashelp.class;
   title 'my title';
   var sex age name height weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;They are all the same program, I'd rather work with 3 or 2. Program 1 would make me crazy. But SAS doesn't care about readability, so it doesn't care.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 19:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/579975#M164700</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-08-08T19:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a SAS style guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/643577#M192106</link>
      <description>I mean this forum &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 28 Apr 2020 12:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/643577#M192106</guid>
      <dc:creator>GFW</dc:creator>
      <dc:date>2020-04-28T12:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a SAS style guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/643579#M192107</link>
      <description>Hi Cynthia,&lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestion, I prefer the third one and have been working with this style .</description>
      <pubDate>Tue, 28 Apr 2020 12:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/643579#M192107</guid>
      <dc:creator>GFW</dc:creator>
      <dc:date>2020-04-28T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a SAS style guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/823112#M325022</link>
      <description>Agree that 1 is terrible.  Prefer 3 to 2.  Like to indent code within each data/proc step.&lt;BR /&gt;&lt;BR /&gt;I wish there was a more consistent SAS programming style .  I see so many variations.  Some languages like Python, and to a lesser extent R, have very strict style guidelines.</description>
      <pubDate>Wed, 13 Jul 2022 14:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-SAS-style-guide/m-p/823112#M325022</guid>
      <dc:creator>whs278</dc:creator>
      <dc:date>2022-07-13T14:18:13Z</dc:date>
    </item>
  </channel>
</rss>

