<?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: Function : FCMP Value Assignment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765905#M242653</link>
    <description>&lt;P&gt;I intended to do it manually but if there is a way to do it automatically. I'll change my mind :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say I have a dataset with 1 person with age=20 and a mortality table with value from age 20 to 22 for each sex.&lt;/P&gt;&lt;P&gt;I want to calculate the probability of death for each age. To do so,i need to compute the following formula :&amp;nbsp;&lt;CODE class=" language-sas"&gt;qx=(Lx[i,Sex]-Lx[i+1,Sex])/Lx[i,Sex];&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
ID=1;
Age=20;
Sex=1;

run;

Data T_Mortality;
retain Age 20;
do Lx=100 to 97 by-1;
Sex=1;
output;
Age=Age+1;
end;
Age=20;
do Lx=99 to 96 by-1;

Sex=2;
output;
Age=Age+1;
end;
run;

Data want;
set have;

Do i=Age to 22;

qx=(Lx[i,Sex]-Lx[i+1,Sex])/Lx[i,Sex];
output;
end;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With the following information, how can I use a merge to perform the calculation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally, with your FCMP function, I can perform the calculation. I'll just need to write the Lx value manually which is kind of annoying but it'll work.&lt;/P&gt;&lt;P&gt;Thx for ur help.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 17:43:45 GMT</pubDate>
    <dc:creator>adil256</dc:creator>
    <dc:date>2021-09-03T17:43:45Z</dc:date>
    <item>
      <title>Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765873#M242628</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create a function where I assign a value depending on the parameters of the function as such:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=mydata.functions.func;
function Lx(Age,Sex);

Lx(1,1)=100;
Lx(2,1)=99;
Lx(3,1)=97;

/*
.
.
.
*/
Lx(1,2)=99;
Lx(2,2)=95;
Lx(3,2)=82;

/*
.
.
.
*/
return(Lx);
endsub;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Unfortunately it doesn't work at all&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;I can use "If then Statement " to achieve what I want like shown below, but I would like to learn a different way to get it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=mydata.functions.func;
function Lx(Age,Sex);

if sex=1 then
do;
if age = 1 then
Lx=100;
else if age=2 then
Lx=99;
else if age=3 then
Lx=97;

/*
.
.
.
*/
end;

else if sex=2 then
do;
if age = 1 then
Lx=99;
else if age=2 then
Lx=95;
else if age=3 then
Lx=82;

/*
.
.
.
*/
end;

return(Lx);
endsub;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If someone has any clue on how to achieve this , it'd be awesome to share the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank u all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 15:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765873#M242628</guid>
      <dc:creator>adil256</dc:creator>
      <dc:date>2021-09-03T15:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765876#M242630</link>
      <description>&lt;P&gt;So, there is no formula for the return value in terms of Age and Sex?&amp;nbsp; You have a table of values for&lt;/P&gt;
&lt;P&gt;Sex=1, 2&lt;/P&gt;
&lt;P&gt;and for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Age=1,2,3?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case, define an array in the PROC FCMP function and look up the value you want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=work.funcs.TestFuncs;
function Lx(Age,Sex);
array f[3,2] (100 99 87
               99 95 82);
if (0 &amp;lt; Age &amp;lt;= 3) and (0 &amp;lt; Sex &amp;lt;= 2) then 
   return( f[Age, Sex] );
else
   return( . );
endsub;
quit;

options cmplib=work.funcs;  /* define location of function */
data Want;
do Age = 1 to 3;
   do Sex=1 to 2;
      y = Lx(Age, Sex);
      output;
   end;
end;
run;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 16:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765876#M242630</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-09-03T16:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765879#M242631</link>
      <description>&lt;P&gt;Your first FCMP doesn't work because you aren't assigning values to LX unless you expect to pass an array back as a value (or maybe an element of an array).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may be what you are looking for. I used a different function name and library so there isn't confusion with yours while testing.&lt;/P&gt;
&lt;PRE&gt;proc fcmp outlib=sasuser.funcs.trial;;
function lukup (age,sex);
   /* this array ONLY uses sex=1 and 2
      with ages= 1, 2 and 3
      the two rows of values are for easy alignment
      age=4 would be the 4th value in each row
      age=5 would be the 5th value in each row
      repeat as needed
   */
   array s_a[2,3] (100 99 97 
                    99 95 87
                  );
   lx = s_a[sex,age];
   return (lx);
endsub;
run;

options cmplib=sasuser.funcs;

data example;
   do sex =1,2;
      do age= 1 to 3;
         result=lukup(age,sex);
         output;
      end;
   end;
