<?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 sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269532#M53426</link>
    <description>&lt;P&gt;Then go&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;'s route&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table1;
set table;
format Var1 Var2 Var3 ddmmyy8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;all other vars will keep their original format (or lack of).&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 18:01:31 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-05-10T18:01:31Z</dc:date>
    <item>
      <title>Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269497#M53406</link>
      <description>PROC SQL ;&lt;BR /&gt;create table table1 as&lt;BR /&gt;Select /*all the columns*/&lt;BR /&gt;T1.date FORMAT=DDMMYY8. ,&lt;BR /&gt;T1.bithdaydate FORMAT=DDMMYY8. ,&lt;BR /&gt;From work.table t1 ;&lt;BR /&gt;Quit ;&lt;BR /&gt;&lt;BR /&gt;That's what i want to produce because my dates are in number format ...&lt;BR /&gt;However i want to avoid writting all the column's name .&lt;BR /&gt;Thanks for your help !&lt;BR /&gt;&lt;BR /&gt;Regards ,&lt;BR /&gt;Iris</description>
      <pubDate>Tue, 10 May 2016 16:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269497#M53406</guid>
      <dc:creator>Iris83</dc:creator>
      <dc:date>2016-05-10T16:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269501#M53409</link>
      <description>&lt;P&gt;You can use T1.* but then you can't specify the date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If ALL your columns are date and it's a straight select it's probably easier to use a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table1;
set table;
format _numeric_ ddmmyy8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another little trick I use is the FEEDBACK option. Look at the log after this submission and see the full code expanded so it's easier to modify then.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL FEEDBACK ;
create table table1 as
Select t1.*
From work.table t1 ;
Quit ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 May 2016 16:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269501#M53409</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-10T16:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269507#M53413</link>
      <description>Thank you very much for the tips .&lt;BR /&gt;&lt;BR /&gt;All my column are in different formats ... That's why i can't change all the column's formats into date format .&lt;BR /&gt;The t1* as you said is bit working in my situation ...&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Tue, 10 May 2016 16:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269507#M53413</guid>
      <dc:creator>Iris83</dc:creator>
      <dc:date>2016-05-10T16:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269511#M53416</link>
      <description>&lt;P&gt;Would it be fair to assume that date variables include the word DATE in their name?&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 16:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269511#M53416</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-10T16:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269526#M53423</link>
      <description>No but , there are only 6 so i don't mind writting them manualy , it's more writting all the other that is complicated .&lt;BR /&gt;Thanks for your help&lt;BR /&gt;</description>
      <pubDate>Tue, 10 May 2016 17:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269526#M53423</guid>
      <dc:creator>Iris83</dc:creator>
      <dc:date>2016-05-10T17:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269532#M53426</link>
      <description>&lt;P&gt;Then go&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;'s route&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table1;
set table;
format Var1 Var2 Var3 ddmmyy8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;all other vars will keep their original format (or lack of).&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 18:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql/m-p/269532#M53426</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-10T18:01:31Z</dc:date>
    </item>
  </channel>
</rss>

