@sbxkoenk wrote:
You can do the Unrestricted Random Sample (URS) with a datastep as well, but the datastep uses statements (like retain) that will not work on the CAS engine. See Implement five sampling methods in the SAS DATA step - The DO Loop.
If the RETAIN statement was an obstacle (although it is used in CAS example code), it could be omitted, as it appears to be totally redundant in that URS sampling program.
... View more