<?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: Duplicates records generated automatically when creating a new table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405749#M98741</link>
    <description>&lt;P&gt;I am wondering if you are getting confused by reusing the same table names.&lt;/P&gt;
&lt;P&gt;Your log shows a tbo1.histo_incidents at or around line 501 getting created with 276073 variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then after running about a 1000 lines of code you are getting different data set sizes. If the earlier lines don't apply then don't include them as they are only obfuscating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the log, and only the log as text into a code box opened using the forum {I} menu icon.&lt;/P&gt;
&lt;P&gt;I'm afraid that pictures aren't worth a 1000 words in this case. The multiple viewtable shots aren't helping as we really can't tell when any were created in relationship to any code ran.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2017 14:05:41 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-10-20T14:05:41Z</dc:date>
    <item>
      <title>Duplicates records generated automatically when creating a new table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405692#M98726</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been having a lot of difficulties to understand why SAS 9.3 generates duplicates when I create a table (which don't have any duplicates records) in the first place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the image attached you'll see in the log that X numbers of observations were read and X numbers were written but when I look a the table itself the numbers of records is Y.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1509 +proc sort data=Histo_incidents1 out= tb01.Histo_incidents (DROP= _id) ;&lt;BR /&gt;1510 + by _id ;&lt;BR /&gt;1511 +run ;&lt;/P&gt;
&lt;P&gt;NOTE: There were 276879 observations read from the data set WORK.HISTO_INCIDENTS1.&lt;BR /&gt;NOTE: The data set TB01.HISTO_INCIDENTS has 276879 observations and 23 variables.&lt;BR /&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The problem is that acually the new table has &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;276123&lt;/STRONG&gt;&lt;/FONT&gt; observations instead of &lt;FONT color="#339966"&gt;276879&lt;/FONT&gt; as Sas is staying in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-10-19_14-28-51.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16024i9A03490671B4E48B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-10-19_14-28-51.jpg" alt="2017-10-19_14-28-51.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-10-18_15-48-09.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16023i7ECD57775D9ECC44/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-10-18_15-48-09.jpg" alt="2017-10-18_15-48-09.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 19:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405692#M98726</guid>
      <dc:creator>AssisJadue</dc:creator>
      <dc:date>2017-10-19T19:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates records generated automatically when creating a new table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405694#M98727</link>
      <description>&lt;P&gt;Can't read those, please post these as text directly in the post.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 19:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405694#M98727</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-19T19:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates records generated automatically when creating a new table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405749#M98741</link>
      <description>&lt;P&gt;I am wondering if you are getting confused by reusing the same table names.&lt;/P&gt;
&lt;P&gt;Your log shows a tbo1.histo_incidents at or around line 501 getting created with 276073 variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then after running about a 1000 lines of code you are getting different data set sizes. If the earlier lines don't apply then don't include them as they are only obfuscating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the log, and only the log as text into a code box opened using the forum {I} menu icon.&lt;/P&gt;
&lt;P&gt;I'm afraid that pictures aren't worth a 1000 words in this case. The multiple viewtable shots aren't helping as we really can't tell when any were created in relationship to any code ran.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 14:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405749#M98741</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-20T14:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates records generated automatically when creating a new table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405927#M98783</link>
      <description>&lt;P&gt;Thanks for your answer. I extract the log which is in the attachment now.&lt;/P&gt;
&lt;P&gt;You'll see that at line 1482 the part of the code that I described start and it ends at 1512. The conflict to be more specific is when I only copy a table from work to any library, so let's say I have the following simple data set ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=Histo_incidents1 out= tb01.Histo_incidents (DROP= _id) ;&lt;/P&gt;
&lt;P&gt;by _id ;&lt;/P&gt;
&lt;P&gt;run ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or even more simple ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data tb01.histo_incidents2 (DROP= _id);&lt;/P&gt;
&lt;P&gt;set single;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In both cases SAS logs will tell me that I have a X number of observations written but a Y numbers are actually in the output table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if explained myself properly, please let me know how I could help you to understand my conflict.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;PRE&gt;1481 +
1482 +/* Élimination de doublons produit par la Macro Union_v2 */
1483 +data histo_incidents ;
1484 +  set tb01.Histo_incidents ;
1485 +  _id = _n_ ;
1486 +run ;

NOTE: There were 276879 observations read from the data set TB01.HISTO_INCIDENTS.
NOTE: The data set WORK.HISTO_INCIDENTS has 276879 observations and 24 variables.
NOTE: L'étape DATA used (Total process time):
      real time           17.11 secondes
      cpu time            0.65 secondes


