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

ABSPOSU6.m

Go to the documentation of this file.
  1. ABSPOSU6 ; IHS/FCS/DRS - utilities, continued ;
  1. ;;1.0;PHARMACY POINT OF SALE;;JUN 21, 2001
  1. Q
  1. COMMSLOG ;EP - ABSPOSC2 ; ABSP COMMS LOG VIEW option
  1. ; choose which dial out
  1. N DIC,X,DTIME,DLAYGO,DINUM,Y,DTOUT,DUOUT
  1. N DIR,DA,DIRUT
  1. N POP,DIALOUT ; DIALOUT points to 9002313.55
  1. N LOGFILEN ; points to piece in ^ABSP(9002313.55,DIALOUT,"LOG FILE")
  1. N LOGSLOT ; points to ^ABSPECX("LOG",
  1. S DIC=9002313.55,DIC(0)="AEM"
  1. S DIC("A")="DISPLAY log file for which Dial Out: "
  1. D
  1. . N X S X=$$DEF5599^ABSPOSA Q:'X
  1. . S DIC("B")=$P(^ABSP(9002313.55,X,0),U)
  1. D ^DIC W !
  1. Q:Y<0 S DIALOUT=+Y
  1. N LOGFILES S LOGFILES=$G(^ABSP(9002313.55,DIALOUT,"LOG FILE"))
  1. I LOGFILES?."^" D Q
  1. . W !,"There are no log files available for this dial out.",!
  1. ; ask for device
  1. D ^%ZIS Q:$G(POP)
  1. S LOGFILEN=1
  1. ; display log file
  1. C1 S LOGSLOT=$P(LOGFILES,U,LOGFILEN)
  1. U IO D PRINTLOG^ABSPOSL(LOGSLOT)
  1. ; ask if you want to see previous file
  1. U $P
  1. I $P(LOGFILES,U,LOGFILEN+1)="" G C2 ; no more log files, you're done
  1. S DIR(0)="YO",DIR("A")="Want to see the previous log file"
  1. D ^DIR W !
  1. I Y S LOGFILEN=LOGFILEN+1 G C1
  1. C2 ;
  1. D ^%ZISC
  1. Q