<?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: calculated collumns in sas studio in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897874#M354879</link>
    <description>&lt;P&gt;CASE as a statement pretty much only exists in Proc SQL and is &lt;STRONG&gt;not a function&lt;/STRONG&gt;. So I am pretty confused as to what sort of code you even attempting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2023 20:43:57 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-10-09T20:43:57Z</dc:date>
    <item>
      <title>Calculated columns in SAS Data Studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897788#M354832</link>
      <description>&lt;P&gt;Hi, i'm not sure to be in the good location. I prepare data with sas data studio. I want to sort my data with a date. I know that i can use a function in studio with case and INTCK but i would like to do this on SAS data studio by using a calculated collumns. But i dont' find the function case and if i use IF, i have an error. Can you help me?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897788#M354832</guid>
      <dc:creator>YannRC</dc:creator>
      <dc:date>2023-10-10T12:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: calculated collumns in sas studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897789#M354833</link>
      <description>&lt;P&gt;Show us the log for your code (all of it, not just the errors)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us a portion of your data.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 11:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897789#M354833</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-09T11:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: calculated collumns in sas studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897874#M354879</link>
      <description>&lt;P&gt;CASE as a statement pretty much only exists in Proc SQL and is &lt;STRONG&gt;not a function&lt;/STRONG&gt;. So I am pretty confused as to what sort of code you even attempting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 20:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897874#M354879</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-09T20:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated columns in SAS Data Studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897942#M354911</link>
      <description>&lt;P&gt;The calculated column transformation accept data step syntax, but does not allow conditional values. Help within the product:&lt;/P&gt;
&lt;P&gt;"Creating Calculated Columns&lt;/P&gt;
&lt;DIV id="__popup54-popover-popover-cont" class="sapMPopoverCont" style="overflow: auto;"&gt;
&lt;DIV id="__popup54-popover-popover-scroll" class="sapMPopoverScroll" style="display: inline-block;" tabindex="0"&gt;
&lt;DIV id="__popup54-helpContent" data-sap-ui-preserve="__popup54-helpContent" data-sap-ui="__popup54-helpContent"&gt;
&lt;SECTION class="xis-topicContent"&gt;
&lt;DIV class="xis-paragraph"&gt;To create a calculated column, enter a DATA step expression in the &lt;SPAN class="xis-windowItem"&gt;Expression&lt;/SPAN&gt; field. A few considerations:
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI class="xis-item"&gt;Do not include the name of the table, semicolons, or the &lt;SPAN class="xis-windowItem"&gt;column=&lt;/SPAN&gt; statement in the expression. They are implicitly added for you.&lt;/LI&gt;
&lt;LI class="xis-item"&gt;Enter a single value or single expression only. Do not enter conditional values.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="xis-paragraph"&gt;For more information about creating calculated columns, &lt;SPAN class="xis-xrefSee"&gt;&lt;SPAN class="xis-xrefText"&gt;see &lt;/SPAN&gt;&lt;A href="http://documentation.sas.com/?softwareId=DMDPSTU&amp;amp;softwareVersion=2.5&amp;amp;requestor=inapp&amp;amp;locale=en&amp;amp;docsetId=datastudioadv&amp;amp;docsetTarget=n1804pdfa1izx0n13q052py8d5n8" target="_blank" rel="noopener" data-help-docset="datastudioadv" data-help-topic="n1804pdfa1izx0n13q052py8d5n8" data-help-pubcode="73598"&gt;Creating Calculated Columns&lt;/A&gt; in &lt;I&gt;SAS Data Studio: User’s Guide&lt;/I&gt;&lt;SPAN class="xis-xrefText"&gt;."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xis-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xis-paragraph"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;SPAN class="xis-xrefText"&gt;That being said, INTCK should work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xis-paragraph"&gt;&lt;SPAN class="xis-xrefSee"&gt;&lt;SPAN class="xis-xrefText"&gt;If wish to do conditional processing, use IFC/IFN functions rather than the corresponding statements.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LinusH_0-1696939718323.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88739i3F708EE3BA40B8A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LinusH_0-1696939718323.png" alt="LinusH_0-1696939718323.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897942#M354911</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-10-10T12:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated columns in SAS Data Studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897978#M354923</link>
      <description>&lt;P&gt;Perhaps this is an actual use case for the IFN() or IFC() functions that SAS added a few years ago?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 15:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculated-columns-in-SAS-Data-Studio/m-p/897978#M354923</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-10-10T15:42:24Z</dc:date>
    </item>
  </channel>
</rss>