run;
&lt;/PRE&gt;
&lt;P&gt;If you have more values for sex or age then the ARRAY definition would need to have the numbers in the (2,3) updated to match the number of sex and age values. Additional sex values would require more rows. IF you have gaps in the numbers of values, such as you need an age=7 but don't have an age=6 value then place a . (missing) in the corresponding place in the row. &lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 16:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765879#M242631</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-03T16:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765883#M242635</link>
      <description>That looks like a lookup table that should be dealt with via a MERGE unless this is something you're using in multiple locations in your programs.</description>
      <pubDate>Fri, 03 Sep 2021 16:15:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765883#M242635</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-03T16:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765889#M242640</link>
      <description>&lt;P&gt;Thank u very much for the quick solution.&lt;/P&gt;&lt;P&gt;This is exactly what I need. It does the job perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with the age and the sex for each person. Sex can only have 2 values, either 1=Man or 2=Women.&lt;/P&gt;&lt;P&gt;The Lx correspond to the values of a mortality table from age 1 to age 120.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do u have any support to recommend for array. I didn't know it was possible to have multiple argument when using array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just have a general question regarding this kind of array. Is it possible to replace parameter 3 by an asterisk in case I don't want count the number of output?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=work.funcs.TestFuncs;
function Lx(Age,Sex);
array f[*,2] (100 99 87
               99 95 82);
if (0 &amp;lt; Age &amp;lt;= 3) and (0 &amp;lt; Sex &amp;lt;= 2) then 
   return( f[Age, Sex] );
else
   return( . );
endsub;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Sep 2021 16:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765889#M242640</guid>
      <dc:creator>adil256</dc:creator>
      <dc:date>2021-09-03T16:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765892#M242642</link>
      <description>&lt;P&gt;Thank u too for ur solution. It's very similar to Rick_Sas's solution.&lt;/P&gt;&lt;P&gt;I just don't understand why the parameters are reversed in your array [2,3] instead of [3,2] from Rick_Sas.&lt;/P&gt;&lt;P&gt;Maybe the order is not important in my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah basically I need to lookup the value but I also need to perform calculations with iteration depending on the Age. That's why the merge is not possible for what I want to do I think.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 16:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765892#M242642</guid>
      <dc:creator>adil256</dc:creator>
      <dc:date>2021-09-03T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765895#M242645</link>
      <description>Are you planning to manually enter these values or have them entered from a lookup table somehow? Your FCMP code is manual entry by comparison where a temporary array from a data step can load from a data set or your merge can be dynamic. SAS data step loops automatically so I'm fairly certain a merge will work fine. &lt;BR /&gt;</description>
      <pubDate>Fri, 03 Sep 2021 16:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765895#M242645</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-03T16:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765904#M242652</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43088"&gt;@adil256&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank u too for ur solution. It's very similar to Rick_Sas's solution.&lt;/P&gt;
&lt;P&gt;I just don't understand why the parameters are reversed in your array [2,3] instead of [3,2] from Rick_Sas.&lt;/P&gt;
&lt;P&gt;Maybe the order is not important in my case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yeah basically I need to lookup the value but I also need to perform calculations with iteration depending on the Age. That's why the merge is not possible for what I want to do I think.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Style choice for which variable is the "row" and which is the "column" position. No technical or practical difference.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 17:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765904#M242652</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-03T17:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765905#M242653</link>
      <description>&lt;P&gt;I intended to do it manually but if there is a way to do it automatically. I'll change my mind :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say I have a dataset with 1 person with age=20 and a mortality table with value from age 20 to 22 for each sex.&lt;/P&gt;&lt;P&gt;I want to calculate the probability of death for each age. To do so,i need to compute the following formula :&amp;nbsp;&lt;CODE class=" language-sas"&gt;qx=(Lx[i,Sex]-Lx[i+1,Sex])/Lx[i,Sex];&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
ID=1;
Age=20;
Sex=1;

run;

Data T_Mortality;
retain Age 20;
do Lx=100 to 97 by-1;
Sex=1;
output;
Age=Age+1;
end;
Age=20;
do Lx=99 to 96 by-1;

Sex=2;
output;
Age=Age+1;
end;
run;

Data want;
set have;

Do i=Age to 22;

qx=(Lx[i,Sex]-Lx[i+1,Sex])/Lx[i,Sex];
output;
end;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With the following information, how can I use a merge to perform the calculation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally, with your FCMP function, I can perform the calculation. I'll just need to write the Lx value manually which is kind of annoying but it'll work.&lt;/P&gt;&lt;P&gt;Thx for ur help.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 17:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765905#M242653</guid>
      <dc:creator>adil256</dc:creator>
      <dc:date>2021-09-03T17:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765915#M242661</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
ID=1;
Age=20;
Sex=1;
do age = age to 22;
output;
end;
run;

Data T_Mortality;
retain Age 20;
do Lx=100 to 97 by-1;
Sex=1;
output;
Age=Age+1;
end;
Age=20;
do Lx=99 to 96 by-1;

Sex=2;
output;
Age=Age+1;
end;
run;

