VistA-WorldVistAEHR/r/VOLUNTARY_TIMEKEEPING-ABSV/ABSVDGPF.m

17 lines
594 B
Mathematica

ABSVDGPF ;EAP ALTOONA VOLUNTARY GPF ENTER EDIT ;9/26/01 10:19 AM
V ;;4.0;VOLUNTARY TIMEKEEPING;**25,26**;JULY 6, 1994
START S DIC=503342,DIC(0)="AEMNLZQ",DLAYGO=DIC D ^DIC I Y<0 G END
S DA=+Y S DIE=DIC,DR="[ABSV DON GPF]" D ^DIE
D ASKFOR I %=1 G START
END ;;;;;;;;;
K DIC,DIC(0),DR,DA,DIE
Q
ASKFOR ;;;;RETURNS % WITH EITHER 1 FOR YES OR 0 FOR NO;;;;;
S %A="Do you want to Add/Edit Another GPF",%B="Enter Yes or No."
W !!,%A_"? (YES) // " R ANS:$S($D(DTIME):DTIME,1:300)
I ANS="" S ANS="YES"
I (ANS["?") W !,%B G ASKFOR
S ANS=$E(ANS,1) S %=$S(ANS="Y":1,ANS="y":1,1:0)
K %A,%B,ANS
Q