LibName trx SPDE "/.../transaction/" ;
%Let varToKeep =
system lineOfBusiness distribution company companyDivision region province accountingYear accountingYearMonth writtenPremium writtenUnit driverType ;
Data harmony_trx ;
Set trx.prm_trx_: (Keep=&varToKeep. );
Where accountingYear ge 2024 And accountingYearMonth LE 202509;
If distribution = 'Prestige' Then distribution = 'Broker';
If driverType = 'Occasional' Then writtenUnit = 0;
Run;
proc freq data=harmony_trx;
table driverType;
run;
the log file:
29 30 %Let varToKeep = 31 system lineOfBusiness distribution company companyDivision region province accountingYear accountingYearMonth 31 ! writtenPremium writtenUnit driverType ; 32 33 Data harmony_trx ; 34 Set trx.prm_trx_: (Keep=&varToKeep. );
WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced.
WARNING: The variable driverType in the DROP, KEEP, or RENAME list has never been referenced. 35 Where accountingYear ge 2024 And accountingYearMonth LE 202509; 36 37 If distribution = 'Prestige' Then distribution = 'Broker'; 38 If driverType = 'Occasional' Then writtenUnit = 0; 39 Run;
How to solve that issue because the driverType variable is really into the dataset
... View more