<?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: SAS Data set shouldn't have as many variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647191#M193658</link>
    <description>&lt;P&gt;Shmuel,&lt;/P&gt;&lt;P&gt;Per your question on what I'm trying to accomplish.&amp;nbsp; I have a list of tasks that are permitted to execute through our security product.&amp;nbsp; Over the years we have stopped running some but have not removed their definitions from the security product.&amp;nbsp; I'm going through now to see if these tasks have run in the past year/ two years, and if they have not, remove them from the security product.&amp;nbsp; I have the list of the definitions for these tasks in the security product.&amp;nbsp; I also have a list of of what tasks (and many other jobs) that have actually ran in the past year/ two years.&amp;nbsp; My idea was to bump the list of 578 permitted tasks against what has actually run (408619 objects) and if there is no record of it having been run, remove it from the security product.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 18:25:51 GMT</pubDate>
    <dc:creator>JimDillon</dc:creator>
    <dc:date>2020-05-12T18:25:51Z</dc:date>
    <item>
      <title>SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645895#M193130</link>
      <description>&lt;P&gt;Attached is the log from a SAS program. The code could probably be a lot more efficient but ...&lt;/P&gt;&lt;P&gt;My goal is to see what jobs haven't been run in the past year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm reading in a lot of data so the information at the bottom of page 12 (408619 observations) appears to be correct.&amp;nbsp; However the log text near the bottom of page 23 (end of data set TASKS) doesn't seem quite correct - if, for each observation in data set PDB, I increment a counter, I should have 1 observation in data set TASKS with 579 variables, and not 407419 observations.&lt;/P&gt;&lt;P&gt;Why so many observations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 14:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645895#M193130</guid>
      <dc:creator>JimDillon</dc:creator>
      <dc:date>2020-05-07T14:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645915#M193138</link>
      <description>&lt;P&gt;I have selected lines from your log and you have probably missed something:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data set WORK.PDBIN has &lt;STRONG&gt;408619&lt;/STRONG&gt; observations and 4 variables&lt;/P&gt;
&lt;P&gt;The data set WORK.TASKS has &lt;STRONG&gt;407419&lt;/STRONG&gt; observations and 578 variables.&lt;/P&gt;
&lt;P&gt;The data set WORK.TASKNAMES has 407419 observations and 579 variables.&lt;/P&gt;
&lt;P&gt;1400 PROC SORT DATA=TaskNames NODUPS;&lt;BR /&gt;1401 BY TASKNAME;&lt;BR /&gt;1402 RUN;&lt;/P&gt;
&lt;P&gt;NOTE: There were 407419 observations read from the data set WORK.TASKNAMES.&lt;BR /&gt;NOTE: &lt;STRONG&gt;407238 duplicate observations were deleted.&lt;/STRONG&gt;&lt;BR /&gt;NOTE: The data set WORK.TASKNAMES has 181 observations and 579 variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what is your exact question?&lt;/P&gt;
&lt;P&gt;Try to post the first step making the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 15:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645915#M193138</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-07T15:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645916#M193139</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272421"&gt;@JimDillon&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's nothing in this DATA step that prevents the &lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n1lltvbis7ye1an1eryo4leh2mck.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1qhkkkt6q4lhzn1qpgknymqv2d5" target="_blank" rel="noopener"&gt;&lt;EM&gt;implied&lt;/EM&gt; OUTPUT statement&lt;/A&gt; from writing one observation per DATA step iteration to dataset &lt;FONT face="courier new,courier"&gt;Tasks&lt;/FONT&gt;, resulting in the same number of observations as have been read from &lt;FONT face="courier new,courier"&gt;PDBIN&lt;/FONT&gt;. You can wrap a DO-UNTIL loop around the SET statement to obtain a single observation, as shown in the example below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want(keep=t1-t3);
do until(last);
  set sashelp.class end=last;
  select;
    when(name=:'A') t1+1;
    when(name=:'J') t2+1;
    when(name=:'M') t3+1;
    otherwise;
  end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that neither an array nor an initialization are needed. The latter is due to the use of sum statements (&lt;FONT face="courier new,courier"&gt;t1+1&lt;/FONT&gt;) instead of ordinary assignment statements (&lt;FONT face="courier new,courier"&gt;t1=t1+1&lt;/FONT&gt;). They initialize the variables (&lt;FONT face="courier new,courier"&gt;t1&lt;/FONT&gt;, etc.) to zero by default.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 15:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645916#M193139</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-05-07T15:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645917#M193140</link>
      <description>&lt;P&gt;You have no explicit output statement in the data step that creates TASKS, so it will write one observation for every observation read from the input dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you seem to have never been introduced to procedures like FREQ and SUMMARY. To create a count of your jobs, just use PROC FREQ on table PDBIN.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 15:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645917#M193140</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-07T15:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645921#M193142</link>
      <description>&lt;P&gt;Any time you use a structure like:&lt;/P&gt;
