<?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: Proc Report Generate one Output Sort by Different Variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620082#M19489</link>
    <description>1. Create a new variable that is ordered in the levels the way you want. For example, map 1, 2,5 to 1,2,3 and then map 3,4 to 4, 5 &lt;BR /&gt;2. For the third variable you're not interested in for the second group, consider setting those values to missing?&lt;BR /&gt;3. Use PROC REPORT to display the data. &lt;BR /&gt;&lt;BR /&gt;If you need further assistance please post data and code. If your data is confidential or you cannot post it, use SASHELP.CLASS data set and make your ages equivalent to PARAMN. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 26 Jan 2020 18:23:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-01-26T18:23:55Z</dc:date>
    <item>
      <title>Proc Report Generate one Output Sort by Different Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620059#M19485</link>
      <description>&lt;P&gt;Hi&amp;nbsp; there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is my first question to the community!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So a variable called PARAMN is a numeric ordering variable for the PARAM variable in my dataset , only one PARAM corresponds to one PARAM .&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how can I create one/two proc reports&amp;nbsp; which will generate an output including the following :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;1) One output with three columns defined where PARAMN&amp;nbsp; IN ( 1 2 5 ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Second output with two columns for PARAMN IN ( 3 4 ).&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;These two outputs should be combined together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;2) Sort the above output as per PARAMN ( 1 2 3 4 5) , i.e I want to see PARAMN = 3 comes after 2 AND not after 5 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please any ideas will help .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 11:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620059#M19485</guid>
      <dc:creator>hpfw33</dc:creator>
      <dc:date>2020-01-26T11:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Generate one Output Sort by Different Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620060#M19486</link>
      <description>&lt;P&gt;I think we'd need to see the code you are using, and we also need to see a portion of the dataset you are using, and you need to show us the desired output(s).&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 11:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620060#M19486</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-26T11:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Generate one Output Sort by Different Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620061#M19487</link>
      <description>An exemple would definitely help, but ,with your explanation, I would work with the option display and creating variable using _c_.</description>
      <pubDate>Sun, 26 Jan 2020 12:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620061#M19487</guid>
      <dc:creator>NadiaKing_01</dc:creator>
      <dc:date>2020-01-26T12:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Generate one Output Sort by Different Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620075#M19488</link>
      <description>Hi:&lt;BR /&gt;  I don't understand why you need 2 PROC REPORTS for this, especially if the ultimate result is to see the PARAMN in numeric order. Definitely seeing data and code you've tried and/or an example of the desired result will be useful. No one can make a constructive suggestion based on your information. For example, the suggestion to use absolute column numbers would be useful only if your code uses ACROSS variables.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 26 Jan 2020 16:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620075#M19488</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-01-26T16:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Generate one Output Sort by Different Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620082#M19489</link>
      <description>1. Create a new variable that is ordered in the levels the way you want. For example, map 1, 2,5 to 1,2,3 and then map 3,4 to 4, 5 &lt;BR /&gt;2. For the third variable you're not interested in for the second group, consider setting those values to missing?&lt;BR /&gt;3. Use PROC REPORT to display the data. &lt;BR /&gt;&lt;BR /&gt;If you need further assistance please post data and code. If your data is confidential or you cannot post it, use SASHELP.CLASS data set and make your ages equivalent to PARAMN. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Jan 2020 18:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Report-Generate-one-Output-Sort-by-Different-Variable/m-p/620082#M19489</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-26T18:23:55Z</dc:date>
    </item>
  </channel>
</rss>

