<?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 &amp;_Input or &amp;_Input1 in DI User Written Code in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Use-of-Input-or-Input1-in-DI-User-Written-Code/m-p/103853#M1149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't had any problems referring to _input. It's hard to help without seeing a SYMBOLGEN log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 15:53:08 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2012-10-23T15:53:08Z</dc:date>
    <item>
      <title>Use of &amp;_Input or &amp;_Input1 in DI User Written Code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Use-of-Input-or-Input1-in-DI-User-Written-Code/m-p/103852#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wondered if anyone could shed some light here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some User Written Code in a DI Studio job which was working fine. The user written code is within a loop and I changed the ordering of some of the tranforms and incorporated more things into the loop and suddenly the User Written Code stopped working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original code was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_; length keepvar $2000; retain keepvar;&lt;BR /&gt;set &amp;amp;_INPUT end=e;&lt;BR /&gt;call symput('source'||left(put(_n_,2.)),OldColumn);&lt;BR /&gt;call symput('target'||left(put(_n_,2.)),NewColumn);&lt;BR /&gt;keepvar=catx(' ',keepvar,OldColumn);&lt;/P&gt;&lt;P&gt;if e then do;&lt;BR /&gt;call symput('keepvar',keepvar);&lt;BR /&gt;call symputx('numobs',&amp;amp;RowCount);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/* write the macro variables just set to the log - for checking during development*/&lt;BR /&gt;%put &amp;amp;keepvar;&lt;BR /&gt;%put &amp;amp;numobs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the code stopped working the %put &amp;amp;Keepvar was resulting in &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After much deliberation with my colleagues we decided to try changing the &amp;amp;_Input in the Data Step set statement to &amp;amp;_Input1 and this then worked. In the User Written Body code &amp;amp;_Input and &amp;amp;_Input1 appeared to be defined as the same thing as there is only one input data set so why did changing the code to &amp;amp;_Input1 work? Is it something to do with the ordering of the transforms and the loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 15:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Use-of-Input-or-Input1-in-DI-User-Written-Code/m-p/103852#M1148</guid>
      <dc:creator>NicolaD</dc:creator>
      <dc:date>2012-10-23T15:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use of &amp;_Input or &amp;_Input1 in DI User Written Code</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Use-of-Input-or-Input1-in-DI-User-Written-Code/m-p/103853#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't had any problems referring to _input. It's hard to help without seeing a SYMBOLGEN log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 15:53:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Use-of-Input-or-Input1-in-DI-User-Written-Code/m-p/103853#M1149</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-10-23T15:53:08Z</dc:date>
    </item>
  </channel>
</rss>

