<?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: working with date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508809#M72919</link>
    <description>&lt;P&gt;I believe my earlier reply (Message 8 in this thread) still applies here.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2018 16:40:04 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-10-30T16:40:04Z</dc:date>
    <item>
      <title>working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508760#M72909</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a dataset where operation date is stored as MM/DD/YYYY format.&lt;/P&gt;&lt;P&gt;I want to categoize the dataset into 3 groups according to the following codes. Please let me know where am i making the mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data red.colonbundle3;&lt;BR /&gt;set red.colonbundle2;&lt;BR /&gt;input Operation_Date:mmddyy10. ;&lt;BR /&gt;if Operation_Date&amp;lt;='10/31/2014'd then date=1;&lt;BR /&gt;else if '11/1/2014'd&amp;lt;=Operation_Date&amp;lt;='10/31/2107'd then year=2;&lt;BR /&gt;else year=3;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508760#M72909</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-10-30T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508763#M72910</link>
      <description>&lt;P&gt;&lt;SPAN&gt;else if '11/1/2014'd&amp;lt;=Operation_Date&amp;lt;=&lt;STRONG&gt;'10/31/2107'd&lt;/STRONG&gt; then year=2;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For a minute I forgot what year we are in, not in &lt;STRONG&gt;2107&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;also sas data constants is in the form '01NOV2014'd&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doc Reference:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="100%" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR valign="bottom"&gt;
&lt;TD&gt;&lt;HR /&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD class="title2"&gt;&lt;A name="a000780357" target="_blank"&gt;&lt;/A&gt;Date, Time, and Datetime Constants&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strong"&gt;date constant&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strong"&gt;time constant&lt;/SPAN&gt;, or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strong"&gt;datetime constant&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by specifying the date or time in single or double quotation marks, followed by a D (date), T (time), or DT (datetime) to indicate the type of value.&lt;/P&gt;
&lt;P&gt;Any trailing blanks or leading blanks included within the quotation marks will not affect the processing of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strong"&gt;date constant&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strong"&gt;time constant&lt;/SPAN&gt;, or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="strong"&gt;datetime constant&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&lt;A name="a001375647" target="_blank"&gt;&lt;/A&gt;Use the following patterns to create date and time constants:&lt;/P&gt;
&lt;DL&gt;
&lt;DT&gt;&lt;A name="a001375648" target="_blank"&gt;&lt;/A&gt;'&lt;SPAN class="strong"&gt;ddmmm&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="strong"&gt;yy&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="strong"&gt;yy&lt;/SPAN&gt;'D or "&lt;SPAN class="strong"&gt;ddmmm&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="strong"&gt;yy&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="strong"&gt;yy&lt;/SPAN&gt;"D represents a SAS date value:&lt;/DT&gt;
&lt;DD&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A name="a001375649" target="_blank"&gt;&lt;/A&gt;&lt;SPAN class="strongMono"&gt;&lt;A name="a000780358" target="_blank"&gt;&lt;/A&gt;date='1jan2006'd;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;A name="a001375650" target="_blank"&gt;&lt;/A&gt;&lt;SPAN class="strongMono"&gt;&lt;A name="a001295267" target="_blank"&gt;&lt;/A&gt;date='01jan04'd;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DD&gt;
&lt;/DL&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508763#M72910</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-30T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508764#M72911</link>
      <description>&lt;P&gt;Please disregard the previous text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code i am using&lt;/P&gt;&lt;P&gt;data red.colonbundle3;&lt;BR /&gt;set red.colonbundle2;&lt;BR /&gt;input Operation_Date:mmddyy10.;&lt;BR /&gt;if Operation_Date&amp;lt;='10/31/2014'd then date=1;&lt;BR /&gt;else if '11/1/2014'd&amp;lt;=Operation_Date&amp;lt;='10/31/2107'd then date=2;&lt;BR /&gt;else date=3;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508764#M72911</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-10-30T15:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508765#M72912</link>
      <description>&lt;P&gt;A SAS date literal (in other programming languages you would say "constant") hast to come in the format "DDMMMYYYY"d, where MMM are the first three letters of the month name. So you should use&lt;/P&gt;
