<?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: Combining variables into one output in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184013#M46786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data NEW;&lt;/P&gt;&lt;P&gt;set OLD;&lt;/P&gt;&lt;P&gt;sasdate=mdy(CALL_MONTH,CALL_DAY,CALL_YEAR);&lt;/P&gt;&lt;P&gt;format sasdate mmddyyD10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 18:46:49 GMT</pubDate>
    <dc:creator>nathan_owens</dc:creator>
    <dc:date>2015-02-26T18:46:49Z</dc:date>
    <item>
      <title>Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184006#M46779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three separate variables: day, month, and year.&lt;/P&gt;&lt;P&gt;I would like to construct a variable that retains the first occurrence of a certain value, and then outputs the date of the occurrence in the form of MM-DD-YYYY. &lt;/P&gt;&lt;P&gt;Does anyone know how I would go about this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much thanks in advance!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 16:39:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184006#M46779</guid>
      <dc:creator>summerkk</dc:creator>
      <dc:date>2015-02-26T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184007#M46780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at mdy function (&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000199044.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000199044.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 16:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184007#M46780</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-02-26T16:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184008#M46781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done this 2 ways:&lt;/P&gt;&lt;P&gt; a. use %let = variablename (such as year, month day) and then referencing them as macro variables&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt; b. use a data step to set the variables &lt;SPAN style="font-size: 13.3333330154419px;"&gt;and then referencing them as macro variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using method a:&lt;/P&gt;&lt;P&gt;%let rundate = %SYSFUNC(today(),yymmddn8.);&lt;/P&gt;&lt;P&gt;%let runhour = %SYSFUNC(HOUR(%SYSFUNC(time(), MINUTE.)), Z2.);&lt;/P&gt;&lt;P&gt;%let runmin = %SYSFUNC(MINUTE(%SYSFUNC(TIME(), MINUTE.)), Z2.);&lt;/P&gt;&lt;P&gt;then set variable to use the above values:&lt;/P&gt;&lt;P&gt;%let exportfile="REPORT_as_of_&amp;amp;rundate._&amp;amp;runhour.&amp;amp;runmin..xml";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the extra period after each macro variable when it is referenced using &amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using method b:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a table that gets the "rundate":&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CREATE TABLE WORK.GET_REPORT_RUNDATE AS &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SELECT DISTINCT /* REPORT_RUNDATE */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (DATETIME()) FORMAT=NLDATM30. AS REPORT_RUNDATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM WORK.GET_ALL_TESTS t1;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use a data step to break apart the datetime:&lt;/P&gt;&lt;P&gt;data temp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set work.get_report_rundate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rundate = datepart(report_rundate);&lt;/P&gt;&lt;P&gt;&amp;nbsp; year = year(rundate);&lt;/P&gt;&lt;P&gt;&amp;nbsp; month = month(rundate);&lt;/P&gt;&lt;P&gt;&amp;nbsp; runtime = timepart(report_rundate);&lt;/P&gt;&lt;P&gt;&amp;nbsp; hour = hour(runtime);&lt;/P&gt;&lt;P&gt;&amp;nbsp; minute = minute(runtime);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format month z2.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format hour z2.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format minute z2.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; charmonth = put(month, z2.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; charhour = put(hour, z2.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; charmin = put(minute, z2.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; reportrundate = year||charmonth||'_'||charhour||charmin;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, reference those macro variables :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;%let exportfile="REPORT_as_of_&amp;amp;rundate._&amp;amp;runhour.&amp;amp;runmin..xml";&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 17:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184008#M46781</guid>
      <dc:creator>george_proc_sql</dc:creator>
      <dc:date>2015-02-26T17:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184009#M46782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Bear with me, I am new to sas: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did see this on another thread: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H6 style="font-weight: normal; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="font-color-meta-light" href="https://communities.sas.com/message/114887#114887" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;" title="回复链接 #1"&gt;1.&lt;/A&gt; &lt;A _jive_internal="true" class="font-color-meta-light" href="https://communities.sas.com/message/114887#114887" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;how to convert char var to sas date?&lt;/A&gt;&lt;/STRONG&gt;&lt;/H6&gt;&lt;P class="j-post-avatar" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="j-avatar jiveTT-hover-user" data-avatarid="1025" data-externalid="" data-presence="null" data-userid="5068" data-username="Hai.kuo" href="https://communities.sas.com/people/Hai.kuo" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;&lt;IMG alt="Hai.kuo" border="0" class="jive-avatar jiveImage" data-height="46" height="46" src="https://communities.sas.com/people/Hai.kuo/avatar/46.png?a=1025" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="46" /&gt;&lt;/A&gt;&lt;SPAN class="j-status-levels" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;IMG alt="Master" class="jiveImage" src="https://communities.sas.com/5.0.2/images/status/statusicon-51.gif" style="font-weight: inherit; font-style: inherit; font-family: inherit;" title="Master" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author " style="font-weight: inherit; font-style: inherit; font-size: 0.9em; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.6999998092651px; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1025" data-externalid="" data-presence="null" data-userid="5068" data-username="Hai.kuo" href="https://communities.sas.com/people/Hai.kuo" id="jive-506840351038830210186" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #0e66ba;"&gt;Hai.kuo&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Well, it seems working for me, please see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;data have;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;infile cards;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;informat date $80.;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;input date ;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;cards;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;05/21/2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;07/01/2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;03/01/2011&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;data want;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;set have;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;format _date mmddyy10.;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;_date=input(trim(date),MMDDYY10.);&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;run;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;My suspicion is that you can't just convert char to numeric under the SAME variable name. You have to create another variable to the job, and if you want your old name back, you can always do it using date step options like: drop= rename=.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;However, without seeing your code and log, I can be totally off on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Regards,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Haikuo&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;However my problem is my date, year, and month are each a different variable, it is not together as in the example above. In the link you gave me, it seems to require the user to input the date manually.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 17:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184009#M46782</guid>
      <dc:creator>summerkk</dc:creator>
      <dc:date>2015-02-26T17:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184010#M46783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;NewVar = mdy(monthvar,dayvar,yearvar);&lt;/P&gt;&lt;P&gt;format Newvar mmddyyd10.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 18:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184010#M46783</guid>
      <dc:creator>nathan_owens</dc:creator>
      <dc:date>2015-02-26T18:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184011#M46784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know how I would put it in my code? so far I have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data NEW;&lt;/P&gt;&lt;P&gt;set OLD;&lt;/P&gt;&lt;P&gt;*what command do I put here?* sasdate=mdy(CALL_MONTH,CALL_DAY,CALL_YEAR);&lt;/P&gt;&lt;P&gt;format sasdate mmddyyD10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 18:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184011#M46784</guid>
      <dc:creator>summerkk</dc:creator>
      <dc:date>2015-02-26T18:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184012#M46785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens when you run the code that you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 18:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184012#M46785</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-02-26T18:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184013#M46786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data NEW;&lt;/P&gt;&lt;P&gt;set OLD;&lt;/P&gt;&lt;P&gt;sasdate=mdy(CALL_MONTH,CALL_DAY,CALL_YEAR);&lt;/P&gt;&lt;P&gt;format sasdate mmddyyD10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 18:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184013#M46786</guid>
      <dc:creator>nathan_owens</dc:creator>
      <dc:date>2015-02-26T18:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184014#M46787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run a proc freq on sasdate, it says all the frequencies are missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 20:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184014#M46787</guid>
      <dc:creator>summerkk</dc:creator>
      <dc:date>2015-02-26T20:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184015#M46788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you get when you run proc freq on &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;CALL_MONTH,CALL_DAY and CALL_YEAR?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 20:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184015#M46788</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-02-26T20:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184016#M46789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got frequencies when I ran the variables individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 20:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184016#M46789</guid>
      <dc:creator>summerkk</dc:creator>
      <dc:date>2015-02-26T20:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184017#M46790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Convert each of the fields to a number:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;sasdate=mdy(input(left(CALL_MONTH),2.),input(left(CALL_DAY),2.),input(left(CALL_YEAR),4.));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;If the columns are no wider than the numbers then you don't need the left function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 20:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184017#M46790</guid>
      <dc:creator>nathan_owens</dc:creator>
      <dc:date>2015-02-26T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Combining variables into one output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184018#M46791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out what I was doing wrong...I was using the wrong data set to run the proc freq. Sorry about the silly mistake. It works now..thanks everybody for your help!!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 20:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Combining-variables-into-one-output/m-p/184018#M46791</guid>
      <dc:creator>summerkk</dc:creator>
      <dc:date>2015-02-26T20:44:23Z</dc:date>
    </item>
  </channel>
</rss>