&lt;PRE&gt;Data new;
   set old;
  &amp;lt;do something&amp;gt;
run;&lt;/PRE&gt;
&lt;P&gt;The data step processes every record in the data set OLD. If there were 100 records the &amp;lt;do something&amp;gt; code gets executed for each record, resulting in 100 records unless you do something to explicitly add records or only output the data for certain records (If &amp;lt;condition&amp;gt; then output;&amp;gt;&lt;/P&gt;
&lt;P&gt;Since you read the entire input data set you get each record out with the variables incremented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be a good idea to describe what you were attempting as this looks like a not very efficient attempt to count something and likely could be done with proc freq and/or transpose.&lt;/P&gt;
&lt;P&gt;Your select is likely not doing what you expect anyway.&lt;/P&gt;
&lt;P&gt;You show code like:&lt;/P&gt;
&lt;PRE&gt;189          WHEN (JOB =: 'AS')       T19 = T19 + 1;
190          WHEN (JOB =: 'ASCH')     T20 = T20 + 1;
&lt;/PRE&gt;
&lt;P&gt;If you intend the =: to be the "begins with" then "ASCH&amp;lt;anytext&amp;gt;" will begin with 'AS' and get in the T19 slot.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;data example;
   input job :$10.;
   array t(6);
   do i=1 to dim(t); t[i]=0;end;
   select;
      WHEN (JOB =: 'DSN')      T1 = T1 + 1;
      WHEN (JOB =: 'DSNCDBM1') T2 = T2 + 1;
      WHEN (JOB =: 'DSNCDIST') T3 = T3 + 1;
      WHEN (JOB =: 'DSNCIRLM') T4 = T4 + 1;
      WHEN (JOB =: 'DSNCMSTR') T5 = T5 + 1;
      WHEN (JOB =: 'DSNCWLMC') T6 = T6 + 1;
      otherwise ;
   end;
datalines;
DSN
DSNCDBM1
DSNCDIST
DSNCIRLM
DSNCMSTR
DSNCWLMC
;&lt;/PRE&gt;
&lt;P&gt;Note that the only "counter" that gets incremented is for DSN.&lt;/P&gt;
&lt;P&gt;If you don't mean to use "begins with" then you really need to be looking at Proc freq.&lt;/P&gt;
&lt;P&gt;Or you may want a multilabel format based on the Job variable that would allow a procedure like Proc Tabulate or Report to show counts with the "DSN" group plus all the other "DSNxxx" job values.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 22:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645921#M193142</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-07T22:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645952#M193157</link>
      <description>&lt;P&gt;I have selected few more rows from the log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;The data set WORK.PDBIN has 408619 observations and 4 variables

154         PROC SORT DATA=PDBIN NODUPS;
155          BY JOB;
156         RUN;

NOTE: There were 408619 observations read from the data set WORK.PDBIN.
NOTE: 1200 duplicate observations were deleted.
NOTE: The data set WORK.PDBIN has 407419 observations and 4 variables.
The data set WORK.TASKS has 407419 observations and 578 variables.

The data set WORK.TASKNAMES has 407419 observations and 579 variables.

1400        PROC SORT DATA=TaskNames NODUPS;
1401         BY TASKNAME;
1402        RUN;

NOTE: There were 407419 observations read from the data set WORK.TASKNAMES.
NOTE: 407238 duplicate observations were deleted.
NOTE: The data set WORK.TASKNAMES has 181 observations and 579 variables.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;according to log you read 408619 rows from PDBIN.&lt;/P&gt;
&lt;P&gt;there were 1200 duplicate JOBs.&lt;/P&gt;
&lt;P&gt;clearing duplicates you remained 407419 JOBs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then you counted tasks per &lt;STRONG&gt;selected&lt;/STRONG&gt; jobs.&lt;/P&gt;
&lt;P&gt;if you want only those jobs, you need a change in next step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Tasks (KEEP = /*TASKARRAY*/ JOB T1-T578);
Set PDBIN;
  BY JOB;    /* line added */
       Array TASKARRAY{578} T1-T578;
           /* initiallize the array */
          do i=1 to 578;
              TASKARRAY{i} = 0;
           end;
/* Search the PDB and for each task by that name found, increment counter */
SELECT;
    WHEN (JOB =: 'ABENDAID') T1 = T1 + 1;
     WHEN (JOB =: 'AIITAS')   T2 = T2 + 1;
    ........
     WHEN (JOB =: 'ZVIEW')    T578 = T578 + 1;
     OTHERWISE delete;   /* delete other jobs from input */
 END;
 Run;   
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 May 2020 17:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645952#M193157</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-07T17:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645955#M193159</link>
      <description>but you don't need all those counters as each job has its own counter.&lt;BR /&gt;you just need:&lt;BR /&gt;    data tasks;&lt;BR /&gt;      set PDBIN;&lt;BR /&gt;       by JOB;&lt;BR /&gt;            if  first.job then counter+1;&lt;BR /&gt;            if JOB in (&amp;lt;list of JOBs) then output;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 07 May 2020 17:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/645955#M193159</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-07T17:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/646216#M193268</link>
      <description>Kurt, thanks for your suggestions on the procedures. However, I'm looking in the Base SAS 9.4 Procedures Guide and don't find the FREQ procedure - i do see the SUMMARY proc which also references the MEANS proc.</description>
      <pubDate>Fri, 08 May 2020 13:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/646216#M193268</guid>
      <dc:creator>JimDillon</dc:creator>
      <dc:date>2020-05-08T13:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/646217#M193269</link>
      <description>Scmuel, thanks for your suggestion. I tried your first suggestion but I didn't see a decrease in the number of output observations. I then considered your second suggestion but it doesn't seem to support the 'begins with' concept that I have in place - and as pointed out, needs a little work - I don't know (as BallardW pointed out) if I have both "JOB =: 'AS'" and "JOB =: 'ASCH'" then the first would include the second - but how many jobs start with 'AS' other than 'ASCH'?</description>
      <pubDate>Fri, 08 May 2020 14:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/646217#M193269</guid>
      <dc:creator>JimDillon</dc:creator>
      <dc:date>2020-05-08T14:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/646228#M193272</link>
      <description>&lt;P&gt;A simple count can also be done in SQL:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
  select job, count(*) as count
  from pdbin
  group by job
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 May 2020 14:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/646228#M193272</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-08T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/646230#M193273</link>
      <description>&lt;P&gt;Would you like to try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tasks;
set PDBIN;
by JOB;
lenght jx $10; /* max length of job prefix checked */
if _N_ =1 then do i=1 to 578; ctrs(i)=0; end;
if substr(JOB,1,2)  in (&amp;lt;list of 2 first characters of JOB names) 
  then do; jx = substr(JOB,1,2); output; end; 
if substr(JOB,1,4) in (&amp;lt;list of 4 first characters of JOB names)
  then do; jx = substr(JOB,1,4); output; end; 
   .....
 keep jx job;
run;
proc freq data=tasks;
      table jx;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 May 2020 14:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/646230#M193273</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-08T14:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647000#M193590</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272421"&gt;@JimDillon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Kurt, thanks for your suggestions on the procedures. However, I'm looking in the Base SAS 9.4 Procedures Guide and don't find the FREQ procedure - i do see the SUMMARY proc which also references the MEANS proc.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The FREQ procedure is under "Base SAS Procedures Guide. Statistical Procedures", &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_freq_toc.htm&amp;amp;locale=" target="_blank" rel="noopener"&gt;The FREQ Procedure&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 08:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647000#M193590</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-12T08:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647004#M193594</link>
      <description>&lt;P&gt;A quick example for creating a count with FREQ:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pdbin;
input job :$8.;
datalines;
ABENDAID
AIITAS
AIITCP
AIITAS
ABENDAID
;

proc freq data=pdbin noprint;
tables job /out=want (drop=percent);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 May 2020 09:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647004#M193594</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-12T09:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647191#M193658</link>
      <description>&lt;P&gt;Shmuel,&lt;/P&gt;&lt;P&gt;Per your question on what I'm trying to accomplish.&amp;nbsp; I have a list of tasks that are permitted to execute through our security product.&amp;nbsp; Over the years we have stopped running some but have not removed their definitions from the security product.&amp;nbsp; I'm going through now to see if these tasks have run in the past year/ two years, and if they have not, remove them from the security product.&amp;nbsp; I have the list of the definitions for these tasks in the security product.&amp;nbsp; I also have a list of of what tasks (and many other jobs) that have actually ran in the past year/ two years.&amp;nbsp; My idea was to bump the list of 578 permitted tasks against what has actually run (408619 objects) and if there is no record of it having been run, remove it from the security product.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 18:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647191#M193658</guid>
      <dc:creator>JimDillon</dc:creator>
      <dc:date>2020-05-12T18:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647211#M193663</link>
      <description>&lt;P&gt;So you have your list of jobs allowed in a dataset. Sort that by the jobname.&lt;/P&gt;
&lt;P&gt;Sort the jobs that gave run with nodupkey.&lt;/P&gt;
&lt;P&gt;Merge the two datasets, and keep those that are in allowed, but not in pdbin.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 18:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647211#M193663</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-12T18:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data set shouldn't have as many variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647217#M193664</link>
      <description>&lt;P&gt;You can select distinct names of jobs run per year (let's say 2018 and 2019)&lt;/P&gt;
&lt;P&gt;then you can select all those jobs which run in 2018 but not in 2019,&lt;/P&gt;
&lt;P&gt;thus you get directly what you want - list of jobs not used any more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;adapt years as need.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 19:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Data-set-shouldn-t-have-as-many-variables/m-p/647217#M193664</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-12T19:09:57Z</dc:date>
    </item>
  </channel>
</rss>

