Re: Combining Two Variables? by Kristen - Friday, September 14, 2018, 11:35 PM Number of replies: 0 If there is no overlap then this will work: set obs 10gen A = 1 in 1/5gen B = 2 in 6/10gen C = Areplace C = B if C==. Permalink Show parent