IMAGING |
Washington/Silver Spring |
1) for Mail group lookup:
S MAGA="MAG SERVER" ; Mail group name
S MAGDATA=$$FIND1^DIC(3.8,"","MX",MAGA,"","","ERR")
Then:
. ;Add G.MAG SERVER @ development site as remote recipient
. S MAGM="G.IMAGING DEVELOPMENT TEAM@DNS "
. I $$FIND1^DIC(3.812,","_MAGDATA_",","MX",MAGM,"","","ERR") D
. . S MAGE(3.812,"+1,"_MAGDATA_",",.01)=MAGM
. . D UPDATE^DIE("E","MAGE")
. ;Remove development domain mailgroup reference
. S MAGX=$E("G.MAG SERVER@LAVC.DNS ",1,30)
. S IEN=$$FIND1^DIC(3.812,","_MAGDATA_",","MX",MAGX,"","","ERR")
. I +IEN>0 D
. . K MAGE
. . S MAGE(3.812,IEN_","_MAGDATA_",",.01)="@"
. . D UPDATE^DIE("E","MAGE")
2)
D GETS^DIQ(3.8,IEN_",","2*;11*;12*","","ARRAY")
|