<?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: use of informat in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619198#M19349</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data out;
input CALL_NO 1-3
 @5 DATE mmddyy8.
TRUCKS 14-15
ALARM 17;
format date mmddyy8.;
datalines;
001 10/21/94 03 2
002 10/23/94 01 1
003 11/01/94 11 3
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Jan 2020 15:59:40 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2020-01-22T15:59:40Z</dc:date>
    <item>
      <title>use of informat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619195#M19348</link>
      <description>&lt;P&gt;i got stuck in this problem and it is not showing sas format&amp;nbsp; date value .&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data out;
input CALL_NO 1-3
 DATE 5-12
TRUCKS 14-15
ALARM 17;
informat date mmddyy8.;
datalines;
001 10/21/94 03 2
002 10/23/94 01 1
003 11/01/94 11 3
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 15:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619195#M19348</guid>
      <dc:creator>Arpit2</dc:creator>
      <dc:date>2020-01-22T15:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: use of informat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619198#M19349</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data out;
input CALL_NO 1-3
 @5 DATE mmddyy8.
TRUCKS 14-15
ALARM 17;
format date mmddyy8.;
datalines;
001 10/21/94 03 2
002 10/23/94 01 1
003 11/01/94 11 3
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jan 2020 15:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619198#M19349</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-22T15:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: use of informat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619200#M19350</link>
      <description>INFORMATS are the input format, what a variable currently looks like. &lt;BR /&gt;FORMATS control the display of the output data. &lt;BR /&gt;&lt;BR /&gt;You will not "see" an informat, but your data will be read in correctly. Try adding a FORMAT statement and you should get what you need.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jan 2020 16:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619200#M19350</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-22T16:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: use of informat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619209#M19352</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/295556"&gt;@Arpit2&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation "&lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n13ejk9swz5vrbn0z34iazfrp0wp.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1ti68z9yx0kxjn1t5bzdn8r06ml-orig1" target="_blank" rel="noopener"&gt;INPUT Statement: Column&lt;/A&gt;" says: "To read with column input, data values must ... consist of standard numeric form or character form." So, date values in the form "mm/dd/yy" preclude column input. Just switch to &lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0lrz3gb7m9e4rn137op544ddg0v.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;list input&lt;/A&gt; by deleting the column specifications (1-3, ..., 17) in your DATA step. The suggested FORMAT statement is useful for displaying the date values, but not necessary for reading the raw data.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 16:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619209#M19352</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-01-22T16:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: use of informat</title>
      <link>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619296#M19365</link>
      <description>&lt;P&gt;You cannot use column mode input statement and an INFORMAT.&amp;nbsp; You will need to either read the value as character and use INPUT() function to generate the date value. Or read at least that one field using formatted mode input instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data out;
  input
    CALL_NO 1-3
    @5 DATE mmddyy8.
    TRUCKS 14-15
    ALARM 17
  ;
  format date mmddyy10.;
datalines;
001 10/21/94 03 2
002 10/23/94 01 1
003 11/01/94 11 3
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or if you are positive that every variable has a value (or when missing a period) then use list mode input.&amp;nbsp; In that case you can either use the INFORMAT statement to set the informat for the variable or include the informat in the input statement but add the : modifier so that it still does list mode input.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data out;
  input
    CALL_NO
    DATE :mmddyy8.
    TRUCKS 
    ALARM 
  ;
  format date mmddyy10.;
datalines;
001 10/21/94 03 2
002 10/23/94 01 1
003 11/01/94 11 3
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS&amp;nbsp; Do NOT use only two digits for year values.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 20:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/use-of-informat/m-p/619296#M19365</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-22T20:04:28Z</dc:date>
    </item>
  </channel>
</rss>