1487 +
1488 +proc sort data=histo_incidents  ;
1489 +  by incident_id ;
1490 +run ;

NOTE: There were 276879 observations read from the data set WORK.HISTO_INCIDENTS.
NOTE: The data set WORK.HISTO_INCIDENTS has 276879 observations and 24 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.43 secondes
      cpu time            0.65 secondes


SYMBOLGEN:  La macro-variable MOISNUM est résolue en 10
1491 +
1492 +/* On utilise la table histo qui contient les doublons et on génère deux tables */
1493 +
1494 +data histo_incidents&amp;amp;MoisNum histo_incidents_total;
1495 +     set histo_incidents;
1496 +     by  incident_id;
1497 +     if  annee = &amp;amp;Annee and mois= &amp;amp;MoisNum
SYMBOLGEN:  La macro-variable ANNEE est résolue en 2017
SYMBOLGEN:  La macro-variable MOISNUM est résolue en 10
1498 +          then
SYMBOLGEN:  La macro-variable MOISNUM est résolue en 10
1498!+               output histo_incidents&amp;amp;MoisNum;
1499 +     else output histo_incidents_total;
1500 +run;

NOTE: There were 276879 observations read from the data set WORK.HISTO_INCIDENTS.
NOTE: The data set WORK.HISTO_INCIDENTS10 has 8832 observations and 24 variables.
NOTE: The data set WORK.HISTO_INCIDENTS_TOTAL has 268047 observations and 24 variables.
NOTE: L'étape DATA used (Total process time):
      real time           0.28 secondes
      cpu time            0.28 secondes


1501 +/* Remove dupes  de la table du mois*/
1502 +proc sort data=histo_incidents&amp;amp;MoisNum nodupkey ;
SYMBOLGEN:  La macro-variable MOISNUM est résolue en 10
1503 +  by incident_id ;
1504 +run ;

NOTE: There were 8832 observations read from the data set WORK.HISTO_INCIDENTS10.
NOTE: 0 observations with duplicate key values were deleted.
NOTE: The data set WORK.HISTO_INCIDENTS10 has 8832 observations and 24 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.02 secondes
      cpu time            0.01 secondes


1505 +
1506 +%union_v2(table1 = histo_incidents_total, table2 = histo_incidents&amp;amp;MoisNum, out = histo_incidents1);
MLOGIC(UNION_V2):  Début de l'exécution.
SYMBOLGEN:  La macro-variable MOISNUM est résolue en 10
MLOGIC(UNION_V2) :  Le paramètre TABLE1 a la valeur histo_incidents_total
MLOGIC(UNION_V2) :  Le paramètre TABLE2 a la valeur histo_incidents10
MLOGIC(UNION_V2) :  Le paramètre OUT a la valeur histo_incidents1
SYMBOLGEN:  La macro-variable TABLE1 est résolue en histo_incidents_total
MPRINT(UNION_V2):   proc contents data = histo_incidents_total noprint out = specs001(KEEP = VARNUM NAME TYPE LENGTH FORMAT);
MPRINT(UNION_V2):   run;

NOTE: The data set WORK.SPECS001 has 24 observations and 5 variables.
NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.02 secondes
      cpu time            0.00 secondes


SYMBOLGEN:  La macro-variable TABLE2 est résolue en histo_incidents10
MPRINT(UNION_V2):   proc contents data = histo_incidents10 noprint out = specs002(KEEP = VARNUM NAME TYPE LENGTH FORMAT);
MPRINT(UNION_V2):   run;

NOTE: The data set WORK.SPECS002 has 24 observations and 5 variables.
NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.01 secondes
      cpu time            0.01 secondes


MPRINT(UNION_V2):   data specs001;
MPRINT(UNION_V2):   set specs001;
MPRINT(UNION_V2):   name = lowcase(name);
MPRINT(UNION_V2):   run;

NOTE: There were 24 observations read from the data set WORK.SPECS001.
NOTE: The data set WORK.SPECS001 has 24 observations and 5 variables.
NOTE: L'étape DATA used (Total process time):
      real time           0.01 secondes
      cpu time            0.00 secondes


MPRINT(UNION_V2):   data specs002;
MPRINT(UNION_V2):   set specs002;
MPRINT(UNION_V2):   name = lowcase(name);
MPRINT(UNION_V2):   varnum = varnum + 500;
MPRINT(UNION_V2):   run;

NOTE: There were 24 observations read from the data set WORK.SPECS002.
NOTE: The data set WORK.SPECS002 has 24 observations and 5 variables.
NOTE: L'étape DATA used (Total process time):
      real time           0.01 secondes
      cpu time            0.01 secondes