&lt;PRE&gt;'31oct2014'd
'01nov2014'd&lt;/PRE&gt;
&lt;P&gt;and so on.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508765#M72912</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-30T15:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508785#M72913</link>
      <description>&lt;P&gt;Upon running the below codes the value for date is 1 for all of them.&amp;nbsp; There is still something off with the code. please help. Once again, date in the dataset looks like MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data red.colonbundle3;&lt;BR /&gt;set red.colonbundle2;&lt;BR /&gt;if Operation_Date&amp;lt;='31oct2014'd then date=1;&lt;BR /&gt;else if '01nov2014'd&amp;lt;=Operation_Date&amp;lt;='31oct2017'd then date=2;&lt;BR /&gt;else date=3;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508785#M72913</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-10-30T16:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508789#M72914</link>
      <description>&lt;P&gt;Is operation_date a SAS date? Meaning, type is numeric, and format is MMDDYY10.&lt;/P&gt;
&lt;P&gt;For clarification, post the log of your data step.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508789#M72914</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-30T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508798#M72915</link>
      <description>&lt;P&gt;Pasting below part of the log-&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;25 data red.colonbundle3;&lt;BR /&gt;26 set red.colonbundle2;&lt;BR /&gt;27 if Operation_Date &amp;lt;= 10/31/2104 then date=1;&lt;BR /&gt;28 else if 11/1/2014 &amp;lt;= Operation_Date &amp;lt;= 10/31/2107 then date=2;&lt;BR /&gt;29 else date=3;&lt;BR /&gt;30 run;&lt;/P&gt;&lt;P&gt;NOTE: Character values have been converted to numeric values at the places given by:&lt;BR /&gt;(Line):(Column).&lt;BR /&gt;27:4 28:22&lt;BR /&gt;NOTE: Invalid numeric data, Operation_Date='01/04/2013' , at line 27 column 4.&lt;BR /&gt;LMRN=7221262 Date_of_Birth=01/10/1989 Age_at_Time_of_Surgery=23.98 Gender=Female Race=White&lt;BR /&gt;Hispanic_Ethnicity=No CPT_Code=44207&lt;BR /&gt;CPT_Description=Laparoscopy, surgical; colectomy, partial, with anastomosis, with coloproctostom&lt;BR /&gt;y (low pelvic anastomosis) Principal_Operative_Procedure= In_Out_Patient_Status=Inpatient&lt;BR /&gt;Elective_Surgery=Yes Origin_Status=Not transferred (admitted from home)&lt;BR /&gt;Hospital_Admission_Date=01/04/2013 Operation_Date=01/04/2013&lt;BR /&gt;Principal_Anesthesia_Technique=General Additional_Anesthesia_Technique_=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;on runing the proc contents the below shows up about operation date :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;SAS Output&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Operation_Date&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Char&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;10&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;$10.&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;$10.&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Operation Date&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508798#M72915</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-10-30T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508805#M72916</link>
      <description>&lt;P&gt;Operation_date is character, and so the code you have won't work, it expects numbers. You have to create a numeric SAS date variable from your character variable and then things will work. If you can show us a few of the values of Operation_Date, we could probably explain how to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see this now in your SASLOG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE: Invalid numeric data, Operation_Date='01/04/2013' , at line 27 column 4.&lt;/PRE&gt;
&lt;P&gt;so to convert this to an actual numeric date, try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;num_date=input(operation_date,mmddyy10.);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;followed by&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if num_Date &amp;lt;= '31OCT2014'd then date=1;
else if '01NOV2014'd &amp;lt;= num_Date &amp;lt;= '31OCT17'd then date=2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, another (and probably better way) to handle this is to use formats rather than date=1 or date=2.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508805#M72916</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-30T16:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508806#M72917</link>
      <description>&lt;P&gt;Which means your operation_date is not a SAS date, but a character variable.&lt;/P&gt;
