I need to create a random number in a file that is exported from SAS Customer Intelligence Studio.
I used this function in the Calculated Items section: rand("integer",100000,999999) to generate random numbers between 100000 and 999999.
The random number must be converted to character and concatenated with other text values to produce this output.: r9_C1000_130922_512202
SAS Code: NEWVAR='r9_C1000_'||strip(put(today(),ddmmyy7.))||'_'||put(rand("integer",100000,999999),$6.);
However, the expression fails as soon as I change it to put(rand("integer",100000,999999),$6.) in the Calculated field in SAS CI Studio, creating a new Character Calculated Field.
SAS Eguide Code Calculated Item in SAS CI Studio
... View more