{smcl} {* 8nov2004}{...} {hline} help for {hi:renseq}{right: El } {hline} {title:Rename a variable sequence} {p 8 17 2} {cmdab:renseq} {it:prefix} [{it:newprefix}], {cmdab:suf:fix(}{it:suffixlist}{cmd:)} [ {cmdab:k:eep} ] {title:Description} {p 4 4 2}{cmd:renseq} renames a series of variables sharing a common prefix. If {it:newprefix} is specified, the prefix will be changed, as with {cmd:renpfix}. But the main purpose of the command is to change the suffixes; each variable starting with {it:prefix} will have the remainder of its name changed to one of the suffixes in {it:suffixlist}. {p 4 4 2}The first suffix in {it:suffixlist} will be assigned to the first variable (in dataset order) that begins with {it:prefix}. The second suffix will be assigned to the second variable, etc. {p 4 4 2}Any {it:prefix}ed variables beyond the number of suffixes provided will be dropped, unless {cmdab:k:eep} is specified, in which case they will be kept, with their original suffixes. {title:Example} {cmd:. renseq s_, suffix(spr sum fall win)} {cmd:. renseq properties_ problems_, suffix(hot cold drop1 bright drop2 dark) keep} {title:Also see} {psee}Online: help for {help renany}, {help rename}, {help renpfix} {pstd}Contact: {browse "mailto:elliott.lowy@va.gov":Elliott Lowy}