<?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: Internet (NIST) time and SAS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86865#M9175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The program returns the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Stderr output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system cannot find the path specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be a firewall issue on my end or a SAS issue (perhaps both)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 15:20:37 GMT</pubDate>
    <dc:creator>Doug</dc:creator>
    <dc:date>2013-09-19T15:20:37Z</dc:date>
    <item>
      <title>Internet (NIST) time and SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86863#M9173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to read time from one of the NIST servers into SAS directly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 18:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86863#M9173</guid>
      <dc:creator>Doug</dc:creator>
      <dc:date>2013-09-18T18:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Internet (NIST) time and SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86864#M9174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename foo pipe "/sbin/ntpdate -q time.nist.gov" ;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile foo firstobs=2 ;&lt;/P&gt;&lt;P&gt;input ;&lt;/P&gt;&lt;P&gt;day=scan(_infile_,1," ") ;&lt;/P&gt;&lt;P&gt;mon=scan(_infile_,2," ") ;&lt;/P&gt;&lt;P&gt;time=scan(_infile_,3," ") ;&lt;/P&gt;&lt;P&gt;ntp=strip(day)||strip(mon)||strip(time) ;&lt;/P&gt;&lt;P&gt;ntptime=input(ntp,datetime.) ;&lt;/P&gt;&lt;P&gt;put ntptime= datetime. ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 14:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86864#M9174</guid>
      <dc:creator>TimB_SAS</dc:creator>
      <dc:date>2013-09-19T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Internet (NIST) time and SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86865#M9175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The program returns the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Stderr output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system cannot find the path specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be a firewall issue on my end or a SAS issue (perhaps both)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86865#M9175</guid>
      <dc:creator>Doug</dc:creator>
      <dc:date>2013-09-19T15:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Internet (NIST) time and SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86866#M9176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to verify the path to the ntpdate command on your system - not to mention verify that it is installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command:&amp;nbsp;&amp;nbsp; which ntpdate&lt;/P&gt;&lt;P&gt;will show either the correct path to the command, or report that it is not found among the paths included in the $PATH environment variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86866#M9176</guid>
      <dc:creator>TimB_SAS</dc:creator>
      <dc:date>2013-09-19T15:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Internet (NIST) time and SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86867#M9177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which ntpdate - windows command?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86867#M9177</guid>
      <dc:creator>Doug</dc:creator>
      <dc:date>2013-09-19T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Internet (NIST) time and SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86868#M9178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I generally think of NTP as being Unix/Linux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll probably need to install NTP: &lt;A class="active_link" href="http://www.satsignal.eu/ntp/setup.html"&gt;http://www.satsignal.eu/ntp/setup.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then modify the SAS code to call the appropriate Windows command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86868#M9178</guid>
      <dc:creator>TimB_SAS</dc:creator>
      <dc:date>2013-09-19T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Internet (NIST) time and SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86869#M9179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh thanks! I take it there are not any pre-installed windows utilities which can do this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86869#M9179</guid>
      <dc:creator>Doug</dc:creator>
      <dc:date>2013-09-19T15:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Internet (NIST) time and SAS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86870#M9180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do it. Note this returns GMT, so you'll need to adjust for your time zone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename foo http "&lt;A href="http://www.time.gov/timezone.cgi?Eastern/d/-5/java"&gt;http://www.time.gov/timezone.cgi?Eastern/d/-5/java&lt;/A&gt;" debug ;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;/P&gt;&lt;P&gt;length p1 $50 ;&lt;/P&gt;&lt;P&gt;infile foo ;&lt;/P&gt;&lt;P&gt;input ;&lt;/P&gt;&lt;P&gt;put _infile_;&lt;/P&gt;&lt;P&gt;if index(_infile_, "NISTSendTime") then do ;&lt;/P&gt;&lt;P&gt;ind1=index(_infile_,'"') ;&lt;/P&gt;&lt;P&gt;p1=substr(_infile_,ind1+1,length(_infile_)-ind1-3) ;&lt;/P&gt;&lt;P&gt;mon=substr(scan(p1,1," "),1,3) ;&lt;/P&gt;&lt;P&gt;date=scan(p1,2,", ") ;&lt;/P&gt;&lt;P&gt;time=scan(p1,4," ") ;&lt;/P&gt;&lt;P&gt;year=put(year(today()),4.);&lt;/P&gt;&lt;P&gt;now=strip(date)||strip(mon)||year||' '||strip(time);&lt;/P&gt;&lt;P&gt;nistime=input(now, datetime.) ;&lt;/P&gt;&lt;P&gt;sastime=datetime();&lt;/P&gt;&lt;P&gt;put nistime= datetime. ;&lt;/P&gt;&lt;P&gt;put sastime= datetime. ;&lt;/P&gt;&lt;P&gt;stop ;&lt;/P&gt;&lt;P&gt;end ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 17:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Internet-NIST-time-and-SAS/m-p/86870#M9180</guid>
      <dc:creator>TimB_SAS</dc:creator>
      <dc:date>2013-09-19T17:06:56Z</dc:date>
    </item>
  </channel>
</rss>

