Bonjour,
A une table en sortie de ma requête, je souhaite ajouter par un code la date qui est disponible dans la dite table et qui est au format numérique sur 6 caractères (201406 par exemple).
Je peux également utiliser un champ au format date.

J'ai tenté :
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
WARNING: Apparent symbolic reference DATE_ANALYSE not resolved.
15         /* On créé une table mensuelle */
16         Data WORK.append_table_0000_&DATE_ANALYSE. ;
                                                        _
                                                        22
                                                        200
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_.  
 
ERROR 200-322: The symbol is not recognized and will be ignored.
 
17         	length DATEANALYSE 6. ;
18         	set WORK.STOCK_CT_LOG_RCT_PAR_CONTRATS ;
19         	DATEANALYSE = &DATE_ANALYSE. ;
                                    _
                                    386
                                    200
WARNING: Apparent symbolic reference DATE_ANALYSE not resolved.
ERROR 386-185: Expecting an arithmetic expression.
 
ERROR 200-322: The symbol is not recognized and will be ignored.
 
20         run;
 
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.APPEND_TABLE_0000_ may be incomplete.  When this step was stopped there were 0 observations and 13 
         variables.
WARNING: Data set WORK.APPEND_TABLE_0000_ was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds
Par avance merci de votre aide