MUMPS CODE: X ^DD(9002198.2,2,9.3) S X=$S(Y(9002198.2,2,2):Y(9002198.2,2,3),Y(9002198.2,2,4):X)
9.2 = S Y(9002198.2,2,1)=$S($D(^ACR1099V(D0,0)):^(0),1:"") S X=$P(Y(9002198.2,2,1),U,3)]"",Y(9002198.2,2,2)=X S X=$P(Y(9002198.2,2,1),U,3),Y(9002198.2,2,3)=X S X=1
9.3 = X ^DD(9002198.2,2,9.2) S Y(9002198.2,2,4)=X S X=$S('$D(^AUTTVNDR(+$P(Y(9002198.2,2,1),U,1),0)):"",1:$P(^(0),U,1))
ALGORITHM: $S(IRS NAME]"":IRS NAME,1:VENDOR)
DESCRIPTION:
Used to print either the IRS NAME if it exists or the VENDOR NAME if no IRS NAME exists.