Data Prep Sheet

Action Principale : catTrans

Preparation Code

Script awaiting validation
Copied!
1DATA casuser.my_table;
2 LENGTH category1 $ 10 category2 $ 1;
3 DO i=1 to 100;
4 IF rand('UNIFORM') < 0.1 THEN category1 = 'RARE';
5 ELSE IF rand('UNIFORM') < 0.5 THEN category1 = 'GROUP_A';
6 ELSE category1 = 'GROUP_B';
7 IF rand('UNIFORM') < 0.7 THEN category2 = 'X';
8 ELSE category2 = 'Y';
9 target = (rand('UNIFORM') < 0.3);
10 OUTPUT;
11 END;
12 RUN;
Actions using this script
  • dataPreprocess catTrans En cours
  • No other action uses this exact script.