MPRINT(UNION_V2):   proc sql noprint;
MPRINT(UNION_V2):   create table specsComb001 as select varnum, name, type,length, format from specs001 union all select varnum, name, type, length, format from specs002 order by varnum;
NOTE: Table WORK.SPECSCOMB001 created, with 48 rows and 5 columns.

MPRINT(UNION_V2):   select min(varnum) as varnum, lowcase(name), min(type) as type, max(length) as length into :varnumlist separated by "|", :names separated by "|", :types separated by "|", :lengths separated by "|"
from specsComb001 group by name order by varnum;
MPRINT(UNION_V2):   select count(distinct(upcase(name))) into :ncol from specsComb001;
MPRINT(UNION_V2):   quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.04 secondes
      cpu time            0.06 secondes


SYMBOLGEN:  La macro-variable OUT est résolue en histo_incidents1
MPRINT(UNION_V2):   data histo_incidents1;
SYMBOLGEN:  La macro-variable NCOL est résolue en       24
MLOGIC(UNION_V2) :  %Boucle DO démarrée ; variable indice I; valeur de départ : 1; valeur de fin : valeur de fin : 24; valeur by : 1.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 1
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 1
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 1
MPRINT(UNION_V2):   length incident_id $ 11 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 1
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 1
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 1
MPRINT(UNION_V2):   format incident_id $11.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 2; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 2
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 2
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 2
MPRINT(UNION_V2):   length vp $ 13 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 2
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 2
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 2
MPRINT(UNION_V2):   format vp $13.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 3; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 3
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 3
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 3
MPRINT(UNION_V2):   length dp $ 22 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 3
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 3
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 3
MPRINT(UNION_V2):   format dp $22.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 4; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 4
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 4
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 4
MPRINT(UNION_V2):   length entite $ 14 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 4
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 4
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 4
MPRINT(UNION_V2):   format entite $14.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 5; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 5
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 5
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 5
MPRINT(UNION_V2):   length direction $ 160 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 5
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 5
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 5
MPRINT(UNION_V2):   format direction $160.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 6; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 6
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 6
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 6
MPRINT(UNION_V2):   length priorite $ 5 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 6
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 6
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 6
MPRINT(UNION_V2):   format priorite $5.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 7; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 7
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 7
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 7
MPRINT(UNION_V2):   length interne $ 11 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 7
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 7
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 7
MPRINT(UNION_V2):   format interne $11.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 8; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 8
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 8
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 8
MPRINT(UNION_V2):   length groupe_affectation $ 60 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 8
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 8
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 8
MPRINT(UNION_V2):   format groupe_affectation $60.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 9; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 9
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 9
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 9
MPRINT(UNION_V2):   length pass 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 9
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 10; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 10
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 10
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 10
MPRINT(UNION_V2):   length volume 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 10
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 11; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 11
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 11
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 11
MPRINT(UNION_V2):   length mois 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 11
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 12; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 12
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 12
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 12
MPRINT(UNION_V2):   length trimestre 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 12
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 13; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 13
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 13
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 13
MPRINT(UNION_V2):   length annee 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 13
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 14; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 14
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 14
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 14
MPRINT(UNION_V2):   length etat $ 5 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 14
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est TRUE
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 14
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 14
MPRINT(UNION_V2):   format etat $5.;
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 15; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 15
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 15
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 15
MPRINT(UNION_V2):   length nb_reaffectations 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 15
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 16; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 16
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 16
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 16
MPRINT(UNION_V2):   length sans_reaff 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 16
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 17; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 17
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 17
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 17
MPRINT(UNION_V2):   length avec_reaff 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 17
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 18; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 18
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 18
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 18
MPRINT(UNION_V2):   length four_reaff 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 18
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 19; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 19
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 19
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 19
MPRINT(UNION_V2):   length clk_resolution 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 19
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 20; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 20
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 20
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 20
MPRINT(UNION_V2):   length denom_dsti 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 20
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 21; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 21
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 21
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 21
MPRINT(UNION_V2):   length vol_dsti_expert 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 21
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 22; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 22
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 22
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 22
MPRINT(UNION_V2):   length heure_resolution 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 22
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 23; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 23
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 23
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 23
MPRINT(UNION_V2):   length heure_ouverture 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 23
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  %La var. indice de la boucle DO I est maintenant 24; la boucle  va se répéter.
SYMBOLGEN:  La macro-variable NAMES est résolue en
            incident_id|vp|dp|entite|direction|priorite|interne|groupe_affectation|pass|volume|mois|trimestre|annee|etat|nb_reaffectations|sans_reaff|avec_reaff|four_reaff|clk_resolution|denom_dsti|vol_dsti_expert|heure_
            resolution|heure_ouverture|_id
