<?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: input with '@' informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356773#M83698</link>
    <description>&lt;P&gt;Either it's incorrect or you're misunderstanding the text.&lt;/P&gt;
&lt;P&gt;What's the page reference for this, I'm assuming SAS Base Certification Prep guide, what version?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/publishing/cert/basecertguide3.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/publishing/cert/basecertguide3.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2017 03:54:47 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-05-08T03:54:47Z</dc:date>
    <item>
      <title>input with '@' informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356762#M83690</link>
      <description>&lt;P&gt;I found out the answer by creating the color.txt &amp;nbsp;file and submitting in the SAS Univ Edn.&amp;nbsp;However,I couldn't figure out the reason for the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Given the text file COLORS.TXT:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;----+----1----+----2----+----
RED    ORANGE  YELLOW  GREEN
BLUE   INDIGO  PURPLE  VIOLET
CYAN   WHITE   FUCSIA  BLACK
GRAY   BROWN   PINK    MAGENTA&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The following SAS program is submitted:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;data WORK.COLORS;
  infile 'COLORS.TXT';
  input @1 Var1 $ @8 Var2 $ @;
  input @1 Var3 $ @8 Var4 $ @;
run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;What will the data set WORK.COLORS contain?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE&gt;Var1     Var2     Var3    Var4
------   ------   ------  ------
RED      ORANGE   RED     ORANGE
BLUE     INDIGO   BLUE    INDIGO
CYAN     WHITE    CYAN    WHITE
GRAY     BROWN    GRAY    BROWN&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;Var1     Var2     Var3    Var4
------   ------   ------  ------
RED      ORANGE   BLUE    INDIGO
CYAN     WHITE    GRAY    BROWN&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;Var1     Var2     Var3    Var4
------   ------   ------  ------
RED      ORANGE   YELLOW  GREEN
BLUE     INDIGO   PURPLE  VIOLET&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;Var1     Var2     Var3    Var4
------   ------   ------  ------
RED      ORANGE   YELLOW  GREEN
BLUE     INDIGO   PURPLE  VIOLET
CYAN     WHITE    FUCSIA  BLACK
GRAY     BROWN    PINK    MAGENTA&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 03:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356762#M83690</guid>
      <dc:creator>Sathiskumar_D</dc:creator>
      <dc:date>2017-05-08T03:12:22Z</dc:date>
    </item>
    <item>
      <title>Logic for getting this answer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356765#M83694</link>
      <description>&lt;P&gt;I found out the answer by creating the color.txt &amp;nbsp;file and submitting in the SAS Univ Edn.&amp;nbsp;However,I couldn't figure out the reason for the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Given the text file COLORS.TXT:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;----+----1----+----2----+----
RED    ORANGE  YELLOW  GREEN
BLUE   INDIGO  PURPLE  VIOLET
CYAN   WHITE   FUCSIA  BLACK
GRAY   BROWN   PINK    MAGENTA&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The following SAS program is submitted:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;data WORK.COLORS;
  infile 'COLORS.TXT';
  input @1 Var1 $ @8 Var2 $ @;
  input @1 Var3 $ @8 Var4 $ @;
run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;What will the data set WORK.COLORS contain?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE&gt;Var1     Var2     Var3    Var4
------   ------   ------  ------
RED      ORANGE   RED     ORANGE
BLUE     INDIGO   BLUE    INDIGO
CYAN     WHITE    CYAN    WHITE
GRAY     BROWN    GRAY    BROWN&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;Var1     Var2     Var3    Var4
------   ------   ------  ------
RED      ORANGE   BLUE    INDIGO
CYAN     WHITE    GRAY    BROWN&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;Var1     Var2     Var3    Var4
------   ------   ------  ------
RED      ORANGE   YELLOW  GREEN
BLUE     INDIGO   PURPLE  VIOLET&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;Var1     Var2     Var3    Var4
------   ------   ------  ------
RED      ORANGE   YELLOW  GREEN
BLUE     INDIGO   PURPLE  VIOLET
CYAN     WHITE    FUCSIA  BLACK
GRAY     BROWN    PINK    MAGENTA&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 03:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356765#M83694</guid>
      <dc:creator>Sathiskumar_D</dc:creator>
      <dc:date>2017-05-08T03:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: input with '@' informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356769#M83693</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RTM.&amp;nbsp;What does the documentation say regarding the trailing&amp;nbsp;@?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 class="xis-argument"&gt;@&lt;/H4&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;P class="xis-paraSimpleFirst"&gt;&lt;STRONG&gt;holds an input record for the execution of the next INPUT statement within the same iteration of the DATA step.&lt;/STRONG&gt; This line-hold specifier is called&amp;nbsp;&lt;SPAN class="xis-userSuppliedValue"&gt;trailing @&lt;/SPAN&gt;.&lt;/P&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-restriction"&gt;Restriction&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;The trailing @ must be the last item in the INPUT statement.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryTip"&gt;Tip&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;The trailing @ prevents the next INPUT statement from automatically releasing the current input record and reading the next record into the input buffer. &lt;STRONG&gt;It is useful when you need to read from a record multiple times.&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xis-summarySee"&gt;See&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;A title="" href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/n0oaql83drile0n141pdacojq97s.htm#p0w3hkircglkogn1eqp3l9rwetlu" target="_blank"&gt;Using Line-Hold Specifiers&lt;/A&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryExampleLinks"&gt;Example&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;&lt;SPAN class="xis-xref"&gt;&lt;A title="" href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/n0oaql83drile0n141pdacojq97s.htm#n0m5e9ju0os2mtn1qcphxoy81k8b" target="_blank"&gt;Holding a Record in the Input Buffer&lt;/A&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 03:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356769#M83693</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-08T03:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for getting this answer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356770#M83695</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/120805"&gt;@Sathiskumar_D&lt;/a&gt;&amp;nbsp;Please do not post the same question multiple times. It will not increase the number of responses and isn't helpful.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 03:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356770#M83695</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-08T03:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Logic for getting this answer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356771#M83696</link>
      <description>&lt;P&gt;When I posted the question first time, it didn't aacept the question.I am not aware of the fact that my previous question was posted.My apologies.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 03:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356771#M83696</guid>
      <dc:creator>Sathiskumar_D</dc:creator>
      <dc:date>2017-05-08T03:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: input with '@' informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356772#M83697</link>
      <description>&lt;P&gt;SAS prep Guide says that '@' or '@@' cannot be used with&amp;nbsp;@pointer control, with column input, nor with the MISSOVER option.In my question, however, there is '@'pointer control.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 03:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356772#M83697</guid>
      <dc:creator>Sathiskumar_D</dc:creator>
      <dc:date>2017-05-08T03:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: input with '@' informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356773#M83698</link>
      <description>&lt;P&gt;Either it's incorrect or you're misunderstanding the text.&lt;/P&gt;
&lt;P&gt;What's the page reference for this, I'm assuming SAS Base Certification Prep guide, what version?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/publishing/cert/basecertguide3.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/publishing/cert/basecertguide3.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 03:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356773#M83698</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-08T03:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: input with '@' informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356774#M83699</link>
      <description>&lt;P&gt;It is Third Edition (Page # 608 and Chapter 20).They had provided an example where '@' pointer control was NOT used.However, the caveat, that was mentioned, is for double trailing '@@'.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 03:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-with-informat/m-p/356774#M83699</guid>
      <dc:creator>Sathiskumar_D</dc:creator>
      <dc:date>2017-05-08T03:58:34Z</dc:date>
    </item>
  </channel>
</rss>

