Bonjour,
voici un programme tout basique qui fonctionne :
j'essaie de l'automatiser avec des array et je bloque complètement ,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 data m2 ; set maxaut1(keep = contrat compagnie produit marque immat date_effet date_resil lib_avt prim_ttc rannee rmois); where rannee="2011" and rmois="5"; format x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 ddmmyy10.; x1=intnx('month',date_effet,0); x2=intnx('month',date_effet,1); x3=intnx('month',date_effet,2); x4=intnx('month',date_effet,3); x5=intnx('month',date_effet,4); x6=intnx('month',date_effet,5); x7=intnx('month',date_effet,6); x8=intnx('month',date_effet,7); x9=intnx('month',date_effet,8); x10=intnx('month',date_effet,9); x11=intnx('month',date_effet,10); x12=intnx('month',date_effet,11); run;
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 data array3; set maxaut2; array bord b1-b36 ; do i=1 to 36; bord(i)=mdy(
quelqu'un peut il m'aider a me sortir de ce binzzzzz.
j'ai le même problème avec le programme suivant :
je ne sais pas non plus l'automatiser.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 data test2; set test; format bord012010 bord022010 bord032010 bord042010 bord052010 bord062010 bord072010 bord082010 bord092010 bord102010 bord112010 bord122010 ddmmyy10.; bord012010=mdy(01,01,2010); bord022010=mdy(02,01,2010); bord032010=mdy(03,01,2010); bord042010=mdy(04,01,2010); bord052010=mdy(05,01,2010); bord062010=mdy(06,01,2010); bord072010=mdy(07,01,2010); bord082010=mdy(08,01,2010); bord092010=mdy(09,01,2010); bord102010=mdy(10,01,2010); bord112010=mdy(11,01,2010); bord122010=mdy(12,01,2010); run;
Partager