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

AZCMPR.m

Go to the documentation of this file.
AZCMPR ;CCTHIS IS AN EXAMPLE OF PRINT AZCM(1440069 GLOBAL  [ 11/04/91  11:18 AM ]
 ;10/28/91  4:40 PM
 ; ;10/24/91 11:13 AM
STUFF ;S DFN="",PO=0
 ;S PO=$O(^AZCM(1440069,"C",PO)),DFN=$O(^AZCM(1440069,"C",PO,DFN)) Q:+BPO=0
 ;S BBA=$P(^AZCM(1440069,DFN,0),"^",1) W BA
 ;S FI=$P(^AZCM(1440069,DFN,1,0),"^",2) W ?5,FI
 ;S ADATE=$P(^AZCM(1440069,DFN,2,1,0),"^",1) W ?20,ADATE
 ;S ALLOW=$P(^AZCM(1440069,DFN,2,1,0),"^",2) W ?30,ALLOW
 ;S CAN=$P(^AZCM(1440069,DFN,1,1,0),"^",1) W ?40,CAN
 ;S OBJF=$P(^AZCM(1440069,DFN,1,1,1,0),"^",2) W ?45,OBJF
 ;S OBJ=$P(^AZCM(1440069,DFN,1,1,1,1,0),"^",1) W ?60,OBJ
 ;S DOCF=$P(^AZCM(1440069,DFN,1,1,1,1,1,0),"^",2) W ?65,DOCF
 ;S DOC=$P(^AZCM(1440069,DFN,1,1,1,1,1,1,0),"^",1) W !!,?5,DOC
 ;S OBLG=$P(^AZCM(1440069,DFN,1,1,1,1,1,1,0),"^",2) W ?15,OBLG
 ;S VENDOR=$P(^AZCM(1440069,DFN,1,1,1,1,1,1,0),"^",5) W ?25,VENDOR
 ;S PO=$P(^AZCM(1440069,DFN,1,1,1,1,1,1,2),"^",1) W ?35,PO
 ;S OBDT=$P(^AZCM(1440069,DFN,1,1,1,1,1,1,2),"^",2) W ?50,OBDT
START R "ENTER BEG NO.: ",START:300 Q:'$D(START)
 W !!
END R "ENTER ENDING NO. :",END:300 G:((START?.N)&(END'?.N)) START G:((START?1A.E)&(END'?1A.E)) START G:END<START START Q:'$D(END)
 S DFN="",BA=0
BEG S BA=$O(^AZCM(1440069,"B",BA)),DFN=$O(^AZCM(1440069,"B",BA,DFN)) G:+BA=0 ADD
DO ;ENTRY POINT FOR SETTING VARIABLES
 S CAN=0
CAN S CAN=$O(^AZCM(1440069,DFN,1,CAN)) G:+CAN=0 BEG
 S OBJ=0
OBJ S OBJ=$O(^AZCM(1440069,DFN,1,CAN,1,OBJ)) G:+OBJ=0 CAN
 S DOBC=0
DOC S DOC=$O(^AZCM(1440069,DFN,1,CAN,1,OBJ,1,DOC)) G:+DOC=0 OBJ
 S PO=$P(^AZCM(1440069,DFN,1,CAN,1,OBJ,1,DOC,2),"^",1)
 ;W !!,PO
 S ^AZCMTMPG("B",PO)=PO
 G DOC
ADD S X=START
 S X=X-1
ADD1 S X=X+1 Q:X>END
 I '$D(^AZCMTMPG("B",X)) W !!,"MISSING DOCUMENT NUMBER ",X
 G ADD1
 Q
 K ^AZCMTMPG("B",PO)