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

OCXOCMPP.m

Go to the documentation of this file.
OCXOCMPP ;SLC/RJS,CLA - ORDER CHECK CODE COMPILER (Generate Active Data Purge Logic) ;10/29/98  12:37
 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
 ;;  ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
 ;
EN ;
 ;
 Q:'$$LINE^OCXOCMP4("PURGE") 1
 ;
 S D0=0 F  S D0=$O(^OCXS(860.2,D0)) Q:'D0  D
 .Q:$G(^OCXS(860.2,D0,"INACT"))
 .S D1=0 F  S D1=$O(^OCXS(860.2,D0,"C",D1)) Q:'D1  D
 ..S SEL=$G(^OCXS(860.2,D0,"C",D1,"SEL"))
 ..S ELE=$P(^OCXS(860.2,D0,"C",D1,0),U,2)
 ..I $L(SEL),'(SEL="LAST"),ELE S OCXSEL(ELE)=""
 ;
 D IN^OCXOCMP4("PURGE"," N OCXE0,OCXE1,OCXS")
 D IN^OCXOCMP4("PURGE"," I $G(DFN) S OCXE0=0 F  S OCXE0=$O(^OCXD(860.1,DFN,1,""C"",OCXE0)) Q:'OCXE0  D")
 ;
 S D0=0 F  S D0=$O(OCXSEL(D0)) Q:'D0  D IN^OCXOCMP4("PURGE"," .Q:(OCXE0="_D0_")")
 ;
 D IN^OCXOCMP4("PURGE"," .S OCXE1=$O(^OCXD(860.1,DFN,1,""C"",OCXE0,""""),-1) Q:'OCXE1")
 D IN^OCXOCMP4("PURGE"," .S OCXE1=$O(^OCXD(860.1,DFN,1,""C"",OCXE0,OCXE1),-1) Q:'OCXE1")
 D IN^OCXOCMP4("PURGE"," .S OCXE1=$O(^OCXD(860.1,DFN,1,""C"",OCXE0,OCXE1),-1) Q:'OCXE1")
 D IN^OCXOCMP4("PURGE"," .F  S OCXE1=$O(^OCXD(860.1,DFN,1,""C"",OCXE0,OCXE1),-1) Q:'OCXE1  D")
 D IN^OCXOCMP4("PURGE"," ..K ^OCXD(860.1,DFN,1,OCXE1)")
 D IN^OCXOCMP4("PURGE"," ..K ^OCXD(860.1,DFN,1,""B"",OCXE1,OCXE1)")
 D IN^OCXOCMP4("PURGE"," ..K ^OCXD(860.1,DFN,1,""C"",OCXE0,OCXE1)")
 ;
 Q
 ;