|
It may depend on the width of the values in ID1 and ID2
If no more than 4 digits wide then
concatenate the keys to create the input value/range
value $complex
'00010001' = 'Mailing'
'00010002' = 'Vente'
'00020001' = 'Correspondance'
;
data...................
type = put( put( id1, z4.) !! put( id2, z4.), $complex. );
Of course, you could concatenate ID values up to 8 digits wide, but that seems
"overkill" !
Datum: 07.12.99 08:51
An: SAS-L@listserv.uga.edu
Antwort an: nicolas.pont@unicible.ch
Betreff: Question Formats
Nachrichtentext:
I have a data set like
ID1 ID2 LIBELLE
1 1 Mailing
1 2 Vente
2 1 Correspondance
The Keys are the variable ID1 and ID2, How can I make a format on both Keys
(ID1 and ID2) ? Is it possible ?
Thanks in advance for any help
|