A popular DATA step programming technique frequently used by SAS users is the ability to identify the beginning and ending observation in by-groups. The way it works is whenever a BY statement is specified with a SET statement, two temporary variables are created in the Program Data Vector (PDV), FIRST.variable
Uncategorized
SAS author's tip: Identifying FIRST.row and LAST.row in by-groups
What keeps an insurance CEO awake at night?
I cannot speak from experience, but predominately an Insurance CEO has three primary objectives: Grow the business Reduce expenses Ensure compliance. Let’s individually consider each of these objectives in more detail. Grow the Business How does an insurance company grow from a $2bn to a $3bn organization? Essentially, insurance has
Compute the kth smallest data value in SAS
A SAS programmer recently posted a question to the SAS/IML Support Community about how to compute the kth smallest value in a vector of numbers. In the DATA step, you can use the SMALLEST function to find the smallest value in an array, but there is no equivalent built-in function