<?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: How to read date value from Unix and use into sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493581#M129857</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;Really need more details of what you are attempting to do, as it is still unclear.&lt;BR /&gt;From this post it looks like you&amp;nbsp;might be attempting to pass a parameter/argument from&amp;nbsp;Unix into a SAS program&lt;BR /&gt;&lt;BR /&gt;You can do this by using the SYSPARM invocation option, which the SAS program can then read via the SYSPARM macro variable, further details can be found &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=p0ajr6rtdhuhzbn199hhpkak2v8p.htm&amp;amp;locale=en#n1d400u9hbrx10n18moqdi9p6p73-n0b34ev56ei8myn1awzxvulahvpa" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 18:28:54 GMT</pubDate>
    <dc:creator>AMSAS</dc:creator>
    <dc:date>2018-09-07T18:28:54Z</dc:date>
    <item>
      <title>How to read date value from Unix and use into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493559#M129848</link>
      <description>I want to read date value from Unix and the value I want to use in SAS programming.</description>
      <pubDate>Fri, 07 Sep 2018 17:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493559#M129848</guid>
      <dc:creator>SRINIVAS_N</dc:creator>
      <dc:date>2018-09-07T17:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to read date value from Unix and use into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493562#M129849</link>
      <description>&lt;P&gt;Hi Srinivas_N&lt;BR /&gt;&lt;BR /&gt;To fully answer this you need to supply more information:&lt;BR /&gt;&lt;BR /&gt;Where is your data stored, what is the format of that data, etc.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;For example if you were reading a text file "\some\file.txt"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data mySASDS ;&amp;nbsp; /* This creates a SAS dataset in the WORK library */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; infile&amp;nbsp;&lt;SPAN&gt;"\some\file.txt"&amp;nbsp; ; /* This defines your source file */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; input num_var str_var $ date_var ddmmyy. ; /* This tells SAS how to read the data in the source file */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There's more to it than that, but that's the basics. I suggest you go loop up those statements in the documentation and look at the examples&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 17:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493562#M129849</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2018-09-07T17:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to read date value from Unix and use into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493563#M129850</link>
      <description>&lt;P&gt;What is the current reason you cannot do this?&lt;/P&gt;
&lt;P&gt;What is the source data?&lt;/P&gt;
&lt;P&gt;What have you tried that doesn't work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162184"&gt;@SRINIVAS_N&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I want to read date value from Unix and the value I want to use in SAS programming.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 17:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493563#M129850</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-07T17:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to read date value from Unix and use into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493566#M129852</link>
      <description>&lt;P&gt;If you want to import a typical UNIX timestamp into SAS, you need to do the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;read into a numeric variable&lt;/LI&gt;
&lt;LI&gt;add '01jan1970:00:00:00'dt to it&lt;/LI&gt;
&lt;LI&gt;format as a datetime value or&lt;/LI&gt;
&lt;LI&gt;use the datepart() function to extract the date, and use a date format&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;UNIX timestamps are counts of seconds like they are in SAS, but the zero point is different.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 17:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493566#M129852</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-07T17:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to read date value from Unix and use into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493567#M129853</link>
      <description>Today() returns today's date&lt;BR /&gt;I want to pass a date value to control m scheduler ,so I want to get date&lt;BR /&gt;value from Unix to SAS</description>
      <pubDate>Fri, 07 Sep 2018 18:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493567#M129853</guid>
      <dc:creator>SRINIVAS_N</dc:creator>
      <dc:date>2018-09-07T18:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to read date value from Unix and use into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493581#M129857</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;Really need more details of what you are attempting to do, as it is still unclear.&lt;BR /&gt;From this post it looks like you&amp;nbsp;might be attempting to pass a parameter/argument from&amp;nbsp;Unix into a SAS program&lt;BR /&gt;&lt;BR /&gt;You can do this by using the SYSPARM invocation option, which the SAS program can then read via the SYSPARM macro variable, further details can be found &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=p0ajr6rtdhuhzbn199hhpkak2v8p.htm&amp;amp;locale=en#n1d400u9hbrx10n18moqdi9p6p73-n0b34ev56ei8myn1awzxvulahvpa" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 18:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-value-from-Unix-and-use-into-sas/m-p/493581#M129857</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2018-09-07T18:28:54Z</dc:date>
    </item>
  </channel>
</rss>

