<?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: Small query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851349#M336483</link>
    <description>&lt;P&gt;Please explain how the column named F1 in the output is computed from the data you show.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 14:34:57 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-12-28T14:34:57Z</dc:date>
    <item>
      <title>Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851347#M336481</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data be like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Da1;&lt;BR /&gt;input Id Drug$ Dose;&lt;BR /&gt;datalines;&lt;BR /&gt;101 Da 200&lt;BR /&gt;101 Da 200&lt;BR /&gt;101 Da 200&lt;BR /&gt;102 Da 200&lt;BR /&gt;102 Da 200&lt;BR /&gt;102 Da 200&lt;BR /&gt;103 Da 200&lt;BR /&gt;103 Da 200&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am expecting the output be like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F1&lt;BR /&gt;------------&lt;BR /&gt;101&amp;nbsp; &amp;nbsp; &amp;nbsp;Y&lt;BR /&gt;102&amp;nbsp; &amp;nbsp; &amp;nbsp;N&lt;BR /&gt;103&amp;nbsp; &amp;nbsp; &amp;nbsp;Y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me out in the program to get an output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 14:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851347#M336481</guid>
      <dc:creator>saitejaguduru97</dc:creator>
      <dc:date>2022-12-28T14:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851349#M336483</link>
      <description>&lt;P&gt;Please explain how the column named F1 in the output is computed from the data you show.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 14:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851349#M336483</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-28T14:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851350#M336484</link>
      <description>We have to create F1 row.</description>
      <pubDate>Wed, 28 Dec 2022 14:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851350#M336484</guid>
      <dc:creator>saitejaguduru97</dc:creator>
      <dc:date>2022-12-28T14:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851354#M336487</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/434763"&gt;@saitejaguduru97&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;We have to create F1 row.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I asked you to explain how the column F1 is calculated. You have not explained this.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 15:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851354#M336487</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-28T15:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851355#M336488</link>
      <description>Expecting output be like:&lt;BR /&gt;Id Drug Dose F1&lt;BR /&gt;101 Da 200 Y&lt;BR /&gt;102 Da 200 N&lt;BR /&gt;103 Da 200 Y..&lt;BR /&gt;&lt;BR /&gt;I need the program code F1 is the variable name or else you can take any name.</description>
      <pubDate>Wed, 28 Dec 2022 15:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851355#M336488</guid>
      <dc:creator>saitejaguduru97</dc:creator>
      <dc:date>2022-12-28T15:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851360#M336490</link>
      <description>&lt;P&gt;The sample data you provide is identical for Drug and Dose in all rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What could possibly be the logic one would need to implement to derive a column F1 from this data that gets N for id 102 but Y for the other two id's.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1672240647311.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78905iACD1B03CDD1B9F28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1672240647311.png" alt="Patrick_0-1672240647311.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please explain the logic to be used. ...and likely provide better sample data that matches the desired result once logic applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 15:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851360#M336490</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-12-28T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851361#M336491</link>
      <description>I am going to put emphasis on the key words in my question, since you don't seem to be grasping the question. The emphasized words are in capital letters.&lt;BR /&gt;&lt;BR /&gt;HOW IS F1 CALCULATED?</description>
      <pubDate>Wed, 28 Dec 2022 15:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851361#M336491</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-28T15:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851364#M336493</link>
      <description>I think with the use of First.id and last.id</description>
      <pubDate>Wed, 28 Dec 2022 15:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851364#M336493</guid>
      <dc:creator>saitejaguduru97</dc:creator>
      <dc:date>2022-12-28T15:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851365#M336494</link>
      <description>Tell us in words how you compute F1, do not use SAS code, just words.</description>
      <pubDate>Wed, 28 Dec 2022 15:33:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851365#M336494</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-28T15:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851367#M336496</link>
      <description>See for example:-&lt;BR /&gt;Here 3 patients are there they came to the visits and now I need 101 and 103 patients first visit only for first visit the value should be Y and For 102 subject I want only last visit and for that value should be N&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Dec 2022 15:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851367#M336496</guid>
      <dc:creator>saitejaguduru97</dc:creator>
      <dc:date>2022-12-28T15:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Small query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851368#M336497</link>
      <description>Why is 101 and 103 a Y and 102 a N? What is the logic? what is the reason? How would we know which is Y and which is N?</description>
      <pubDate>Wed, 28 Dec 2022 15:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Small-query/m-p/851368#M336497</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-28T15:54:09Z</dc:date>
    </item>
  </channel>
</rss>

