<?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: create new table sas studio in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740539#M29078</link>
    <description>&lt;P&gt;i have a set of tables in my sas studio, from these tables i want to create a table which contains specific columns. and these columns do not belong to the same table&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 16:27:34 GMT</pubDate>
    <dc:creator>Sarra-Matri</dc:creator>
    <dc:date>2021-05-11T16:27:34Z</dc:date>
    <item>
      <title>create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740235#M29035</link>
      <description>&lt;P&gt;&lt;SPAN&gt;From an imported tables, how can i create a new table that contains some columns?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 17:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740235#M29035</guid>
      <dc:creator>Sarra-Matri</dc:creator>
      <dc:date>2021-05-10T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740241#M29036</link>
      <description>&lt;P&gt;Use a data step, and the KEEP statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
keep a b c;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 May 2021 18:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740241#M29036</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-10T18:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740255#M29039</link>
      <description>&lt;P&gt;Or if you want to keep most of the variables and just remove a few, use Drop&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
    set have;
    drop P D Q;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 May 2021 19:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740255#M29039</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-10T19:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740335#M29044</link>
      <description>&lt;P&gt;thank you for your reply but&amp;nbsp;columns will be imported from multiple tables not just one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 00:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740335#M29044</guid>
      <dc:creator>Sarra-Matri</dc:creator>
      <dc:date>2021-05-11T00:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740460#M29067</link>
      <description>&lt;P&gt;Please don't hand out information in little bits and keep us guessing. Describe your issue as a whole.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 13:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740460#M29067</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-11T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740539#M29078</link>
      <description>&lt;P&gt;i have a set of tables in my sas studio, from these tables i want to create a table which contains specific columns. and these columns do not belong to the same table&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740539#M29078</guid>
      <dc:creator>Sarra-Matri</dc:creator>
      <dc:date>2021-05-11T16:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740756#M29085</link>
      <description>&lt;P&gt;So you probably need to merge or join the tables. Please show some examples for the tables, and what you intend to get as a result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 10:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740756#M29085</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-12T10:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740769#M29087</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 399px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59268iAB55F8BB03363CB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 11:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740769#M29087</guid>
      <dc:creator>Sarra-Matri</dc:creator>
      <dc:date>2021-05-12T11:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740772#M29089</link>
      <description>&lt;P&gt;From the tables, i have to create a new table that contains the columns following: "account", "code", "country_label", "product_type", value.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 11:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/740772#M29089</guid>
      <dc:creator>Sarra-Matri</dc:creator>
      <dc:date>2021-05-12T11:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741063#M29109</link>
      <description>&lt;P&gt;So what you do is a so-called "lookup" (expanding a code to a derived value).&lt;/P&gt;
&lt;P&gt;There are several methods for doing this:&lt;/P&gt;
&lt;P&gt;A SQL join:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
  select
    a.account,
    a.code,
    b.country_label,
    a.product_type,
    a.value
  from gsquarterly_december_2020 a
  left join
  country_classification b
  on a.country_code = b.country_code
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Create a format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cntlin;
set country_classification;
fmtname = "country_label";
type = "C";
rename
  country_code=start
  country_label=label
;
keep fmtname type start label;
run;

data want;
set have;
country_label = put(country_code,country_label.);
keep account code&amp;nbsp;country_label&amp;nbsp;product_type&amp;nbsp;value;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A data step merge:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=country_classification;
by country_code;
run;

proc sort data=gsquarterly_december_2020;
by country_code;
run;

data want;
merge
  gsquarterly_december_2020 (in=a)
  country_classification
;
by country_code;
if a;
keep account code&amp;nbsp;country_label&amp;nbsp;product_type&amp;nbsp;value;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or, most modern, a hash object:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set gsquarterly_december_2020;
if _n_ = 1
then do;
  length country_label $30; /* use appropriate length here */
  declar hash cc (dataset:"country_classification");
  cc.definekey("country_code");
  cc.definedata("country_label");
  cc.definedone();
end;
if cc.find() ne 0 then country_label = "";
keep account code&amp;nbsp;country_label&amp;nbsp;product_type&amp;nbsp;value;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 May 2021 11:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741063#M29109</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-13T11:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741072#M29110</link>
      <description>Thank you so much for your help&lt;BR /&gt;I have an other question if you can help please&lt;BR /&gt;I want to classify account column by product then by country and do a graph.&lt;BR /&gt;How i can do that?</description>
      <pubDate>Thu, 13 May 2021 12:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741072#M29110</guid>
      <dc:creator>Sarra-Matri</dc:creator>
      <dc:date>2021-05-13T12:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741078#M29112</link>
      <description>&lt;P&gt;Please supply an example for your dataset in a data step with datalines, so I have something to work with.&lt;/P&gt;
&lt;P&gt;Describe how your graph should look like (line,bar,...) and what should be the X and Y axis values.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 12:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741078#M29112</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-13T12:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741089#M29117</link>
      <description>I have these tables and i want to classify column account (imports&lt;BR /&gt;/exports) by product then by country&lt;BR /&gt;then i should do a graph to the results</description>
      <pubDate>Thu, 13 May 2021 13:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741089#M29117</guid>
      <dc:creator>Sarra-Matri</dc:creator>
      <dc:date>2021-05-13T13:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: create new table sas studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741109#M29120</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q.JPG" style="width: 811px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59321i0F3B3FEBF192BB9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="q.JPG" alt="q.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q1.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59322i7F3A3392D70FFD8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="q1.JPG" alt="q1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q3.JPG" style="width: 834px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59323iF683CB7E8369F27D/image-size/large?v=v2&amp;amp;px=999" role="button" title="q3.JPG" alt="q3.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q4.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59324iDE677F58D05FCF4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="q4.JPG" alt="q4.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q5.JPG" style="width: 942px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59325i77334F96126F13FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="q5.JPG" alt="q5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 13:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/create-new-table-sas-studio/m-p/741109#M29120</guid>
      <dc:creator>Sarra-Matri</dc:creator>
      <dc:date>2021-05-13T13:41:58Z</dc:date>
    </item>
  </channel>
</rss>

