<?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 Please help with SAS code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894487#M353331</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am really struggling with a code, I have all the fields that needs to be used in the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code should have the specific layout as per the screen print attached. i have attached the code Aswell. please can someone help me to solve this report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 14:17:12 GMT</pubDate>
    <dc:creator>MJM11111</dc:creator>
    <dc:date>2023-09-15T14:17:12Z</dc:date>
    <item>
      <title>Please help with SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894487#M353331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am really struggling with a code, I have all the fields that needs to be used in the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code should have the specific layout as per the screen print attached. i have attached the code Aswell. please can someone help me to solve this report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 14:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894487#M353331</guid>
      <dc:creator>MJM11111</dc:creator>
      <dc:date>2023-09-15T14:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894566#M353346</link>
      <description>&lt;P&gt;Generally, with the threat of viruses and malware, nobody is going to open a .docx attachment.&amp;nbsp; I'm not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put a functional sample of your data in a working data step, post that, post the code you have written, and fully describe what you want (with example output!) and you will be MUCH more likely to get help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 19:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894566#M353346</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2023-09-15T19:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894589#M353362</link>
      <description>&lt;P&gt;If you have a picture or screen capture of your table you can attach an image using the camera icon that appears above the message box.&lt;/P&gt;
&lt;P&gt;But likely some description will be needed, at least variable types and names. DATA step code to recreate some data is preferred because then we don't have to ask about things like variable type and we have something to test.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 22:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894589#M353362</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-15T22:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with SAS code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894598#M353368</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445685"&gt;@MJM11111&lt;/a&gt;&amp;nbsp;You are sharing a lot of code and it's at least to me not clear with which step you are struggling with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Questions&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Is the code you've shared your actual code or just some "sample"&lt;/LI&gt;
&lt;LI&gt;Does the code you've shared execute without errors and warnings in your environment?&lt;/LI&gt;
&lt;LI&gt;Do you know how to shape the data so it's suitable input for Proc Report?&lt;/LI&gt;
&lt;LI&gt;Do you manage to shape the data in this way?&lt;/LI&gt;
&lt;LI&gt;Is the picture of a report you share the desired outcome or what your Proc Report currently creates?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You need to split your big problem into smaller chunks and then solve them one by one. Some of above questions will hopefully give you a start to do so.&lt;/P&gt;
&lt;P&gt;Most of us will also need some representative sample Have data to help you with your code which means you will have to create such sample data and share it by posting a data step that creates it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Below and attached the content of your Word doc.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1694832519143.png" style="width: 791px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88088iFF0A1D5D668B892C/image-dimensions/791x163?v=v2" width="791" height="163" role="button" title="Patrick_0-1694832519143.png" alt="Patrick_0-1694832519143.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;1&lt;SUP&gt;st&lt;/SUP&gt; I need to get all the total number off accounts received , then what was approved.&lt;/P&gt;
&lt;P&gt;All need to linked back to the Source off application ( 33,34,35) , then as I understand I need to merge two summary table where I counted the number off account that come in, the total number approved , the number booked, those needs to also be linked back to the fixed rate, prime rate and staff rate, together with the risk1,risk2, risk3,risk4.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 03:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894598#M353368</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-09-16T03:05:32Z</dc:date>
    </item>
    <item>
      <title>Calculations not pulling through correctly.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894624#M353385</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please can someone please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this code attached below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the outcome on the report needs to be as follow:&lt;/P&gt;&lt;P&gt;NumApp =2166&lt;/P&gt;&lt;P&gt;NumGoedKeur =300&lt;/P&gt;&lt;P&gt;Numbook =274&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to get the Approved Applications that off 274, but the problem comes in where the NumApp and the NumGoedkeur is the same as 274, and it actually needs to be NumApp= 2166, and the NumGoedKeur is 300. so somewhere in my code i am not calculating the correct table in order to get the NumApps and the NumGoedkeur, and due to the&amp;nbsp; NumApps, NumGoedkeur and Numbook is pulling through the same amount of 274, the calculations off all the other fields is showing 100%&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mellissa_1-1694870749966.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88095iA32C13A153AC889B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mellissa_1-1694870749966.png" alt="Mellissa_1-1694870749966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please can someone please help me just to sort out this small calculation mistake then i can create the rest of the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Proc sql;&lt;/DIV&gt;&lt;DIV&gt;create table data1 as&lt;/DIV&gt;&lt;DIV&gt;select A.KeyDateEntr,a.Applm_StatusCode, a.ApplM_Status,a.ApplM_MarketCode,a.ApplM_MarketName,&lt;/DIV&gt;&lt;DIV&gt;a.KeyAInfra, A.Applm_SCategory,a.Applm_HubName,a.KeyDataDate,a.Applm_TimeLaps,&lt;/DIV&gt;&lt;DIV&gt;a.ApplM_Prindebt,A.Applm_NedChannel,a.ApplM_Source,a.Applm_SourceDesc,&lt;/DIV&gt;&lt;DIV&gt;B.KeyDateBook,b.AccoM_RepStatus,b.AccoM_MotorDiv, b.AccoM_RateOffset,&lt;/DIV&gt;&lt;DIV&gt;b.AccoM_RateType,b.MFCRef,b.AccoM_Rate, b.AccoM_Prindebt,b.monthbook&lt;/DIV&gt;&lt;DIV&gt;from WerkWM.MartAppMini as a&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;left join werkwm.martaccount as b&lt;/DIV&gt;&lt;DIV&gt;on a.KeyIBIS = b.KeyIBIS&lt;/DIV&gt;&lt;DIV&gt;where b.monthbook = 202308&lt;/DIV&gt;&lt;DIV&gt;and&amp;nbsp; ApplM_Source in ('32', '33', '34');&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Data data2;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;set data1;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if KeyDateEntr ne . then AppCount = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if ApplM_StatusCode = 'CAPD' then Goedkeur = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if KeyDatebook ne . then NumBook = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if AccoM_RateType = "PRM" then PRM = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if AccoM_RateType = "FXD" then Fixed&amp;nbsp; = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if AccoM_RateType = "OFC" then OFC = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Attrib NEDChannelDesc format = $25. label = 'NED Channel Description';&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; NEDChannelDesc = put(ApplM_NedChannel,NEDChannelDesc.);&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;proc sort data = data2;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; by KeyAInfra;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;data data3(drop = KeyAInfra);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; merge data2(in = hoof)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WerkWM.DIMAPPLINFRA(keep = KeyApplInfraM ApplM_ExternalRef rename = (KeyApplInfraM = KeyAInfra));&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; by KeyAInfra;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if hoof;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if ApplM_Source = '32' then do;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if missing(ApplM_ExternalRef) then NEDChannelDesc = catt(NEDChannelDesc,'(Online)');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else NEDChannelDesc = catt(NEDChannelDesc,'(Branch)');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;Proc Sql;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Create Table WerkHubApps as&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; select Applm_SourceDesc,NEDChannelDesc,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(AppCount) as NumApps ,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(Goedkeur) as NumGoedkeur,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(case when ApplM_SCategory = "Risk1" then 1 else 0 end) as Risk1 format = 8.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(case when ApplM_SCategory = "Risk2" then 1 else 0 end) as Risk2 format = 8.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(case when ApplM_SCategory = "Risk3" then 1 else 0 end) as Risk3 format = 8.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(case when ApplM_SCategory = "Risk4" then 1 else 0 end) as Risk4 format = 8.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; from data3&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;group by Applm_SourceDesc, NEDChannelDesc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;UNION ALL&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select "Total" as Applm_SourceDesc,"Total" as NEDChannelDesc,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(AppCount) as NumApps ,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(Goedkeur) as NumGoedkeur,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(case when ApplM_SCategory = "Risk1" then 1 else 0 end) as Risk1 format = 8.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(case when ApplM_SCategory = "Risk2" then 1 else 0 end) as Risk2 format = 8.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(case when ApplM_SCategory = "Risk3" then 1 else 0 end) as Risk3 format = 8.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(case when ApplM_SCategory = "Risk4" then 1 else 0 end) as Risk4 format = 8.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; from data3;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; create table WerkHubBook as&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select Applm_SourceDesc,NEDChannelDesc,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(NumBook) as NumBook,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(AccoM_Prindebt) as AmtBook format = KRandm.,&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(Fixed) as Fixed label = "# Fixed Rate",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(PRM) as PRM label = "# Prime Link",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(OFC) as OFC label = "# Staff Rate",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(AccoM_RateOffset*AccoM_Prindebt) as AmtRatWei,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(AccoM_Prindebt) as AmtBook1 format = 15.2,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; calculated AmtRatWei / calculated AmtBook as WAVG format = 6.2&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from data3&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;where NumBook = 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;group by Applm_SourceDesc, NEDChannelDesc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;UNION ALL&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select "Total" as Applm_SourceDesc,"Total" as NEDChannelDesc,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(NumBook) as NumBook,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(AccoM_Prindebt) as AmtBook format = KRandm.,&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(Fixed) as Fixed label = "# Fixed Rate",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(PRM) as PRM label = "# Prime Link",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(OFC) as OFC label = "# Staff Rate",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(AccoM_RateOffset*AccoM_Prindebt) as AmtRatWei,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(AccoM_Prindebt) as AmtBook1 format = 15.2,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; calculated AmtRatWei / calculated AmtBook as WAVG format = 6.2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from data3&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where NumBook = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;quit;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*Building the report*/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Data Report;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; merge werkhubApps WerkHubBook;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Attrib GoedKeurPerc format = 4.1&amp;nbsp; &amp;nbsp; Label = "Approval Ratio"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BookPerc&amp;nbsp; &amp;nbsp; &amp;nbsp;format = 4.1&amp;nbsp; &amp;nbsp; Label = "Book Ratio"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AmtBook&amp;nbsp; &amp;nbsp; &amp;nbsp; format = KRandm.;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; by Applm_SourceDesc NEDChannelDesc;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if NumApps &amp;gt; 0 then GoedKeurPerc = round(NumGoedkeur / NumApps * 100,0.1);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else GoedKeurPerc = 0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if NumGoedkeur &amp;gt; 0 then BookPerc = round(NumBook / NumGoedkeur * 100,0.1);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else BookPerc = 0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if missing(Fixed)&amp;nbsp; then Fixed = 0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if missing(PRM) then PRM = 0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if missing(OFC) then OFC = 0;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; if missing(NEDChannelDesc) then delete;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 13:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894624#M353385</guid>
      <dc:creator>MJM11111</dc:creator>
      <dc:date>2023-09-16T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations not pulling through correctly.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894634#M353386</link>
      <description>&lt;P&gt;I moved this back in here, where it belongs.&lt;/P&gt;
&lt;P&gt;Please post a usable (DATA step with DATALINES) example of data1 and&amp;nbsp;&lt;SPAN&gt;WerkWM.DIMAPPLINFRA, so we have something to play around with. Also post the expected outcome for this example data.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 18:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-help-with-SAS-code/m-p/894634#M353386</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-09-16T18:04:35Z</dc:date>
    </item>
  </channel>
</rss>

