<?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 Data step code to output two user-written values to the same work table column in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/89906#M911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working in a User Written transformation in DI Studio. It has a &lt;STRONG&gt;DATA &amp;amp;_output&lt;/STRONG&gt; step with the following statement: &lt;STRONG&gt;report_date = intnx('weekday', today(), -1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output work table has a column called report_date, which the value for the variable report_date appears in (as 03DEC2012).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want the User Written transformation to output TWO values to the report_date column, how do I do it? I basically need it to output both &lt;STRONG&gt;report_date = intnx('weekday', today(), -1);&lt;/STRONG&gt; AND &lt;STRONG&gt;report_date_saturday = report_date +1;&lt;/STRONG&gt; to the report_date work table column if run on a Monday (so that it outputs the date of Friday and Saturday).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the job is run on 10DEC2012, the output work table should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;report_date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;30NOV2012&lt;/P&gt;&lt;P&gt;01DEC2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 14:30:33 GMT</pubDate>
    <dc:creator>EinarRoed</dc:creator>
    <dc:date>2012-12-04T14:30:33Z</dc:date>
    <item>
      <title>Data step code to output two user-written values to the same work table column</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/89906#M911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working in a User Written transformation in DI Studio. It has a &lt;STRONG&gt;DATA &amp;amp;_output&lt;/STRONG&gt; step with the following statement: &lt;STRONG&gt;report_date = intnx('weekday', today(), -1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output work table has a column called report_date, which the value for the variable report_date appears in (as 03DEC2012).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want the User Written transformation to output TWO values to the report_date column, how do I do it? I basically need it to output both &lt;STRONG&gt;report_date = intnx('weekday', today(), -1);&lt;/STRONG&gt; AND &lt;STRONG&gt;report_date_saturday = report_date +1;&lt;/STRONG&gt; to the report_date work table column if run on a Monday (so that it outputs the date of Friday and Saturday).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the job is run on 10DEC2012, the output work table should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;report_date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;30NOV2012&lt;/P&gt;&lt;P&gt;01DEC2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 14:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/89906#M911</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2012-12-04T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data step code to output two user-written values to the same work table column</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/89907#M912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need an output statement after each assignment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 15:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/89907#M912</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-12-04T15:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data step code to output two user-written values to the same work table column</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/89908#M913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever I try using the output statement, I get an error saying&amp;nbsp; "ERROR 455-185: Data set was not specified on the DATA statement". The data step is &lt;STRONG&gt;data &amp;amp;_output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it forbidden to use output inside an &amp;amp;_output data step, and if so, is there an alternative?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: Nevermind, figured it out, thanks. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 20:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/89908#M913</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2012-12-04T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data step code to output two user-written values to the same work table column</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/281173#M8011</link>
      <description>&lt;P&gt;what is the solution for this? I'm having the same issue. What did you figure out?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 17:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-step-code-to-output-two-user-written-values-to-the-same/m-p/281173#M8011</guid>
      <dc:creator>christinagting0</dc:creator>
      <dc:date>2016-06-29T17:22:33Z</dc:date>
    </item>
  </channel>
</rss>

