<?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: User written code in SAS DI - no results in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/User-written-code-in-SAS-DI-no-results/m-p/780378#M248652</link>
    <description>Above your code you see a number of variables, including an _output variable, which refers to a work table name.&lt;BR /&gt;If you replace the table name 'bankdays' in your code with &amp;amp;_output, DI will create a table.</description>
    <pubDate>Tue, 16 Nov 2021 10:18:44 GMT</pubDate>
    <dc:creator>DJongman</dc:creator>
    <dc:date>2021-11-16T10:18:44Z</dc:date>
    <item>
      <title>User written code in SAS DI - no results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/User-written-code-in-SAS-DI-no-results/m-p/780377#M248651</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've made a simple piece of code on SAS Guide which I add below. It works fine but I need to move my program to SAS Data Integration. I've chosen user written code, I created new columns in mapping, added formats and of course the code in code section. I didnt receive any errors, my table is just empty (no rows). I add some screenshots of what I've done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Table with public bank holidays we will not count a workdays where month.day.year *;
data bankdays;
  attrib begin format=date. ;
  infile datalines dlm=':';
  input begin :anydtdte18. holiday $30.;
datalines;
01.01.2018 : nowyrok
01.06.2018 : trzechkroli
04.01.2018 : wielkanoc
04.02.2018 : 2wielkanoc
05.01.2018 : swietopracy
05.03.2018 : konstytucji
05.20.2018 : zieloneswiatki
05.31.2018 : bozecialo
08.15.2018 : wojskapolskiego
11.01.2018 : zmarlych
11.11.2018 : niepodleglosci
12.25.2018 : bozenarodzenie
12.26.2018 : 2bozenarodzenie
01.01.2019 : nowyrok
01.06.2019 : trzechkroli
04.21.2019 : wielkanoc
04.22.2019 : 2wielkanoc
05.01.2019 : swietopracy
05.03.2019 : konstytucji
06.09.2019 : zieloneswiatki
06.20.2019 : bozecialo
08.15.2019 : wojskapolskiego
11.01.2019 : zmarlych
11.11.2019 : niepodleglosci
12.25.2019 : bozenarodzenie
12.26.2019 : 2bozenarodzenie
01.01.2020 : nowyrok
01.06.2020 : trzechkroli
04.12.2020 : wielkanoc
04.13.2020 : 2wielkanoc
05.01.2020 : swietopracy
05.03.2020 : konstytucji
05.31.2020 : zieloneswiatki
06.11.2020 : bozecialo
08.15.2020 : wojskapolskiego
11.01.2020 : zmarlych
11.11.2020 : niepodleglosci
12.25.2020 : bozenarodzenie
12.26.2020 : 2bozenarodzenie
01.01.2021 : nowyrok
01.06.2021 : trzechkroli
04.05.2021 : 2wielkanoc
05.03.2021 : konstytucji
06.03.2021 : bozecialo
11.01.2021 : zmarlych
11.11.2021 : niepodleglosci
01.06.2022 : trzechkroli
04.18.2022 : wielkanoc
05.03.2022 : konstytucji
06.16.2022 : bozecialo
08.15.2022 : wojskapolskiego
11.01.2022 : zmarlych
11.11.2022 : niepodleglosci
12.26.2022 : 2bozenarodzenie
01.06.2023 : trzechkroli
04.10.2023 : 2wielkanoc
05.01.2023 : swietopracy
05.03.2023 : konstytucji
06.08.2023 : bozecialo
08.15.2023 : wojskapolskiego
11.01.2023 : zmarlych
12.25.2023 : bozenarodzenie
12.26.2023 : 2bozenarodzenie
;
run;

proc sort data=bankdays; 
  by begin;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mapping.JPG" style="width: 983px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65742iDBC7A01BF9F26DA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="mapping.JPG" alt="mapping.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.JPG" style="width: 983px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65743i613E3CE1E08A5240/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.JPG" alt="code.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you help me with solution how to create a coding part in SAS DI?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 10:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/User-written-code-in-SAS-DI-no-results/m-p/780377#M248651</guid>
      <dc:creator>PatrykSAS</dc:creator>
      <dc:date>2021-11-16T10:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: User written code in SAS DI - no results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/User-written-code-in-SAS-DI-no-results/m-p/780378#M248652</link>
      <description>Above your code you see a number of variables, including an _output variable, which refers to a work table name.&lt;BR /&gt;If you replace the table name 'bankdays' in your code with &amp;amp;_output, DI will create a table.</description>
      <pubDate>Tue, 16 Nov 2021 10:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/User-written-code-in-SAS-DI-no-results/m-p/780378#M248652</guid>
      <dc:creator>DJongman</dc:creator>
      <dc:date>2021-11-16T10:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: User written code in SAS DI - no results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/User-written-code-in-SAS-DI-no-results/m-p/780380#M248654</link>
      <description>Now I understand, thanks for the hint</description>
      <pubDate>Tue, 16 Nov 2021 10:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/User-written-code-in-SAS-DI-no-results/m-p/780380#M248654</guid>
      <dc:creator>PatrykSAS</dc:creator>
      <dc:date>2021-11-16T10:22:35Z</dc:date>
    </item>
  </channel>
</rss>

