<?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 Need Help Understandind data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/838723#M331625</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I inherited a sas program and am having difficulty understanding what the below SAS dataset is doing. Thank you in advance&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;libname home '/home/ijones01/projects/Lab/ad_hoc/Quest_Kit';&lt;/P&gt;
&lt;P&gt;options compress=yes;&lt;/P&gt;
&lt;P&gt;**Sorts the bsca_ma_weekly_report_20221005a data to use for the next step**;&lt;BR /&gt;Proc sort data=home.bsca_ma_weekly_report_20221005a out=member_raw nodupkey;by sub_id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data member_list;&lt;BR /&gt;set member_raw end=eof; /*end=eof finds the end of the file*/;&lt;BR /&gt;fmtname="$elig_member";&lt;BR /&gt;start=Sub_id;&lt;BR /&gt;label="*";&lt;BR /&gt;type='C';&lt;BR /&gt;output ;&lt;/P&gt;
&lt;P&gt;if eof then do;&lt;BR /&gt;start = '';&lt;BR /&gt;hlo = 'O';&lt;BR /&gt;label = '';&lt;BR /&gt;fmtname = "$elig_member"; output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 21:08:05 GMT</pubDate>
    <dc:creator>Jesusismygrace</dc:creator>
    <dc:date>2022-10-14T21:08:05Z</dc:date>
    <item>
      <title>Need Help Understandind data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/838723#M331625</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I inherited a sas program and am having difficulty understanding what the below SAS dataset is doing. Thank you in advance&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;libname home '/home/ijones01/projects/Lab/ad_hoc/Quest_Kit';&lt;/P&gt;
&lt;P&gt;options compress=yes;&lt;/P&gt;
&lt;P&gt;**Sorts the bsca_ma_weekly_report_20221005a data to use for the next step**;&lt;BR /&gt;Proc sort data=home.bsca_ma_weekly_report_20221005a out=member_raw nodupkey;by sub_id;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data member_list;&lt;BR /&gt;set member_raw end=eof; /*end=eof finds the end of the file*/;&lt;BR /&gt;fmtname="$elig_member";&lt;BR /&gt;start=Sub_id;&lt;BR /&gt;label="*";&lt;BR /&gt;type='C';&lt;BR /&gt;output ;&lt;/P&gt;
&lt;P&gt;if eof then do;&lt;BR /&gt;start = '';&lt;BR /&gt;hlo = 'O';&lt;BR /&gt;label = '';&lt;BR /&gt;fmtname = "$elig_member"; output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 21:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/838723#M331625</guid>
      <dc:creator>Jesusismygrace</dc:creator>
      <dc:date>2022-10-14T21:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Understandind data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/838724#M331626</link>
      <description>&lt;P&gt;The great thing about SAS in a lot of cases, is that if you run the code, you can figure out what it is doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the input data set member_raw, then run the code, then look at the output data set member_list, and you will see what SAS is doing.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 21:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/838724#M331626</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-14T21:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Understandind data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/838738#M331627</link>
      <description>&lt;P&gt;FWIW, the data set Member_list is apparently intended to create a FORMAT using the CNTLIN option of Proc format. Without Proc Format that isn't a particularly useful set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going guess that there is some requirement to "mask" the identities of people as that format, named $elig_member will only display * instead of the values that appear in Sub_id.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, since that format is going to use the HLO option value of O that will also display blank for values of what ever variable besides those provided in Sub_id may appear. Because the HLO option O has to appear as the last "start" value for a format the EOF option, which does not find the end of a file but indicates when the last observation has been read, uses that EOF variable to conditionally set the label and option HLO.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 21:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/838738#M331627</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-14T21:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Understandind data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/840717#M332417</link>
      <description>Thank you!!!!</description>
      <pubDate>Tue, 25 Oct 2022 22:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-Understandind-data-step/m-p/840717#M332417</guid>
      <dc:creator>Jesusismygrace</dc:creator>
      <dc:date>2022-10-25T22:59:22Z</dc:date>
    </item>
  </channel>
</rss>

