Bonjour,
Je fais des tests sur ma table et je sors un fichier word.
Il n'y a que le premier titre qui est voyant.Faut-il rajouter une fonction?
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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 ods rtf file="Z:\&REPERTOIRE\CONTROLE-IN.rtf" STARTPAGE = NO; proc freq data ="Z:\tmp\&REPERTOIRE.origine"; tables NOM_orig / list missing; where NOM_orig ="" OR ANYDIGIT(nom_orig)=1; title "COMPTAGE CHAMP NOM / VIDE OU ERRONE"; run; proc freq data ="Z:\tmp\&REPERTOIRE.origine"; tables PRENOM_orig / list missing; where prenom_orig="" OR ANYDIGIT(prenom_orig)=1; title "COMPTAGE PRENOM / VIDE OU ERRONE"; run; proc freq data ="Z:\tmp\&REPERTOIRE.origine"; tables CP_orig / list missing; where CP_orig="" OR PRXMATCH("/^[A-Z]/i",compbl(cp_orig))=1; title "COMPTAGE CP / VIDE OU ERRONE"; run; proc freq data ="Z:\tmp\&REPERTOIRE.origine"; tables CP_orig / list missing; where length(CP_orig)<>5; title "COMPTAGE LONGUEUR CP DIFFERENT DE 5"; run; proc freq data ="Z:\tmp\&REPERTOIRE.origine"; tables VILLE_orig / list missing; where VILLE_orig="" OR ANYDIGIT(VILLE_orig)=1; title "COMPTAGE VILLE VIDE ou ERRONEE"; run; proc freq data ="Z:\tmp\&REPERTOIRE.origine"; tables adr1_orig / list missing; where adr1_orig="" and adr2_orig="" and adr3_orig="" and adr4_orig=""; title "COMPTAGE SI ADR1/ADR2/ADR3/ADR = VIDE"; run; proc sql; select count(*) as qte_adresses_tronquees from "Z:\tmp\&REPERTOIRE.origine" where length(compbl(adr1_orig))>40 or length(compbl(adr2_orig))>40 or length(compbl(adr3_orig))>40 or length(compbl(adr4_orig))>40 ; quit; ods rtf close;
Merci pour votre aide.
Partager