<?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: update all columns of specific naming convention across monthly dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723227#M224396</link>
    <description>&lt;P&gt;I this is what you try to achieve:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dlm="|";
input id  var1  var2  var3   var4 var300;
cards;
1  |1      |  2.2   | 0.5    | 0.5  | 1.23
1000  |21      |  0.2   | 0.6    | 0.15   | 0.23
;
run;
proc print;
run;

data want;
  set have;
  call missing(of var:);
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 18:01:24 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2021-03-03T18:01:24Z</dc:date>
    <item>
      <title>update all columns of specific naming convention across monthly dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723201#M224379</link>
      <description>&lt;P&gt;I' m having history score files which are monthly timestamp each having somewhere 20M records and 300 features( columns) . there are 200+ such scores files in which I have update same column as null . for example:&lt;/P&gt;
&lt;P&gt;Scorefile_20200101,Scorefile_20200201...Scorefile_20201201 etc&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Scorefile_202001 contains: (* id is unique)&lt;/P&gt;
&lt;P&gt;id | var1 | var2 | var3&amp;nbsp; | var4 |..var300&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; |1&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 2.2&amp;nbsp; &amp;nbsp;| 0.5&amp;nbsp; &amp;nbsp; | 0.5&amp;nbsp; .....1.23&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;1000&amp;nbsp; |21&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 0.2&amp;nbsp; &amp;nbsp;| 0.6&amp;nbsp; &amp;nbsp; | 0.15&amp;nbsp; .....0.23&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want to update these vars with null value&lt;/P&gt;
&lt;P&gt;code currently using sashelp.vcolumn to pull dataset name and column name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;update &amp;amp;scorewidefile;&lt;/P&gt;
&lt;P&gt;set &amp;amp;var;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This query takes around 6 min per iteration as files are big with 20Million records and 300 columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any alternate approach to expedite the process will be good to have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 16:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723201#M224379</guid>
      <dc:creator>LearnByMistk</dc:creator>
      <dc:date>2021-03-03T16:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: update all columns of specific naming convention across monthly dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723221#M224391</link>
      <description>&lt;P&gt;What variable are you trying to update? Is it the one with the (...) prefix? Please post an example using the DATALINES statement so we can see the exact issue.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 17:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723221#M224391</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2021-03-03T17:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: update all columns of specific naming convention across monthly dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723227#M224396</link>
      <description>&lt;P&gt;I this is what you try to achieve:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dlm="|";
input id  var1  var2  var3   var4 var300;
cards;
1  |1      |  2.2   | 0.5    | 0.5  | 1.23
1000  |21      |  0.2   | 0.6    | 0.15   | 0.23
;
run;
proc print;
run;

data want;
  set have;
  call missing(of var:);
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 18:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723227#M224396</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-03-03T18:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: update all columns of specific naming convention across monthly dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723229#M224397</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35763"&gt;@yabwon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I this is what you try to achieve:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dlm="|";
input id  var1  var2  var3   var4 var300;
cards;
1  |1      |  2.2   | 0.5    | 0.5  | 1.23
1000  |21      |  0.2   | 0.6    | 0.15   | 0.23
;
run;
proc print;
run;

data want;
  set have;
  call missing(of var:);
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can even avoid invoking the call missing for each and every observation, yet still have all the variables (except ID) set to missing in the data set:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  if 0 then set have;
  set have (keep=id);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Mar 2021 18:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723229#M224397</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-03-03T18:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: update all columns of specific naming convention across monthly dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723231#M224398</link>
      <description>&lt;P&gt;Mark, one word: brilliant&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 18:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/723231#M224398</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-03-03T18:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: update all columns of specific naming convention across monthly dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/724269#M224851</link>
      <description>&lt;P&gt;as always community is very much responsive&amp;nbsp; and helpful . Thanks all for their valuable time and response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 11:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/update-all-columns-of-specific-naming-convention-across-monthly/m-p/724269#M224851</guid>
      <dc:creator>LearnByMistk</dc:creator>
      <dc:date>2021-03-07T11:24:11Z</dc:date>
    </item>
  </channel>
</rss>

