<?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: Changing reference time for time variable in format (mm:ss:ss) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385946#M277164</link>
    <description>&lt;P&gt;Can you please explain what do you mean by&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;reference time value&lt;/SPAN&gt;&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;Can you post/display your expected results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doesn't input of your data, beeing converted to sas time variable and sorted - do what you want?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2017 06:27:58 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2017-08-07T06:27:58Z</dc:date>
    <item>
      <title>Changing reference time for time variable in format (mm:ss:ss)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385935#M277163</link>
      <description>&lt;P&gt;I have time variables in the format: mm:ss:ss (ex: 06:30:00) representing 06 minutes, 30 seconds, and 00 hundreths of a second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example listed below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="time.PNG" style="width: 81px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14354iCAF3C076548E2858/image-size/large?v=v2&amp;amp;px=999" role="button" title="time.PNG" alt="time.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there was a way to assign a reference time value as 12 minutes (12:00:00) in descending order until 00:00:00 as in like a quarter for an NBA game. &amp;nbsp;I'm sure I could do a do loop to achieve , but I was wondering if there was a global option to assign this just like the "yearcutoff= ####" global option does for datetime formats.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help in going about this or dealing with time values in SAS would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 04:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385935#M277163</guid>
      <dc:creator>bgonth1</dc:creator>
      <dc:date>2017-08-07T04:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing reference time for time variable in format (mm:ss:ss)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385946#M277164</link>
      <description>&lt;P&gt;Can you please explain what do you mean by&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;reference time value&lt;/SPAN&gt;&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;Can you post/display your expected results?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doesn't input of your data, beeing converted to sas time variable and sorted - do what you want?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 06:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385946#M277164</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-07T06:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing reference time for time variable in format (mm:ss:ss)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385947#M277165</link>
      <description>&lt;P&gt;There is no such option for time, and your need is unclear. What should the output look like?&lt;/P&gt;
&lt;P&gt;There should be a dot between seconds and hundredths, not a colon. Is this a&amp;nbsp;string?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 06:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385947#M277165</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-08-07T06:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing reference time for time variable in format (mm:ss:ss)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385951#M277166</link>
      <description>&lt;P&gt;Please supply some example data (convert your dataset to a data step with the macro provided in &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;), and examples for the expected results.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 06:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385951#M277166</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-07T06:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing reference time for time variable in format (mm:ss:ss)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385957#M277167</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 466px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14358iE5EBDB987A8CD7A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So basically, I want to convert the input in order to determine the proportion of how much time is remaining using the base value of 12:00:00. &amp;nbsp;For example, converting the time input values into seconds, and converting the base value into seconds and dividing the input by the base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I know how to do the math, but the formatting from the data set i was using was throwing me off, and I was confused on how to go about getting the output. &amp;nbsp;I ended up reading up on the time&lt;EM&gt;w&lt;/EM&gt;. informat that can read this and convert it to a value in seconds with the reference&amp;nbsp;being 00:00:00 or 12 AM, which is similar to date informats in sas with days. &amp;nbsp;From this comparison, I was wondering if there was a way to change this reference value with a global option.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 07:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385957#M277167</guid>
      <dc:creator>bgonth1</dc:creator>
      <dc:date>2017-08-07T07:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing reference time for time variable in format (mm:ss:ss)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385958#M277168</link>
      <description>&lt;P&gt;That's a simple division:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input clockstr $8.;
substr(clockstr,6,1) = '.';
game_clock = input('00:'!!clockstr,time11.2);
format game_clock mmss11.2;
keep game_clock;
cards;
11:42:00
10:10:00
03:43:00
;
run;

data want;
set have;
format prop_remain 5.3;
prop_remain = game_clock / '00:12:00't;
run;

proc print data=want noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;              prop_
game_clock    remain

  11:42.00    0.975 
  10:10.00    0.847 
   3:43.00    0.310 
&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Aug 2017 07:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/385958#M277168</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-07T07:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing reference time for time variable in format (mm:ss:ss)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/386031#M277169</link>
      <description>&lt;P&gt;At first glance it appears that you also are dealing with periods&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 14:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-reference-time-for-time-variable-in-format-mm-ss-ss/m-p/386031#M277169</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-07T14:35:02Z</dc:date>
    </item>
  </channel>
</rss>

