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

ABMEFLAT.m

Go to the documentation of this file.
ABMEFLAT ; IHS/DSD/DMJ - GENERATE FLAT FILE FROM MAIL MESSAGE ; 
 ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
START ;START HERE
 S DA=0 F  S DA=$O(^XMB(3.9,"AF",DA)) Q:'DA  D
 .I $P(^XMB(3.9,DA,0),U)'["EMC CLAIMS FROM" K ^XMB(3.9,"AF",DA) Q
 .D OPEN Q:POP
 .D CREATE
 .D NOW^%DTC
 .S DIE="^XMB(3.9,",DR="1.98////"_% D ^DIE
 .D ^%ZISC
 Q
CREATE ;CREATE FLAT FILE FROM MAIL MSG TEXT
 S I=.999 F  S I=$O(^XMB(3.9,DA,2,I)) Q:'I  D
 .Q:POP
 .U IO W ^XMB(3.9,DA,2,I,0),!
 Q
OPEN ;OPEN HOST FILE
 S %ZIS("B")="HOST FILE SERVER" D ^%ZIS Q:POP
 S FILE=$P(IOPAR,":",1)
 S FILE=$P(FILE,"(",2)
 Q