st: Recoding all variables in a dataset From: Stephen Cranney <scranney@sas.upenn.edu> Prev by Date: st: Recoding all variables in a dataset Next by Date: st: Generate correlated binary data for fixed rho Previous by thread: st: Recoding all variables in a dataset Next by thread...
Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session. Register now! How to Concatenate Values Learn how use the CAT functions in SAS to join values from multiple variables into a single value. Find more tutorials on the...
or empty orNULL. IfsortLevelsis set toTRUE, the levels of the variables named in the character vector will all be sorted; ifsortLevelsisTRUEandfactorInfois empty orNULL, all factors will be sorted. If afactorInfolist is provided, each variable information list contains one or more of the ...
@sasgorilla wrote: I am creating indicator variables for character variables with a dataset imported from excel. In this dataset there are multiple misspellings, extra spaces, etc. so I copied and pasted each value of the variable from a PROC FREQ to get something like the below:...
* Rename variables in data set; data _null_; set have (obs=1) end=end; array nums _numeric_; if _N_ = 1 then call execute('proc datasets nolist lib=work; modify have;'); do i = 1 to dim(nums); vname = vname(nums{i}); if prxmatch("/MBA_\d+_VALUE/",vn...