BookmarkSubscribeRSS Feed
AssisJadue
Fluorite | Level 6

Hi ,

 

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.

 

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.

 

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):

The problem is that acually the new table has 276123 observations instead of 276879 as Sas is staying in the log.

 

2017-10-19_14-28-51.jpg2017-10-18_15-48-09.jpg

6 REPLIES 6
Reeza
Super User

Can't read those, please post these as text directly in the post.

ballardw
Super User

I am wondering if you are getting confused by reusing the same table names.

Your log shows a tbo1.histo_incidents at or around line 501 getting created with 276073 variables.

 

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.

 

Please post the log, and only the log as text into a code box opened using the forum {I} menu icon.

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.

AssisJadue
Fluorite | Level 6

Thanks for your answer. I extract the log which is in the attachment now.

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 ;

 

proc sort data=Histo_incidents1 out= tb01.Histo_incidents (DROP= _id) ;

by _id ;

run ;

 

or even more simple ;

 

Data tb01.histo_incidents2 (DROP= _id);

set single;

run;

 

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.

 

I don't know if explained myself properly, please let me know how I could help you to understand my conflict.

 

Thanks again!

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&MoisNum histo_incidents_total;
1495 +     set histo_incidents;
1496 +     by  incident_id;
1497 +     if  annee = &Annee and mois= &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&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&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&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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(&Types,&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
ballardw
Super User

One concern I would have is that in one of your macros, Union_V2,  you are using the TB01.histo_incidents set as input and output generating code:

 

Data TB01.histo_incidents;

    set TB01.histo_incidents incidents;

run;

 

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.

 

I would suggest running proc contents on both of the data sets and comparing the creation information and the sizes reported.

 

 

 

 

 

Reeza
Super User

Post a PROC CONTENTS of the output data set and the log showing the issue.

 

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. 

 

 

AssisJadue
Fluorite | Level 6

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 . 

 

Thank you both of you for guiding me to get the right answer.

 

 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 855 views
  • 2 likes
  • 3 in conversation