<?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 Please help with this small code. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60581#M13138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouldn't it be simpler to just sort the data set first and then use the first. and last. options? E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: navy; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;PROC &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: navy; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;SORT&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;=SASHELP.CLASS &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;OUT&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;=CLASS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;BY&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;DESCENDING&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; SEX ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: navy; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;RUN&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: navy; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;DATA&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_NULL_&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;SET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; CLASS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;BY&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;DESCENDING&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; SEX ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; FIRST.SEX AND SEX=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'F'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;THEN&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;put&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'break here part 2'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;put &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;@&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;01&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; sex &lt;/SPAN&gt;&lt;SPAN style="color: teal; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;$12.&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;@&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;3&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; name &lt;/SPAN&gt;&lt;SPAN style="color: teal; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;$11.&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2011 17:58:52 GMT</pubDate>
    <dc:creator>Hobbes</dc:creator>
    <dc:date>2011-09-05T17:58:52Z</dc:date>
    <item>
      <title>Please help with this small code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60577#M13134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am trying to create a fixed width output file with the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_; &lt;BR /&gt;file PRINT; &lt;/P&gt;&lt;P&gt;do UNTIL (_N_ = EOF);&lt;BR /&gt;set sashelp.class(where=(sex='M')) end=eof;&lt;BR /&gt;put @01 sex $12.&lt;BR /&gt;@3 name $11. &lt;BR /&gt;; &lt;BR /&gt;END;&lt;BR /&gt;put 'break here part 2';&lt;BR /&gt;DO UNTIL (_N_ = (EOF+1+EFF));&lt;BR /&gt;set sashelp.class(where=(sex='F')) end=eof;&lt;BR /&gt;put @01 sex $12.&lt;BR /&gt;@3 name $11. &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;BR /&gt;END;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the above code i get the correct ouput. But if i was to change this with the code below . Then no output generates because the SEX = 'FM' is not there in the table. but i was hoping that atleast the sex='F' values should get printed in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_; &lt;BR /&gt;file PRINT; &lt;/P&gt;&lt;P&gt;do UNTIL (_N_ = EOF);&lt;BR /&gt;set sashelp.class(where=(sex='FM')) end=eof;&lt;BR /&gt;put @01 sex $12.&lt;BR /&gt;@3 name $11. &lt;BR /&gt;; &lt;BR /&gt;END;&lt;BR /&gt;put 'break here part 2';&lt;BR /&gt;DO UNTIL (_N_ = (EOF+1+EFF));&lt;BR /&gt;set sashelp.class(where=(sex='F')) end=eof;&lt;BR /&gt;put @01 sex $12.&lt;BR /&gt;@3 name $11. &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;BR /&gt;END;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do guide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 15:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60577#M13134</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2011-09-05T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Please help with this small code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60578#M13135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you actually trying to do?&amp;nbsp; Plus, your code has some unusual uses and one undeclared variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_N_ will always be equal to 1 and EFF has never been initialized.&amp;nbsp; Are you trying to do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_; &lt;/P&gt;&lt;P&gt;&amp;nbsp; file print;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do UNTIL (EOF);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.class(where=(sex in ('M','F'))) end=eof;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @01 sex $12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 name $11. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&amp;nbsp; END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'break here part 2';&lt;/P&gt;&lt;P&gt;&amp;nbsp; DO UNTIL ((EFF));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.class(where=(sex='F')) end=eff;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=_n_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @01 sex $12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 name $11. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&amp;nbsp; END;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 16:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60578#M13135</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-05T16:15:03Z</dc:date>
    </item>
    <item>
      <title>Please help with this small code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60579#M13136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Art,&lt;/P&gt;&lt;P&gt;My aim is to create a fixedwidth file in the following manner&lt;/P&gt;&lt;P&gt;first print the sex and names of all males &lt;/P&gt;&lt;P&gt;second put a line "break here part 2"&lt;/P&gt;&lt;P&gt;third print the sex and names of all females.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have given is absolutely correct. But my problem arises if there are no Males in my data then the data for the females also doesnot get printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please guide on how to take this forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;set sashelp.class;&lt;/P&gt;&lt;P&gt;where sex = 'F';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data _null_; &lt;/P&gt;&lt;P&gt;&amp;nbsp; file print;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do UNTIL (EOF);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test(where=(sex ='M')) end=eof;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @01 sex $12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 name $11. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&amp;nbsp; END;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'break here part 2';&lt;/P&gt;&lt;P&gt;&amp;nbsp; DO UNTIL ((EFF));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test(where=(sex='F')) end=eff;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=_n_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @01 sex $12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 name $11. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&amp;nbsp; END;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 16:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60579#M13136</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2011-09-05T16:36:18Z</dc:date>
    </item>
    <item>
      <title>Please help with this small code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60580#M13137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are numerous ways.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class (where=(sex eq 'F'));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data _null_; &lt;/P&gt;&lt;P&gt;&amp;nbsp; file print;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do UNTIL (EOF);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set class end=eof;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sex eq 'M' then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @01 sex $12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 name $11. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'break here part 2';&lt;/P&gt;&lt;P&gt;&amp;nbsp; DO UNTIL ((EFF));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set class(where=(sex='F')) end=eff;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=_n_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put @01 sex $12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 name $11. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&amp;nbsp; END;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that accomplish what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 17:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60580#M13137</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-05T17:25:15Z</dc:date>
    </item>
    <item>
      <title>Please help with this small code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60581#M13138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wouldn't it be simpler to just sort the data set first and then use the first. and last. options? E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: navy; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;PROC &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: navy; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;SORT&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;=SASHELP.CLASS &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;OUT&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;=CLASS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;BY&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;DESCENDING&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; SEX ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: navy; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;RUN&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="color: navy; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;DATA&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;_NULL_&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;SET&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; CLASS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;BY&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;DESCENDING&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; SEX ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; FIRST.SEX AND SEX=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'F'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;THEN&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;put&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: purple; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;'break here part 2'&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;put &lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;@&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;01&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; sex &lt;/SPAN&gt;&lt;SPAN style="color: teal; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;$12.&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;@&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;3&lt;/STRONG&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt; name &lt;/SPAN&gt;&lt;SPAN style="color: teal; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;$11.&lt;/SPAN&gt;&lt;SPAN style="color: black; background-color: white; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 17:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60581#M13138</guid>
      <dc:creator>Hobbes</dc:creator>
      <dc:date>2011-09-05T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Please help with this small code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60582#M13139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Art.This was extremely simple. Dont know why i keep complicating things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Hobbes,&lt;/P&gt;&lt;P&gt;Thanks for your response What you have given should work too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 19:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60582#M13139</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2011-09-05T19:19:35Z</dc:date>
    </item>
    <item>
      <title>Please help with this small code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60583#M13140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make the first loop conditional, as in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt; NOT EOF &lt;SPAN style="color: #0000ff;"&gt;THEN&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;UNTIL&lt;/SPAN&gt; (EOF);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you will probably want a STOP statement at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 19:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-this-small-code/m-p/60583#M13140</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2011-09-05T19:20:25Z</dc:date>
    </item>
  </channel>
</rss>

