<?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: Why i am not able to print j1 ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295431#M61730</link>
    <description>&lt;P&gt;Please read the link the documentation that i provided.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 09:27:30 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-08-31T09:27:30Z</dc:date>
    <item>
      <title>Why i am not able to print j1 ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295267#M61688</link>
      <description>&lt;P&gt;dm"log;clear;output;clear";&lt;BR /&gt;DATA pumpkins1;&lt;BR /&gt;infile datalines dlm="," dsd;&lt;BR /&gt;length name $16 ;&lt;BR /&gt;input name $ age type $ EnterDate mmddyy10. (j1-j5);&lt;BR /&gt;DATALINES;&lt;BR /&gt;Alicia Grossman,13,C,10-28-2008,7.8,6.5,7.2,8.0,7.9&lt;BR /&gt;Matthew Lee,9,D,10-30-2008,6.5,5.9,6.8,6.0,8.1&lt;BR /&gt;Elizabeth Garcia,10,C,10-29-2008,8.9,7.9,8.5,9.0,&lt;BR /&gt;,6,D,10-30-2008,6.7,5.6,4.9,5.2,6.1&lt;BR /&gt;Jose Martinez,7,D,10-31-2008,8.9,,10.0,9.7,9.0&lt;BR /&gt;Brian Williams,11,C,10-29-2008,7.8,8.4,8.5,7.9,8.0&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT data = pumpkins1;&lt;BR /&gt;format Enterdate mmddyy10.;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my output is attached&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12905i120558B7B8AEC3AE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="j1_not_printing.JPG" title="j1_not_printing.JPG" /&gt;</description>
      <pubDate>Tue, 30 Aug 2016 17:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295267#M61688</guid>
      <dc:creator>Saurav</dc:creator>
      <dc:date>2016-08-30T17:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am not able to print j1 ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295277#M61691</link>
      <description>&lt;P&gt;Because the date variable is read using formatted input (not list input), the input pointer stops before the comma that follows the date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The software starts looking for J1, and then hits the comma so J1 is missing.&amp;nbsp; (Notice how the remaining variables J2-J5 are reading the values that you actually intended for J1-J4.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An easy fix:&amp;nbsp; change the INPUT statement to move past that comma:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;input name $ age type $ EnterDate mmddyy10. &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;+1&lt;/FONT&gt;&lt;/STRONG&gt; (j1-j5);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's untested code, but should resolve the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 18:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295277#M61691</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-08-30T18:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am not able to print j1 ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295279#M61692</link>
      <description>&lt;P&gt;I cann't explain why but I changed the INFILE statment and the INPUTstatement, until it worked fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;INFILE DATALINES DLM="," &amp;nbsp;&lt;STRONG&gt;TRUNCOVER;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input name $ age type $ EnterDate mmddyy10. &lt;STRONG&gt;j1-j5&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 18:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295279#M61692</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-30T18:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am not able to print j1 ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295280#M61693</link>
      <description>&lt;P&gt;Should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA pumpkins1;
infile datalines dsd; /* dsd implies dlm="," */
length name $16 ;
input name $ age type $ EnterDate :mmddyy10. j1-j5; /* Check list input in the doc */
DATALINES;
Alicia Grossman,13,C,10-28-2008,7.8,6.5,7.2,8.0,7.9
Matthew Lee,9,D,10-30-2008,6.5,5.9,6.8,6.0,8.1
Elizabeth Garcia,10,C,10-29-2008,8.9,7.9,8.5,9.0,
,6,D,10-30-2008,6.7,5.6,4.9,5.2,6.1
Jose Martinez,7,D,10-31-2008,8.9,,10.0,9.7,9.0
Brian Williams,11,C,10-29-2008,7.8,8.4,8.5,7.9,8.0
;
/* run; Not required after datalines; */

PROC PRINT data = pumpkins1;
format Enterdate mmddyy10.;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 18:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295280#M61693</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-08-30T18:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am not able to print j1 ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295283#M61695</link>
      <description>&lt;P&gt;Great question. You can either &lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#p0fvy5h4ajagxmn1wo4yyx66rit4.htm" target="_self"&gt;use an INFORMAT statement or use an informat modifier (:).&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;informat&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; EnterDate &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New"&gt;mmddyy10.&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; name $ age type $ EnterDate j1-j5;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;-OR-&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; name $ age type $ EnterDate : &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New"&gt;mmddyy10.&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; j1-j5;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 18:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295283#M61695</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-30T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am not able to print j1 ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295394#M61721</link>
      <description>EnterDate :mmddyy10. why (:) is necessay in input ? is this due to informat and non-standard data.&lt;BR /&gt;&lt;BR /&gt;when do we use colon?</description>
      <pubDate>Wed, 31 Aug 2016 06:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295394#M61721</guid>
      <dc:creator>Saurav</dc:creator>
      <dc:date>2016-08-31T06:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am not able to print j1 ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295398#M61725</link>
      <description>Thanks for answering specifically input.&lt;BR /&gt;&lt;BR /&gt;Why (:) is necessary in EnterDate : mmddyy10.&lt;BR /&gt;&lt;BR /&gt;can't EnterDate mmddyy10. work in input?</description>
      <pubDate>Wed, 31 Aug 2016 06:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295398#M61725</guid>
      <dc:creator>Saurav</dc:creator>
      <dc:date>2016-08-31T06:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why i am not able to print j1 ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295431#M61730</link>
      <description>&lt;P&gt;Please read the link the documentation that i provided.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-i-am-not-able-to-print-j1/m-p/295431#M61730</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-08-31T09:27:30Z</dc:date>
    </item>
  </channel>
</rss>

