gen A = B==0 & C==1 replace A = . if B== .| C==.
generate byte A = B==0 & C==1 if B!=. & C!=.
generate byte A = B==0 & C==1 if !missing(B, C)
Comment