DVBHQM4 ;ISC-ALBANY/PKE-Birls abbrev name num ret ; 10 Apr 2000 10:41 AM ;
;;4.0;HINQ;**19,37**;03/25/92
G EN
LIN S CT=CT+1,A1=A_CT_",0)",@A1=T1 Q
DD ;Translate dates into displayed format MMYY.
;The temporary date display format will be replaced by MMCCYY once
;VBA sends in the centuries of the dates.
I +$G(Y)'=0 S Y=$S($E(Y,1,2):$P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC","^",+$E(Y,1,2)),1:"")_""_$E(Y,3,4) Q
;;;S Y=" "
S Y=" "
Q
;
EN I '$D(DVBRECN) D KILL G KLL^DVBHQM3
S BL="" I DVBABREV="M" D NAM D KILL G ERR^DVBHQM3
I DVBABREV="N" D NUM D KILL G ERR^DVBHQM3
Q
KILL K DVBSSN,DVBSN,DVBBOS,DVBRECN,DVBEOD,DVBRAD,DVBDOB,DVBDOD,DVBNAM,DVBFL,DVBPAYN,DVBCN Q
Q
NAM S T1=" NAME Fld Loc Claim # EOD RAD DOB DOD" D LIN S T1="" D LIN
;
F I=1:1:DVBRECN D DAT,LIST
Q
DAT ; Dates sent in as MMYY.
F J="DVBEOD(I)","DVBRAD(I)","DVBDOB(I)","DVBDOD(I)" S Y=@(J) D DD S @J=Y
Q
LIST ;Temporarily add 2 space between dates for dates displayed as MMYY.
;Change display back to the commented out one when VBA sends century.
;;;S T1=$E(DVBNAM(I),1,22)_" "_$J($E(DVBFL(I),1,15),15)_" "_DVBCN(I)_" "_DVBEOD(I)_" "_DVBRAD(I)_" "_DVBDOB(I)_" "_DVBDOD(I) D LIN S T1="" D LIN
S T1=$E(DVBNAM(I),1,22)_" "_$J($E(DVBFL(I),1,15),15)_" "_DVBCN(I)_" "_DVBEOD(I)_" "_DVBRAD(I)_" "_DVBDOB(I)_" "_DVBDOD(I) D LIN S T1="" D LIN
Q
;
NUM S T1="Claim # SS # Service # EOD RAD DOB DOD BOS Folder Loc...." D LIN S T1="" D LIN
;
F I=1:1:DVBRECN D DAT,LIST1
Q
LIST1 ;Temporarily add 2 space between dates for dates displayed as MMYY.
;Change display back to the commented out one when VBA sends century.
;;;S T1=DVBCN(I)_" "_DVBSSN(I)_" "_DVBSN(I)_DVBEOD(I)_" "_DVBRAD(I)_" "_DVBDOB(I)_" "_DVBDOD(I)_" "_DVBBOS(I)_" "_$S($L(DVBFL(I))>14:$E($P(DVBFL(I)," -",1),1,14),1:DVBFL(I)) D LIN S T1="" D LIN
S T1=DVBCN(I)_" "_DVBSSN(I)_" "_DVBSN(I)_DVBEOD(I)_" "_DVBRAD(I)_" "_DVBDOB(I)_" "_DVBDOD(I)_" "_DVBBOS(I)_" "_$S($L(DVBFL(I))>14:$E($P(DVBFL(I)," -",1),1,14),1:DVBFL(I)) D LIN S T1="" D LIN
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDVBHQM4 2122 printed Oct 16, 2024@17:59:37 Page 2
DVBHQM4 ;ISC-ALBANY/PKE-Birls abbrev name num ret ; 10 Apr 2000 10:41 AM ;
+1 ;;4.0;HINQ;**19,37**;03/25/92
+2 GOTO EN
LIN SET CT=CT+1
SET A1=A_CT_",0)"
SET @A1=T1
QUIT
DD ;Translate dates into displayed format MMYY.
+1 ;The temporary date display format will be replaced by MMCCYY once
+2 ;VBA sends in the centuries of the dates.
+3 IF +$GET(Y)'=0
SET Y=$SELECT($EXTRACT(Y,1,2):$PIECE("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC","^",+$EXTRACT(Y,1,2)),1:"")_""_$EXTRACT(Y,3,4)
QUIT
+4 ;;;S Y=" "
+5 SET Y=" "
+6 QUIT
+7 ;
EN IF '$DATA(DVBRECN)
DO KILL
GOTO KLL^DVBHQM3
+1 SET BL=""
IF DVBABREV="M"
DO NAM
DO KILL
GOTO ERR^DVBHQM3
+2 IF DVBABREV="N"
DO NUM
DO KILL
GOTO ERR^DVBHQM3
+3 QUIT
KILL KILL DVBSSN,DVBSN,DVBBOS,DVBRECN,DVBEOD,DVBRAD,DVBDOB,DVBDOD,DVBNAM,DVBFL,DVBPAYN,DVBCN
QUIT
+1 QUIT
NAM SET T1=" NAME Fld Loc Claim # EOD RAD DOB DOD"
DO LIN
SET T1=""
DO LIN
+1 ;
+2 FOR I=1:1:DVBRECN
DO DAT
DO LIST
+3 QUIT
DAT ; Dates sent in as MMYY.
+1 FOR J="DVBEOD(I)","DVBRAD(I)","DVBDOB(I)","DVBDOD(I)"
SET Y=@(J)
DO DD
SET @J=Y
+2 QUIT
LIST ;Temporarily add 2 space between dates for dates displayed as MMYY.
+1 ;Change display back to the commented out one when VBA sends century.
+2 ;;;S T1=$E(DVBNAM(I),1,22)_" "_$J($E(DVBFL(I),1,15),15)_" "_DVBCN(I)_" "_DVBEOD(I)_" "_DVBRAD(I)_" "_DVBDOB(I)_" "_DVBDOD(I) D LIN S T1="" D LIN
+3 SET T1=$EXTRACT(DVBNAM(I),1,22)_" "_$JUSTIFY($EXTRACT(DVBFL(I),1,15),15)_" "_DVBCN(I)_" "_DVBEOD(I)_" "_DVBRAD(I)_" "_DVBDOB(I)_" "_DVBDOD(I)
DO LIN
SET T1=""
DO LIN
+4 QUIT
+5 ;
NUM SET T1="Claim # SS # Service # EOD RAD DOB DOD BOS Folder Loc...."
DO LIN
SET T1=""
DO LIN
+1 ;
+2 FOR I=1:1:DVBRECN
DO DAT
DO LIST1
+3 QUIT
LIST1 ;Temporarily add 2 space between dates for dates displayed as MMYY.
+1 ;Change display back to the commented out one when VBA sends century.
+2 ;;;S T1=DVBCN(I)_" "_DVBSSN(I)_" "_DVBSN(I)_DVBEOD(I)_" "_DVBRAD(I)_" "_DVBDOB(I)_" "_DVBDOD(I)_" "_DVBBOS(I)_" "_$S($L(DVBFL(I))>14:$E($P(DVBFL(I)," -",1),1,14),1:DVBFL(I)) D LIN S T1="" D LIN
+3 SET T1=DVBCN(I)_" "_DVBSSN(I)_" "_DVBSN(I)_DVBEOD(I)_" "_DVBRAD(I)_" "_DVBDOB(I)_" "_DVBDOD(I)_" "_DVBBOS(I)_" "_$SELECT($LENGTH(DVBFL(I))>14:$EXTRACT($PIECE(DVBFL(I)," -",1),1,14),1:DVBFL(I))
DO LIN
SET T1=""
DO LIN
+4 QUIT