I don't know how to use CNTLOUT but...if I were to accomplish the task that you need (and I am a "scientist and statistician", not programmer) I would do the following: create a copy of your data, applying a FORMAT statement to the variables of interest %let my_vars = ....; data copy(rename = (&my_vars = &my_temp_vars));* you can do this in a PROC SQL select into...; set have; format &my_vars.;*this will remove the format attached; run; data combine(keep = final_value); merge have copy; by something_unique; final_value = cats(&my_vars., "=", ' "&temp_vars." '); run; proc print data combine noobs; run; then copy/paste in a PROC FORMAT;value... ehehe... this is all early morning thinking,and you will need a %DO loop so you can %scan through your list of variables. Anca.
... View more