Generate a random percentage of records
Note: This user function should not be executed in CAS scripting objects.
randpct 10
randpct 10 CURBAL
Select 10% of Virginia records
Select 10% worth of Virginia loans
randpct 10 STATE
randpct 10 CURBAL STATE
randpct Propotion (Weight) (SelectionStatement∣Grouping)
Name | Data Type | Input Type | Description | Optional | Default |
---|---|---|---|---|---|
Propotion | Numeric | Constant | Proportion of records | No | |
Weight | Numeric | Field, Constant | Proportion of records | Yes | |
SelectionStatement | Boolean | Field | Expression to select records that will be applied to the calculation. | Yes | 1 |
Grouping | Text | Field, Constant | Grouping Field | No |
Type: Boolean
Randomly Selected Records