<?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: Chaging value in range of variables in big file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712455#M219655</link>
    <description>&lt;P&gt;it showed this error,&lt;BR /&gt;&lt;BR /&gt;ERROR: Invalid macro parameter name 4. It should be a valid SAS identifier no longer than 32 characters.&lt;BR /&gt;ERROR: A dummy macro will be compiled.&lt;/P&gt;&lt;P&gt;on this line:&lt;BR /&gt;length variable $32. variable_value $50.;&lt;/P&gt;&lt;P&gt;i tried to change "variable value %50" to 32 but its still the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 17:48:30 GMT</pubDate>
    <dc:creator>Antoni</dc:creator>
    <dc:date>2021-01-19T17:48:30Z</dc:date>
    <item>
      <title>Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712232#M219536</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;it's 12hours since i'm trying to get over this problem. I need to write a report about credit scorring.&lt;/P&gt;&lt;P&gt;There are values assigned as 'M' that represent missing data(some comedian did that). I need to get rid of both usual missing data which is "." and "M" so i can start calculating correlations and regression based on regular data. I tried to reasign those "M" values into regular ' ' in a range of variables that contain the "M" value but i'm constantly failing i have egsams soon and have to write this report till saturday but since 3 days i have about 8 lines.&amp;nbsp;&lt;BR /&gt;This is my recent ceration but it fails:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data wanted;&lt;BR /&gt;set have( keep=act_age -- app_char_cars);&lt;BR /&gt;if (act_age -- app_char_cars)='M' then (act_age -- app_char_cars)=' ';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 21:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712232#M219536</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-18T21:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712236#M219538</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data wanted;
set have( keep=act_age -- app_char_cars);
array t  act_age -- app_char_cars;
do over t;
 if t= 'M' then t=' ';
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/364521"&gt;@Antoni&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;1. Group the list of variables in an array. This assumes all the variables in the list are of the same type and the arrangement is contiguous&lt;/P&gt;
&lt;P&gt;2. Cycle through the array using a Loop. Yes, it's a linear search and replace method. Therefore, If an element aka variable in the array is "M", reset the value of the element to ' '&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 21:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712236#M219538</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-01-18T21:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712241#M219541</link>
      <description>&lt;P&gt;Chances are your data is fine and needs no change.&amp;nbsp; The "comedian" may have actually known what (s)he was doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you intend to run correlations, these variables must be numeric.&amp;nbsp; So what appears as "M" is actually a special form of a missing value.&amp;nbsp; SAS supports 28 different forms of missing values for numeric variables, and "." is only one of those.&amp;nbsp; So are .A, .B, ..., .Z, and ._&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using a special missing value lets you differentiate why the value is missing, but it is still missing.&amp;nbsp; So if all this rings true, let your data alone!&amp;nbsp; It's fine.&amp;nbsp; Try running a correlation and see what happens.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 22:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712241#M219541</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-01-18T22:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712248#M219546</link>
      <description>&lt;P&gt;If you want to perform the same action on multiple columns and the columns are all the same type then you can use an array.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you want to do numeric calculations on your data but it has to be coded as character to contain an M or you're using special missing values. I'm going to assume the first is the situation. You can try and deal with the M or you can convert everything to numbers. Because you are converting the variable type you'll need two arrays, one for the old values and one for the new values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a tutorial on using Arrays in SAS&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/sas-arrays/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/seminars/sas-arrays/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this to work for you, you will need to list the variables in each array. I've included a tutorial on arrays above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;

array _old(*) act_age app_char_cars;
array _new(*) age char_cars;

do i=1 to dim(old_variables);

*if not missing or M, convert to a numeric value;
if old(i) not in ("", "M") then new(i) = input(old(i), 8.);

end;

