Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: AUTTVND2

AUTTVND2.m

Go to the documentation of this file.
AUTTVND2 ; IHS/DIRM/JDM/DFM - CHECK FOR VENDOR FILE DUPLICATES; [ 10/06/2006  10:08 AM ]
 ;;98.1;IHS DICTIONARIES (POINTERS);**21**;OCT 2005;Build 6
 ;
1102 ;EP - input transform file 9999999.11, field 1102
 Q:$D(DDS)&($G(DDS)["ACR")
 I X["""" K X Q
 I $L(X)>2 K X Q
 I $L(X)<2 K X Q
 I $A(X)=45 K X Q
 I X'?2UN K X Q
 N AUTEIN,AUTPREF
 S AUTEIN=$P($G(^AUTTVNDR(DA,11)),"^",1)
 I AUTEIN="" K X Q
 S AUTPREF=$E(AUTEIN)
 I 12'[AUTPREF K X Q
 I AUTPREF=1,$G(X)="" D
 .I '$D(ZTQUEUED) W !,"EIN SUFFIX is required for Vendors of type ORGANIZATION."
 .K X
 Q:'$D(X)
 D SUFFIX^AUTTVNDR
 Q