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

ENY2REP1.m

Go to the documentation of this file.
  1. ENY2REP1 ;;(WIRMFO)/DH-Y2K Category Reports ;8.19.98
  1. ;;7.0;ENGINEERING;**51,55**;August 17, 1993
  1. EN ; print counts by equipment category or manufacturer, decreasing order
  1. ; indicate Y2K status
  1. W @IOF,!,?20,"** SUMMARY OF Y2K EQUIPMENT DATA **"
  1. I $P($G(^DIC(6910,1,0)),U,2)']"" W !!,"There is no STATION NUMBER in your Engineering Init Parameters file.",!,"Can't proceed." Q
  1. W ! S DIR(0)="SM^CAT:EQUIPMENT CATEGORY;MFG:MANUFACTURER;CSN:CATEGORY STOCK NUMBER",DIR("A")="Print Summary by",DIR("B")="CAT"
  1. D ^DIR K DIR Q:$D(DIRUT)
  1. S ENTYPE=Y
  1. W ! S DIR(0)="YA",DIR("A")="Shall we ignore "_$S(ENTYPE="CAT":"EQUIPMENT CATEGORIES",ENTYPE="MFG":"MANUFACTURERS",1:"CATEGORY STOCK NUMBERS")_" with no Y2K issues? ",DIR("B")="YES"
  1. S DIR("?",1)="Enter YES if you do not wish to see counts for "_$S(ENTYPE="CAT":"EQUIPMENT CATEGORIES",ENTYPE="MFG":"MANUFACTURERS",1:"CATEGORY STOCK NUMBERS")_" for"
  1. S DIR("?")="which all of the equipment entries have Y2K CATEGORIES of 'NA' or 'FC'."
  1. D ^DIR K DIR I $D(DIRUT) K ENTYPE Q
  1. S ENSUP=Y
  1. W ! S DIR(0)="SM^A:ALPHABETICALLY;C:BY COUNT",DIR("A")="Sort List",DIR("B")="ALPHABETICALLY"
  1. S DIR("?")="If COUNT is specified then large groupings will be at the top of your list."
  1. D ^DIR K DIR I $D(DIRUT) K ENTYPE,ENSUP Q
  1. S ENSORT=Y
  1. I ENSORT="C" D I $D(DIRUT) K ENTYPE,ENSUP,ENSORT Q
  1. . W ! S DIR(0)="N^1:9999:0",DIR("A")="Only print "_$S(ENTYPE="CAT":"EQUIPMENT CATEGORIES",ENTYPE="MFG":"MANUFACTURERS",1:"CATEGORY STOCK NUMBERS")_" with COUNT of at least",DIR("B")=1
  1. . S DIR("?")="This feature allows you to print only the high count entries."
  1. . D ^DIR K DIR Q:$D(DIRUT)
  1. . S ENSORT("MIN")=Y
  1. S ENSTN=0
  1. I $P(^DIC(6910,1,0),U,10)!($D(^DIC(6910,1,3))) D I ENSTN="^" K ENTYPE,ENSUP,ENSORT,ENSTN Q
  1. . S DIR(0)="Y",DIR("A")="Do you want a breakout by station",DIR("B")="NO"
  1. . S DIR("?",1)="If you say 'NO' you will obtain a single report for all your equipment,"
  1. . S DIR("?")="regardless of which station it belongs to."
  1. . W ! D ^DIR K DIR I $D(DIRUT) S ENSTN="^" Q
  1. . S ENSTN=Y
  1. W !! K IO("Q") S %ZIS="QM" D ^%ZIS I POP K ENTYPE,ENSUP,ENSORT,ENSTN Q
  1. I $D(IO("Q")) S ZTRTN="DEQUE^ENY2REP8" D K ENTYPE,ENSUP,ENSORT,ENSTN Q
  1. . S ZTSAVE("EN*")="",ZTDESC="Y2K Counts by EQUIPMENT CATEGORY"
  1. . S ZTIO=ION D ^%ZTLOAD,HOME^%ZIS K ZTSK
  1. ;
  1. G DEQUE^ENY2REP8
  1. ;ENY2REP1