<?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 I AM NOT ABLE TO SEE AGE'S OBSERVATION IN MY OUTPUT WINDOW. THE INPUT STATEMENT IS NOT WORKING. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967290#M376326</link>
    <description>&lt;P&gt;DATA TRAILING;&lt;BR /&gt;INPUT @6 TYPE$ 1. @;&lt;BR /&gt;IF TYPE= '1' THEN INPUT AGE$= 1-2;&lt;BR /&gt;ELSE IF TYPE='2' THEN INPUT AGE$= 4-5;&lt;BR /&gt;DROP TYPE;&lt;BR /&gt;;&lt;BR /&gt;DATALINES;&lt;BR /&gt;23&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;44 2&lt;BR /&gt;;&lt;BR /&gt;PROC PRINT DATA=TRAILING;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 10:38:02 GMT</pubDate>
    <dc:creator>Shailesh_R_T</dc:creator>
    <dc:date>2025-05-23T10:38:02Z</dc:date>
    <item>
      <title>I AM NOT ABLE TO SEE AGE'S OBSERVATION IN MY OUTPUT WINDOW. THE INPUT STATEMENT IS NOT WORKING.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967290#M376326</link>
      <description>&lt;P&gt;DATA TRAILING;&lt;BR /&gt;INPUT @6 TYPE$ 1. @;&lt;BR /&gt;IF TYPE= '1' THEN INPUT AGE$= 1-2;&lt;BR /&gt;ELSE IF TYPE='2' THEN INPUT AGE$= 4-5;&lt;BR /&gt;DROP TYPE;&lt;BR /&gt;;&lt;BR /&gt;DATALINES;&lt;BR /&gt;23&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;44 2&lt;BR /&gt;;&lt;BR /&gt;PROC PRINT DATA=TRAILING;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 10:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967290#M376326</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-23T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Mixed case title needed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967295#M376327</link>
      <description>&lt;P&gt;Please do not type the TITLE in ALL CAPITAL LETTERS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please do not attach files. Include the log and anything else you want to show us in your message, not as file attachments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We requested this from you previously. We will try to help you, but you have to help us as well.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 10:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967295#M376327</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-05-23T10:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: I AM NOT ABLE TO SEE AGE'S OBSERVATION IN MY OUTPUT WINDOW. THE INPUT STATEMENT IS NOT WORKING.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967300#M376331</link>
      <description>&lt;P&gt;You cannot have the = in the INPUT statement.&amp;nbsp; Also do not add a space between the $ and rest of the informat specification.&amp;nbsp; I know SAS accepts it but it just makes your code look broken.&amp;nbsp; If you just want the INPUT statement to read one character from column 6 you can also just use column mode for that variable also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you are apparently not reading the right columns for the TYPE variable.&amp;nbsp; The values appear in columns 8 and 7 in your example data, not column 6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not understand why you need to run different INPUT statements for the example data you show.&amp;nbsp; Why not just read AGE from columns 1 to 5 ?&amp;nbsp; That will work fine for your example data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
1    data trailing;
2      input age 1-5 type $ ;
3      list;
4    datalines;

RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6----+--
5          23     1
6             44 2
NOTE: The data set WORK.TRAILING has 2 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.07 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is the problem that your lines of data have accidentally had some of the spaces replaced by TAB characters?&amp;nbsp; If so you might want to add an INFILE statement so that you can add the EXPANDTABS option.&amp;nbsp; You might also want the TRUNCOVER option in case the lines are truncated.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data trailing;
  infile datalines expandtabs truncover;
  input age 1-5 type $ ;
datalines;
23     1
   44 2
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 12:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967300#M376331</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-23T12:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: I AM NOT ABLE TO SEE AGE'S OBSERVATION IN MY OUTPUT WINDOW. THE INPUT STATEMENT IS NOT WORKING.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967314#M376333</link>
      <description>&lt;P&gt;HEY&amp;nbsp; THANKS&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 13:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-AM-NOT-ABLE-TO-SEE-AGE-S-OBSERVATION-IN-MY-OUTPUT-WINDOW-THE/m-p/967314#M376333</guid>
      <dc:creator>Shailesh_R_T</dc:creator>
      <dc:date>2025-05-23T13:14:37Z</dc:date>
    </item>
  </channel>
</rss>