drop act_age app_char_cars;
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/364521"&gt;@Antoni&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;BR /&gt;it's 12hours since i'm trying to get over this problem. I need to write a report about credit scorring.&lt;/P&gt;
&lt;P&gt;There are values assigned as 'M' that represent missing data(some comedian did that). I need to get rid of both usual missing data which is "." and "M" so i can start calculating correlations and regression based on regular data. I tried to reasign those "M" values into regular ' ' in a range of variables that contain the "M" value but i'm constantly failing i have egsams soon and have to write this report till saturday but since 3 days i have about 8 lines.&amp;nbsp;&lt;BR /&gt;This is my recent ceration but it fails:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data wanted;&lt;BR /&gt;set have( keep=act_age -- app_char_cars);&lt;BR /&gt;if (act_age -- app_char_cars)='M' then (act_age -- app_char_cars)=' ';&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 22:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712248#M219546</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-18T22:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712254#M219552</link>
      <description>the problem is there are 2300 variables, whats why i needed it to be done through range</description>
      <pubDate>Mon, 18 Jan 2021 22:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712254#M219552</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-18T22:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712255#M219553</link>
      <description>it is. If i would want to delete variables with more than 40% missing values, both ' ' and 'M' it would require some kind of macro to be written, right?</description>
      <pubDate>Mon, 18 Jan 2021 22:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712255#M219553</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-18T22:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712257#M219555</link>
      <description>the problem is i am completly new to this kid of operations and it's easier to me to have only numerical values because i won't have to deal with it through many other operations that needs to be done</description>
      <pubDate>Mon, 18 Jan 2021 22:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712257#M219555</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-18T22:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712259#M219557</link>
      <description>&lt;P&gt;ERROR: All variables in array list must be the same type, i.e., all numeric or character. - well that's not new sight for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 22:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712259#M219557</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-18T22:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712260#M219558</link>
      <description>There are other ways if you want to explain your problem thoroughly. We can only have the information you post and at the moment I suspect you need to back up and redesign however you created this data. If you read it in from text files or from a DB there may be methods there to ensure that these issues never occurred in the first place.</description>
      <pubDate>Mon, 18 Jan 2021 22:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712260#M219558</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-18T22:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712261#M219559</link>
      <description>well this data was provided by my professor, i can do whatever i want with it as long as it works and provides some kind of information</description>
      <pubDate>Mon, 18 Jan 2021 22:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712261#M219559</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-18T22:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712263#M219561</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;it's easier to me to have only numerical values&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You already have numerical values. Read&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;'s reply again. Chances are you need to fix exactly nothing.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 22:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712263#M219561</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-01-18T22:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712264#M219562</link>
      <description>and what if i want to delete variables that have more than 40% missing data? i would have to create macro?&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 23:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712264#M219562</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-18T23:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712268#M219566</link>
      <description>&lt;P&gt;I'm not sure a macro actually helps that much here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, here's an example of a macro that would do it. There's a small example at the end that shows how it's used as well and it drops anything over 20% in that example. I included that as a parameter so it's actually a more generic program. If your list ends up being longer than 64k characters this may not work as well for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;


%macro drop_missing_pct(input_dsn = , output_dsn=, pct = , id_vars=);

*create format for missing;
proc format;
    value $ missfmt ' '="Missing" other="Not Missing";
    value nmissfmt .="Missing" other="Not Missing";
run;

*Proc freq to count missing/non missing;
ods select none;
*turns off the output so the results do not get too messy;
ods table onewayfreqs=temp;

proc freq data=&amp;amp;INPUT_DSN. (drop = &amp;amp;ID_Vars);
    table _all_ / missing;
    format _numeric_ nmissfmt. _character_ $missfmt.;
run;


ods select all;
*Format output;

data long;
    length variable $32. variable_value $50.;
    set temp;
    Variable=scan(table, 2);
    Variable_Value=strip(trim(vvaluex(variable)));
    presentation=catt(frequency, " (", trim(put(percent/100, percent7.1)), ")");
    keep variable variable_value frequency percent cum: presentation;
    label variable='Variable' variable_value='Variable Value';
run;

*not required for display purposes;
proc sort data=long;
    by variable;
run;

*select variables more than x% missing;
proc sql noprint;
select variable into :drop_var_list separated by " "
from long where variable_value = 'Missing' and percent &amp;gt; &amp;amp;pct;
quit;

*Drop variables;
data &amp;amp;output_dsn;
set &amp;amp;input_dsn;
drop &amp;amp;drop_var_list;
run;

*clean up;
*uncomment after testing;
/* proc sql; */
/* drop table long; */
/* drop table temp; */
/* quit; */

%mend;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And the test to show it works:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
*test;

data class;
    set sashelp.class;

    if age=14 then
        call missing(height, weight, sex);

    if name='Alfred' then
        call missing(sex, age, height);
    label age="Fancy Age Label";
run;


%drop_missing_pct(input_dsn = class, output_dsn = want, pct = 20, id_vars = Name);



*check output;
proc contents data=want;
run;