proc sql;
create table want as
select t1.ID, t1.Age, t1.Sex, mort1.lx as lx_age, mort2.lx as lx_age_1, (mort1.lx - mort2.lx)/mort1.lx as qx
from have as t1
left join t_mortality as mort1
on mort1.age=t1.age
and mort1.sex=t1.sex
left join t_mortality as mort2
on mort2.age = t1.age+1
and mort2.sex = t1.sex;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43088"&gt;@adil256&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I intended to do it manually but if there is a way to do it automatically. I'll change my mind :).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say I have a dataset with 1 person with age=20 and a mortality table with value from age 20 to 22 for each sex.&lt;/P&gt;
&lt;P&gt;I want to calculate the probability of death for each age. To do so,i need to compute the following formula :&amp;nbsp;&lt;CODE class=" language-sas"&gt;qx=(Lx[i,Sex]-Lx[i+1,Sex])/Lx[i,Sex];&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
ID=1;
Age=20;
Sex=1;

run;

Data T_Mortality;
retain Age 20;
do Lx=100 to 97 by-1;
Sex=1;
output;
Age=Age+1;
end;
Age=20;
do Lx=99 to 96 by-1;

Sex=2;
output;
Age=Age+1;
end;
run;

Data want;
set have;

Do i=Age to 22;

qx=(Lx[i,Sex]-Lx[i+1,Sex])/Lx[i,Sex];
output;
end;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With the following information, how can I use a merge to perform the calculation?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normally, with your FCMP function, I can perform the calculation. I'll just need to write the Lx value manually which is kind of annoying but it'll work.&lt;/P&gt;
&lt;P&gt;Thx for ur help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 19:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765915#M242661</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-03T19:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765922#M242664</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43088"&gt;@adil256&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I just have a general question regarding this kind of array. Is it possible to replace parameter 3 by an asterisk in case I don't want count the number of output?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array f[*,2] (100 99 87
               99 95 82);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, the asterisk is not allowed in the definition of two-dimensional arrays.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/43088"&gt;@adil256&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I just don't understand why the parameters are reversed in your array [2,3] instead of [3,2] from Rick_Sas.&lt;/P&gt;
&lt;P&gt;Maybe the order is not important in my case.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Note that the order of initial values depends on your "style choice" between a 2×3 array (&lt;FONT face="courier new,courier"&gt;sex,age&lt;/FONT&gt;) and a 3×2 array&amp;nbsp;(&lt;FONT face="courier new,courier"&gt;age,sex&lt;/FONT&gt;). You must use "row-major order" (see &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/p08do6szetrxe2n136ush727sbuo.htm" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;With the example values from your initial post your choices are:&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;array a[2,3] (&lt;FONT color="#3366FF"&gt;100 99 97&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;99 95 82&lt;/FONT&gt;);
array b[3,2] (&lt;FONT color="#3366FF"&gt;100&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;99&lt;/FONT&gt; &lt;FONT color="#3366FF"&gt;99&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;95&lt;/FONT&gt; &lt;FONT color="#3366FF"&gt;97&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;82&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;You &lt;EM&gt;may&lt;/EM&gt; write either of these in tabular form (ideally reflecting the array dimensions) for better readability, ...&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;array a[2,3] (&lt;FONT color="#3366FF"&gt;100 99 97&lt;/FONT&gt;
               &lt;FONT color="#FF00FF"&gt;99 95 82&lt;/FONT&gt;);

array b[3,2] (&lt;FONT color="#3366FF"&gt;100&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;99&lt;/FONT&gt;
               &lt;FONT color="#3366FF"&gt;99&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;95&lt;/FONT&gt;
               &lt;FONT color="#3366FF"&gt;97&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;82&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;... but the compiler ignores these fancy arrangements and only demands row-major order.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 20:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/765922#M242664</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-09-03T20:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/766021#M242702</link>
      <description>Thank u to all of u guys.&lt;BR /&gt;I learned a lot thanks to u.&lt;BR /&gt;</description>
      <pubDate>Sat, 04 Sep 2021 09:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/766021#M242702</guid>
      <dc:creator>adil256</dc:creator>
      <dc:date>2021-09-04T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/766036#M242710</link>
      <description>&lt;P&gt;Your boundary checks can be done easier and more precisely by using IN operator.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if age in (1:3) and sex in (1:2) then &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now non-integer values of AGE like 2.5 will be trapped.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 16:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/766036#M242710</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-04T16:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function : FCMP Value Assignment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/766037#M242711</link>
      <description>&lt;P&gt;And since the SAS compiler does not care if you use space or commas or both in delimiting the list you can use:&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;array a[2,3] (&lt;FONT color="#3366FF"&gt;100 99 97&lt;/FONT&gt;,&lt;FONT color="#FF00FF"&gt;99 95 82&lt;/FONT&gt;);
array b[3,2] (&lt;FONT color="#3366FF"&gt;100&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;99,&lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;99&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;95,&lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;97&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;82&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;to make is clearer to humans what is happening.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 16:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Function-FCMP-Value-Assignment/m-p/766037#M242711</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-04T16:19:44Z</dc:date>
    </item>
  </channel>
</rss>

