Fiche Data Prep

Action Principale : catTrans

Code de préparation

Script en attente de validation
Copié !
1DATA casuser.customer_data;
2 LENGTH product_category $ 20;
3 DO i = 1 to 1000;
4 IF rand('UNIFORM') < 0.5 THEN purchase = 1; ELSE purchase = 0;
5 select(rand('INTEGER', 1, 10));
6 when(1) product_category = 'Electronics';
7 when(2) product_category = 'Clothing';
8 when(3) product_category = 'Home Goods';
9 when(4) product_category = 'Books';
10 when(5) product_category = 'Sports';
11 when(6) product_category = 'Toys';
12 when(7) product_category = 'Groceries';
13 when(8) product_category = 'Automotive';
14 when(9) product_category = 'Music';
15 otherwise product_category = 'Other';
16 END;
17 OUTPUT;
18 END;
19RUN;
Actions utilisant ce script
  • dataPreprocess catTrans En cours
  • Aucune autre action n'utilise ce script exact.