&lt;P&gt;Make sure that dates are imported as such when data arrives in your data warehouse.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508806#M72917</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-30T16:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508807#M72918</link>
      <description>&lt;P&gt;sorry wrong log was pasted in previous text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;195 data red.colonbundle3;&lt;BR /&gt;196 set red.colonbundle2;&lt;BR /&gt;197&lt;BR /&gt;198 if Operation_Date&amp;lt;='31oct2014'd then date=1;&lt;BR /&gt;199 else if '01nov2014'd&amp;lt;=Operation_Date&amp;lt;='31oct2017'd then date=2;&lt;BR /&gt;200 else date=3;&lt;BR /&gt;201 run;&lt;/P&gt;&lt;P&gt;NOTE: Character values have been converted to numeric values at the places given by:&lt;BR /&gt;(Line):(Column).&lt;BR /&gt;198:4 199:23&lt;BR /&gt;NOTE: Invalid numeric data, Operation_Date='01/04/2013' , at line 198 column 4.&lt;BR /&gt;LMRN=7221262 Date_of_Birth=01/10/1989 Age_at_Time_of_Surgery=23.98 Gender=Female Race=White&lt;BR /&gt;Hispanic_Ethnicity=No CPT_Code=44207&lt;BR /&gt;CPT_Description=Laparoscopy, surgical; colectomy, partial, with anastomosis, with coloproctostom&lt;BR /&gt;y (low pelvic anastomosis) Principal_Operative_Procedure= In_Out_Patient_Status=Inpatient&lt;BR /&gt;Elective_Surgery=Yes Origin_Status=Not transferred (admitted from home)&lt;BR /&gt;Hospital_Admission_Date=01/04/2013 Operation_Date=01/04/2013&lt;BR /&gt;Principal_Anesthesia_Technique=General Additional_Anesthesia_Technique_=&lt;BR /&gt;Attending_Staff_Surgeon=KHAITOV,SERGEY (KHAITOV, SERGEY) Height=170.2 Height_Unit=cm&lt;BR /&gt;Weight=45.45 Weight_Unit=kg BMI=15.69 Diabetes_Mellitus=No Current_Smoker_within_1_year=No&lt;BR /&gt;Dyspnea=No Functional_Heath_Status=Independent Ventilator_Dependent=No History_of_Severe_COPD=No&lt;BR /&gt;Ascites_w_in_30_days_prior_to_su=No Congestive_Heart_Failure_w_in_30=No&lt;BR /&gt;Hypertension_requiring_medicatio=No Acute_Renal_Failure=No Currently_requiring_or_on_dialys=No&lt;BR /&gt;Disseminated_Cancer=No Open_Wound_with_or_without_infec=No Steroid_Immunosuppressant_use_fo=No&lt;BR /&gt;_10__loss_of_body_weight_in_the_=No Bleeding_Disorder=No Preop_Transfusions__RBC_w_in_72_=No&lt;BR /&gt;Sepsis__SIRS_Sepsis_Septic_shock=None All_Pre_op_Labs_Unknown= Serum_Sodium=136&lt;BR /&gt;Serum_Sodium_Date=12/14/2012 BUN=14 BUN_Date=12/14/2012 Serum_Creatinine=0.74&lt;BR /&gt;Serum_Creatinine_Date=12/14/2012 Albumin=4.5 Albumin_Date=12/14/2012 Total_Bilirubin=0.4&lt;BR /&gt;Total_Bilirubin_Date=12/14/2012 AST_SGOT=15 AST_SGOT_Date=12/14/2012 Alkaline_Phosphatase=63&lt;BR /&gt;Alkaline_Phosphatase_Date=12/14/2012 WBC=7.7 WBC_Date=12/14/2012 Hematocrit=39.7&lt;BR /&gt;Hematocrit_Date=12/14/2012 Platelet_Count=240 Platelet_Count_Date=12/14/2012 INR=1&lt;BR /&gt;INR_Date=12/14/2012 PTT=25.7 PTT_Date=12/14/2012 Emergency_Case=No&lt;BR /&gt;Wound_Classification=Clean/Contaminated&lt;BR /&gt;Surgical_Wound_s__Closure=All layers of incision (deep and superficial) fully closed&lt;BR /&gt;ASA_Classification=ASA 2 - Mild Disturb Duration_of_Surgical_Procedure__=83&lt;BR /&gt;__of_Other_Procedures=0 Other_Procedures_CPT= __of_Concurrent_Procedures=0&lt;BR /&gt;Concurrent_Procedures_CPT= __of_Postop_Superficial_Incision=0&lt;BR /&gt;__of_Postop_Superficial_Incisio0=0 __of_Postop_Deep_Incisional_SSI=0&lt;BR /&gt;__of_Postop_Deep_Incisional_SSI_=0 __of_Postop_Organ_Space_SSI=0&lt;BR /&gt;__of_Postop_Organ_Space_SSI_PATO=0 __of_Postop_Wound_Disruption=0 __of_Postop_Pneumonia=0&lt;BR /&gt;__of_Postop_Pneumonia_PATOS=0 __of_Postop_Unplanned_Intubation=0&lt;BR /&gt;__of_Postop_Pulmonary_Embolism=0 __of_Postop_On_Ventilator___48_h=0&lt;BR /&gt;__of_Postop_On_Ventilator___48_0=0 __of_Postop_Progressive_Renal_In=0&lt;BR /&gt;__of_Postop_Acute_Renal_Failure=0 __of_Postop_UTI=0 __of_Postop_UTI_PATOS=0 __of_Postop_CVA=0&lt;BR /&gt;__of_Postop_Cardiac_Arrest_Requi=0 __of_Postop_Myocardial_Infarctio=0&lt;BR /&gt;__of_Postop_Transfusion_Intraop_=0 Total_Blood_Transfused__in_units=&lt;BR /&gt;__of_Postop_Vein_Thrombosis_Requ=0 __of_Postop_C__diff=0 Type_of_C__diff_test_performed=&lt;BR /&gt;Result_of_C__diff_test= Was_patient_given_treatment_for_= Did_patient_with_C__diff_have_di=&lt;BR /&gt;__of_Postop_Sepsis=0 __of_Postop_Sepsis_PATOS=0 __of_Postop_Septic_Shock=0&lt;BR /&gt;__of_Postop_Septic_Shock_PATOS=0 __of_Postop_Other_Occurrences=0&lt;BR /&gt;Acute_Hospital_Discharge_Date=01/08/2013 Hospital_Length_of_Stay=4&lt;BR /&gt;Hospital_Discharge_Destination=Home Postoperative_ICD9_Code=555.9&lt;BR /&gt;Postoperative_ICD9_Description=REGIONAL ENTERITIS OF UNSPECIFIED SITE Postoperative_ICD10_Code=&lt;BR /&gt;Postoperative_ICD10_Description= Still_in_Hospital__30_Days=&lt;BR /&gt;Postop_Death_w_in_30_days_of_Pro=No Postoperative_Death___30_days_of=No Date_of_Death=&lt;BR /&gt;Date_of_Death_Unknown= End_of_Life_Withdrawal_of_Care= __of_Readmissions_w_in_30_days=0&lt;BR /&gt;Date_of_First_Readmission= __of_Unplanned_Readmissions=0 __of_Readmissions_likely_related=0&lt;BR /&gt;__of_Readmissions_likely_unrelat=0 First_Unplanned_return_to_OR=No&lt;BR /&gt;Date__of_First_Unplanned_Return_= __of_First_Unplanned_Return_Proc=0&lt;BR /&gt;First_Unplanned_Return_CPT= First_Unplanned_Return_Related_t= Second_unplanned_return_to_OR=&lt;BR /&gt;Date_of_Second_unplanned_return= __of_Second_Unplanned_Return_Pro=0&lt;BR /&gt;Second_Unplanned_Return_CPT= Second_Unplanned_Return_Related_=&lt;BR /&gt;More_than_2_unplanned_returns_to= Colectomy_Steroid_Immunosuppress=No&lt;BR /&gt;Colectomy_Steroid_Immunosuppres0= Colectomy_Mechanical_Bowel_Prep=No&lt;BR /&gt;Colectomy_Mechanical_Bowel_Prep_= Colectomy_Oral_Antibiotic_Prep=Yes&lt;BR /&gt;Colectomy_Oral_Antibiotic_Prep_U= Colectomy_Primary_Indication_for=Crohn's Disease&lt;BR /&gt;Colectomy_Non_Emergent_Indicatio= Colectomy_Non_Emergent_Indicati0=&lt;BR /&gt;Colectomy_Indication_for_Surgery= Colectomy_Emergent_Indication_IC=&lt;BR /&gt;Colectomy_Emergent_Indication_I0= Colectomy_Operative_Approach=Laparoscopic&lt;BR /&gt;Colectomy_Postop_Anastomotic_Lea=No definitive diagnosis of leak/leak related abscess&lt;BR /&gt;Colectomy_Prolonged_Postoperativ=No Colectomy_Prolonged_Postoperati0=&lt;BR /&gt;Proctectomy_Clear_Distal_Margin_= Proctectomy_Operative_Approach=&lt;BR /&gt;Proctectomy_Postop_Anastomotic_L= Proctectomy_Prolonged_Postoperat=&lt;BR /&gt;Proctectomy_Prolonged_Postopera0= _0_Day_F_U_Complete=Yes Follow_up_Days= date=1 _ERROR_=1&lt;BR /&gt;_N_=1&lt;BR /&gt;NOTE: Invalid numeric data, Operation_Date='01/04/2013' , at line 198 column 4.&lt;BR /&gt;LMRN=2384934 Date_of_Birth=03/29/1956 Age_at_Time_of_Surgery=56.77 Gender=Female Race=White&lt;BR /&gt;Hispanic_Ethnicity=No CPT_Code=45110&lt;BR /&gt;CPT_Description=Proctectomy; complete, combined abdominoperineal, with colostomy&lt;BR /&gt;Principal_Operative_Procedure=Bilateral ureteral stent placement and cystoscopy by Urology.&lt;BR /&gt;2. E&lt;BR /&gt;xploratory laparotomy.&lt;BR /&gt;3. Lysis of adhesions.&lt;BR /&gt;4. Abdominoperineal resection of J-pouch.&lt;BR /&gt;5. End i&lt;BR /&gt;leostomy. In_Out_Patient_Status=Inpatient Elective_Surgery=No&lt;BR /&gt;Origin_Status=Not transferred (admitted from home) Hospital_Admission_Date=01/03/2013&lt;BR /&gt;Operation_Date=01/04/2013 Principal_Anesthesia_Technique=General&lt;BR /&gt;Additional_Anesthesia_Technique_= Attending_Staff_Surgeon=BAUER,J. (BAUER, J.) Height=69&lt;BR /&gt;Height_Unit=in Weight=68 Weight_Unit=kg BMI=22.14 Diabetes_Mellitus=No&lt;BR /&gt;Current_Smoker_within_1_year=No Dyspnea=No Functional_Heath_Status=Independent&lt;BR /&gt;Ventilator_Dependent=No History_of_Severe_COPD=No Ascites_w_in_30_days_prior_to_su=No&lt;BR /&gt;Congestive_Heart_Failure_w_in_30=No Hypertension_requiring_medicatio=No Acute_Renal_Failure=No&lt;BR /&gt;Currently_requiring_or_on_dialys=No Disseminated_Cancer=No Open_Wound_with_or_without_infec=No&lt;BR /&gt;Steroid_Immunosuppressant_use_fo=Yes _10__loss_of_body_weight_in_the_=No Bleeding_Disorder=No&lt;BR /&gt;Preop_Transfusions__RBC_w_in_72_=No Sepsis__SIRS_Sepsis_Septic_shock=None&lt;BR /&gt;All_Pre_op_Labs_Unknown= Serum_Sodium=137 Serum_Sodium_Date=01/03/2013 BUN=12&lt;BR /&gt;BUN_Date=01/03/2013 Serum_Creatinine=0.76 Serum_Creatinine_Date=01/03/2013 Albumin=4&lt;BR /&gt;Albumin_Date=01/03/2013 Total_Bilirubin=0.4 Total_Bilirubin_Date=01/03/2013 AST_SGOT=19&lt;BR /&gt;AST_SGOT_Date=01/03/2013 Alkaline_Phosphatase=71 Alkaline_Phosphatase_Date=01/03/2013 WBC=6.1&lt;BR /&gt;WBC_Date=01/03/2013 Hematocrit=35.1 Hematocrit_Date=01/03/2013 Platelet_Count=172&lt;BR /&gt;Platelet_Count_Date=01/03/2013 INR=1 INR_Date=01/03/2013 PTT=40.9 PTT_Date=01/03/2013&lt;BR /&gt;Emergency_Case=No Wound_Classification=Clean/Contaminated&lt;BR /&gt;Surgical_Wound_s__Closure=All layers of incision (deep and superficial) fully closed&lt;BR /&gt;ASA_Classification=ASA 3 - Severe Disturb Duration_of_Surgical_Procedure__=262&lt;BR /&gt;__of_Other_Procedures=0 Other_Procedures_CPT= __of_Concurrent_Procedures=0&lt;BR /&gt;Concurrent_Procedures_CPT= __of_Postop_Superficial_Incision=0&lt;BR /&gt;__of_Postop_Superficial_Incisio0=0 __of_Postop_Deep_Incisional_SSI=0&lt;BR /&gt;__of_Postop_Deep_Incisional_SSI_=0 __of_Postop_Organ_Space_SSI=0&lt;BR /&gt;__of_Postop_Organ_Space_SSI_PATO=0 __of_Postop_Wound_Disruption=0 __of_Postop_Pneumonia=0&lt;BR /&gt;__of_Postop_Pneumonia_PATOS=0 __of_Postop_Unplanned_Intubation=0&lt;BR /&gt;__of_Postop_Pulmonary_Embolism=0 __of_Postop_On_Ventilator___48_h=0&lt;BR /&gt;__of_Postop_On_Ventilator___48_0=0 __of_Postop_Progressive_Renal_In=0&lt;BR /&gt;__of_Postop_Acute_Renal_Failure=0 __of_Postop_UTI=0 __of_Postop_UTI_PATOS=0 __of_Postop_CVA=0&lt;BR /&gt;__of_Postop_Cardiac_Arrest_Requi=0 __of_Postop_Myocardial_Infarctio=0&lt;BR /&gt;__of_Postop_Transfusion_Intraop_=0 Total_Blood_Transfused__in_units=&lt;BR /&gt;__of_Postop_Vein_Thrombosis_Requ=0 __of_Postop_C__diff=0 Type_of_C__diff_test_performed=&lt;BR /&gt;Result_of_C__diff_test= Was_patient_given_treatment_for_= Did_patient_with_C__diff_have_di=&lt;BR /&gt;__of_Postop_Sepsis=0 __of_Postop_Sepsis_PATOS=0 __of_Postop_Septic_Shock=0&lt;BR /&gt;__of_Postop_Septic_Shock_PATOS=0 __of_Postop_Other_Occurrences=0&lt;BR /&gt;Acute_Hospital_Discharge_Date=01/09/2013 Hospital_Length_of_Stay=6&lt;BR /&gt;Hospital_Discharge_Destination=Home Postoperative_ICD9_Code=555.9&lt;BR /&gt;Postoperative_ICD9_Description=REGIONAL ENTERITIS OF UNSPECIFIED SITE Postoperative_ICD10_Code=&lt;BR /&gt;Postoperative_ICD10_Description= Still_in_Hospital__30_Days=&lt;BR /&gt;Postop_Death_w_in_30_days_of_Pro=No Postoperative_Death___30_days_of=No Date_of_Death=&lt;BR /&gt;Date_of_Death_Unknown= End_of_Life_Withdrawal_of_Care= __of_Readmissions_w_in_30_days=0&lt;BR /&gt;Date_of_First_Readmission= __of_Unplanned_Readmissions=0 __of_Readmissions_likely_related=0&lt;BR /&gt;__of_Readmissions_likely_unrelat=0 First_Unplanned_return_to_OR=No&lt;BR /&gt;Date__of_First_Unplanned_Return_= __of_First_Unplanned_Return_Proc=0&lt;BR /&gt;First_Unplanned_Return_CPT= First_Unplanned_Return_Related_t= Second_unplanned_return_to_OR=&lt;BR /&gt;Date_of_Second_unplanned_return= __of_Second_Unplanned_Return_Pro=0&lt;BR /&gt;Second_Unplanned_Return_CPT= Second_Unplanned_Return_Related_=&lt;BR /&gt;More_than_2_unplanned_returns_to= Colectomy_Steroid_Immunosuppress=&lt;BR /&gt;Colectomy_Steroid_Immunosuppres0= Colectomy_Mechanical_Bowel_Prep=&lt;BR /&gt;Colectomy_Mechanical_Bowel_Prep_= Colectomy_Oral_Antibiotic_Prep=&lt;BR /&gt;Colectomy_Oral_Antibiotic_Prep_U= Colectomy_Primary_Indication_for=&lt;BR /&gt;Colectomy_Non_Emergent_Indicatio= Colectomy_Non_Emergent_Indicati0=&lt;BR /&gt;Colectomy_Indication_for_Surgery= Colectomy_Emergent_Indication_IC=&lt;BR /&gt;Colectomy_Emergent_Indication_I0= Colectomy_Operative_Approach=&lt;BR /&gt;Colectomy_Postop_Anastomotic_Lea= Colectomy_Prolonged_Postoperativ=&lt;BR /&gt;Colectomy_Prolonged_Postoperati0= Proctectomy_Clear_Distal_Margin_=&lt;BR /&gt;Proctectomy_Operative_Approach=Open (planned)&lt;BR /&gt;Proctectomy_Postop_Anastomotic_L=No definitive diagnosis of leak/leak related abscess&lt;BR /&gt;Proctectomy_Prolonged_Postoperat=No Proctectomy_Prolonged_Postopera0= _0_Day_F_U_Complete=No&lt;BR /&gt;Follow_up_Days=20 date=1 _ERROR_=1 _N_=2&lt;BR /&gt;NOTE: Invalid numeric data, Operation_Date='01/04/2013' , at line 198 column 4.&lt;BR /&gt;LMRN=3649465 Date_of_Birth=06/13/1954 Age_at_Time_of_Surgery=58.56 Gender=Male Race=White&lt;BR /&gt;Hispanic_Ethnicity=No CPT_Code=44310 CPT_Description=Ileostomy or jejunostomy, non-tube&lt;BR /&gt;Principal_Operative_Procedure= In_Out_Patient_Status=Inpatient Elective_Surgery=Yes&lt;BR /&gt;Origin_Status=Not transferred (admitted from home) Hospital_Admission_Date=01/04/2013&lt;BR /&gt;Operation_Date=01/04/2013 Principal_Anesthesia_Technique=General&lt;BR /&gt;Additional_Anesthesia_Technique_=General Attending_Staff_Surgeon=BAUER,J. (BAUER, J.) Height=70&lt;BR /&gt;Height_Unit=in Weight=80 Weight_Unit=kg BMI=25.31 Diabetes_Mellitus=Non-Insulin&lt;BR /&gt;Current_Smoker_within_1_year=No Dyspnea=No Functional_Heath_Status=Independent&lt;BR /&gt;Ventilator_Dependen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On running proc contents the following shows up about operation date.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;SAS Output&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Operation_Date&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Char&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;10&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;$10.&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;$10.&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;Operation Date&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508807#M72918</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-10-30T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508809#M72919</link>
      <description>&lt;P&gt;I believe my earlier reply (Message 8 in this thread) still applies here.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508809#M72919</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-30T16:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508811#M72920</link>
      <description>&lt;P&gt;some of the values of operation_date are-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;01/04/2013&lt;/P&gt;&lt;P&gt;02/04/2013&lt;/P&gt;&lt;P&gt;02/05/2013&lt;/P&gt;&lt;P&gt;01/31/2013&lt;/P&gt;&lt;P&gt;02/04/2013&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508811#M72920</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-10-30T16:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: working with date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508817#M72921</link>
      <description>&lt;P&gt;Yes , the code you gave me in messase 8 worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot. This community has been a great help to me.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/working-with-date/m-p/508817#M72921</guid>
      <dc:creator>Kyra</dc:creator>
      <dc:date>2018-10-30T16:47:26Z</dc:date>
    </item>
  </channel>
</rss>

