Data Prep Sheet

Action Principale : catTrans

Preparation Code

Script awaiting validation
Copied!
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 using this script
  • dataPreprocess catTrans En cours
  • No other action uses this exact script.