SYMBOLGEN:  La macro-variable I est résolue en 24
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 24
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
SYMBOLGEN:  La macro-variable LENGTHS est résolue en 11|13|22|14|160|5|11|60|8|8|8|8|8|5|8|8|8|8|8|8|8|8|8|8
SYMBOLGEN:  La macro-variable I est résolue en 24
MPRINT(UNION_V2):   length _id 8 ;
SYMBOLGEN:  La macro-variable TYPES est résolue en 2|2|2|2|2|2|2|2|1|1|1|1|1|2|1|1|1|1|1|1|1|1|1|1
SYMBOLGEN:  La macro-variable I est résolue en 24
MLOGIC(UNION_V2) :  La condition %IF %scan(&amp;amp;Types,&amp;amp;i,"|")=2 est FALSE
MLOGIC(UNION_V2) :  La var. indice de la boucle %DO I est maintenant 25 ; la boucle ne va pas se répéter.
SYMBOLGEN:  La macro-variable TABLE1 est résolue en histo_incidents_total
SYMBOLGEN:  La macro-variable TABLE2 est résolue en histo_incidents10
MPRINT(UNION_V2):   set histo_incidents_total histo_incidents10;
MPRINT(UNION_V2):   run;

NOTE: There were 268047 observations read from the data set WORK.HISTO_INCIDENTS_TOTAL.
NOTE: There were 8832 observations read from the data set WORK.HISTO_INCIDENTS10.
NOTE: The data set WORK.HISTO_INCIDENTS1 has 276879 observations and 24 variables.
NOTE: L'étape DATA used (Total process time):
      real time           0.30 secondes
      cpu time            0.28 secondes


MPRINT(UNION_V2):   proc delete data = specs001 specs002 specscomb001;
MPRINT(UNION_V2):   run;

NOTE: Deleting WORK.SPECS001 (memtype=DATA).
NOTE: Deleting WORK.SPECS002 (memtype=DATA).
NOTE: Deleting WORK.SPECSCOMB001 (memtype=DATA).
NOTE: PROCEDURE DELETE used (Total process time):
      real time           0.00 secondes
      cpu time            0.00 secondes


MLOGIC(UNION_V2) :  Fin de l'exécution.
1507 +
1508 +/* Sort à son ordre originale */
1509 +proc sort data=Histo_incidents1 out= tb01.Histo_incidents (DROP= _id) ;
1510 +  by _id ;
1511 +run ;

NOTE: There were 276879 observations read from the data set WORK.HISTO_INCIDENTS1.
NOTE: The data set TB01.HISTO_INCIDENTS has 276879 observations and 23 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           13.42 secondes
      cpu time            2.27 secondes&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Oct 2017 12:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405927#M98783</guid>
      <dc:creator>AssisJadue</dc:creator>
      <dc:date>2017-10-20T12:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates records generated automatically when creating a new table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405975#M98794</link>
      <description>&lt;P&gt;One concern I would have is that in one of your macros, Union_V2, &amp;nbsp;you are using the TB01.histo_incidents set as input and output generating code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data TB01.histo_incidents;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set TB01.histo_incidents incidents;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And similar involving the work.histo_incidents. In multiple places. If there is any code that you run, possibly in the include files used that does similar then you may be looking at datasets from different times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest running proc contents on both of the data sets and comparing the creation information and the sizes reported.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 14:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405975#M98794</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-20T14:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates records generated automatically when creating a new table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405980#M98796</link>
      <description>&lt;P&gt;Post a PROC CONTENTS of the output data set and the log showing the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect the data set is being modified after that section in the log so make sure to search backwards for the last instance of that data set name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 15:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/405980#M98796</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-20T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates records generated automatically when creating a new table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/407257#M99221</link>
      <description>&lt;P&gt;Thanks for your help. Sorry for the delay, the output table tb01.histo_incidents1 is modify by another program using exactly the same output table name tb01.histo_incidents around 1000 lines after .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you both of you for guiding me to get the right answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Duplicates-records-generated-automatically-when-creating-a-new/m-p/407257#M99221</guid>
      <dc:creator>AssisJadue</dc:creator>
      <dc:date>2017-10-25T13:28:46Z</dc:date>
    </item>
  </channel>
</rss>

