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

ACDPCD2.m

Go to the documentation of this file.
ACDPCD2 ;IHS/ADC/EDE/KML - PRINT CD2 REPORT; 
 ;;4.1;CHEMICAL DEPENDENCY MIS;;MAY 11, 1998
 ;
 ; This routine prints the CDMIS 2 REPORT for one selected site.
 ;
START ;
 D GETSITE
 I ACDQ D EOJ Q
 D REPORT
 D EOJ
 Q
 ;
GETSITE ; GET SITE
 S ACDQ=1
 S DIC="^ACDQAN(",DIC(0)="AEMQ" D DIC^ACDFMC
 Q:Y<0
 S ACDPSITE=+Y
 S ACDQ=0
 Q
 ;
REPORT ; PRINT REPORT
 S DIC="^ACDQAN(",FLDS="[ACD CDMIS-2 REPORT]",BY="@NUMBER",FR=ACDPSITE,TO=ACDPSITE,L=0 D EN1^DIP
 Q
 ;
EOJ ;
 D ^ACDKILL
 Q