&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/feedc3fc520cb0d2018ca2a8cab241d8" target="_blank"&gt;https://gist.github.com/statgeek/feedc3fc520cb0d2018ca2a8cab241d8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 23:30:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712268#M219566</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-18T23:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712282#M219578</link>
      <description>&lt;P&gt;Given that there might be special missing values in the data, this line in the macro should be revised:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    value nmissfmt .="Missing" other="Not Missing";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It should become:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    value nmissfmt  ._ - .Z ="Missing" other="Not Missing";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2021 01:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712282#M219578</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-01-19T01:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712286#M219581</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/364521"&gt;@Antoni&lt;/a&gt;&amp;nbsp; Hence the reason I mentioned "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;This assumes all the variables in the list are of the same type and the arrangement is contiguous&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Either&amp;nbsp;way, If you are running against time for a deliverable I suggest not to be concerned about the mechanisms. Please post a clean representative mock sample of&amp;nbsp;what you HAVE and&amp;nbsp;what you&amp;nbsp;WANT. I'm sure somebody&amp;nbsp;will provide the needed solution. You need to include the data types and other info so that you can avoid going back and forth.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Just act fast, get the report delivered and then open up a new thread to discuss &amp;amp; learn. Chill&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 01:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712286#M219581</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-01-19T01:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712416#M219643</link>
      <description>yes and here's one otf the problem i'm dealing with that i could not find a solution for&lt;BR /&gt;&lt;BR /&gt;drop_missing_pct(input_dsn = , output_dsn=, pct = , id_vars=)&lt;BR /&gt;&lt;BR /&gt;i'm unable to put id_vars= because i need the results from all of the 2300 variables, so i need to either put them as range, write them separately or ther's other solution that im not aware of, please be patient im very new to those things and there were 6 lessons where we made really basic things and now we need to create this kind of report..</description>
      <pubDate>Tue, 19 Jan 2021 15:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712416#M219643</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-19T15:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712433#M219653</link>
      <description>ID_VARS are for variables you DO NOT want included, not those you want to include. Did you try running the code? Does it not do what you want?</description>
      <pubDate>Tue, 19 Jan 2021 16:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712433#M219653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-19T16:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712455#M219655</link>
      <description>&lt;P&gt;it showed this error,&lt;BR /&gt;&lt;BR /&gt;ERROR: Invalid macro parameter name 4. It should be a valid SAS identifier no longer than 32 characters.&lt;BR /&gt;ERROR: A dummy macro will be compiled.&lt;/P&gt;&lt;P&gt;on this line:&lt;BR /&gt;length variable $32. variable_value $50.;&lt;/P&gt;&lt;P&gt;i tried to change "variable value %50" to 32 but its still the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 17:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712455#M219655</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-19T17:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712464#M219661</link>
      <description>Did my example code not work?  Did you run it exactly as posted?&lt;BR /&gt;&lt;BR /&gt;Show the log from the code I provided and then show the code AND log you submitted for your data set.</description>
      <pubDate>Tue, 19 Jan 2021 18:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712464#M219661</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-19T18:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Chaging value in range of variables in big file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712471#M219664</link>
      <description>&lt;P&gt;all i did was filling: "%macro drop_missing_pct(input_dsn= have, output_dsn=want, pct = 0,4 , id_vars=);"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;my code is:&lt;/P&gt;&lt;P&gt;data surowe_train;&lt;BR /&gt;set 'C:\Users\Mateusz\Documents\Biblioteki\Raport\ABT_beh_sas\abt_sam_beh_train';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data surowe_valid;&lt;BR /&gt;set 'C:\Users\Mateusz\Documents\Biblioteki\Raport\ABT_beh_sas\abt_sam_beh_valid';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;create table sklejone as&lt;BR /&gt;select a.*, b.* from surowe_train as a left join surowe_valid as b&lt;BR /&gt;On a.cid=b.cid;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log from it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Writing HTML5(EGHTML) Body file: EGHTML&lt;BR /&gt;27&lt;BR /&gt;28 data surowe_train;&lt;BR /&gt;29 set 'C:\Users\Mateusz\Documents\Biblioteki\Raport\ABT_beh_sas\abt_sam_beh_train';&lt;BR /&gt;30 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 52841 observations read from the data set&lt;BR /&gt;C:\Users\Mateusz\Documents\Biblioteki\Raport\ABT_beh_sas\abt_sam_beh_train.&lt;BR /&gt;NOTE: The data set WORK.SUROWE_TRAIN has 52841 observations and 2310 variables.&lt;BR /&gt;NOTE: Instrukcja DATA zajęła (całkowity czas przetwarzania):&lt;BR /&gt;real time 9.87 seconds&lt;BR /&gt;cpu time 3.18 seconds&lt;/P&gt;&lt;P&gt;31&lt;BR /&gt;32 data surowe_valid;&lt;BR /&gt;33 set 'C:\Users\Mateusz\Documents\Biblioteki\Raport\ABT_beh_sas\abt_sam_beh_valid';&lt;BR /&gt;34 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 53070 observations read from the data set&lt;BR /&gt;C:\Users\Mateusz\Documents\Biblioteki\Raport\ABT_beh_sas\abt_sam_beh_valid.&lt;BR /&gt;NOTE: The data set WORK.SUROWE_VALID has 53070 observations and 2310 variables.&lt;BR /&gt;NOTE: Instrukcja DATA zajęła (całkowity czas przetwarzania):&lt;BR /&gt;real time 9.49 seconds&lt;BR /&gt;cpu time 3.32 seconds&lt;/P&gt;&lt;P&gt;35&lt;BR /&gt;36 proc sql noprint;&lt;BR /&gt;37 create table sklejone as&lt;BR /&gt;38 select a.*, b.* from surowe_train as a left join surowe_valid as b&lt;BR /&gt;39 On a.cid=b.cid;&lt;/P&gt;&lt;P&gt;then there is a few thousand warnings about data already existing in WORK.SKLEJONE&amp;gt;.(it has to do with my attempts to properly merge two files, i propaby created new library).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;theres no log from your code because it had error(i suppose that is the reason, because i can olnly see error beside whole code in the log)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 18:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Chaging-value-in-range-of-variables-in-big-file/m-p/712471#M219664</guid>
      <dc:creator>Antoni</dc:creator>
      <dc:date>2021-01-19T18:47:15Z</dc:date>
    </item>
  </channel>
</rss>

