XDRPTLSD ;SF-IRMFO/IHS/OHPRD/JCM.JLI - COMPARE LAST SERVICE SEPARATION DATES ;1/31/97 15:14 [ 04/02/2003 8:47 AM ]
;;7.3;TOOLKIT;**1001**;APR 1, 2003
;;7.3;TOOLKIT;**23**;Apr 25, 1995
;;
;; DATE OF LAST DISCHARGE ("SEPARATION DATE-SERVICE [LAST]"
;; FILE = 2
;; FIELD = .327
;; ROUTINE = XDRDLD
START ;
D INIT
D COMPARE
END D EOJ
Q
;
INIT ;
K XDRDLD,XDRDLD2
S XDRDLD=XDRCD(XDRFL,XDRCD,.327,"I"),XDRDLD2=XDRCD2(XDRFL,XDRCD2,.327,"I")
S XDRDLD("MATCH")=$P(XDRDTEST(XDRDTO),U,6)
S XDRDLD("NO MATCH")=$P(XDRDTEST(XDRDTO),U,7)
Q
;
COMPARE ;
S XDRD("TEST SCORE")=$$DATECOMP^XDRPTDOB(XDRDLD,XDRDLD2,XDRDLD("MATCH"),XDRDLD("NO MATCH"),.8,.6)
COMPAREX Q
;
EOJ ;
K XDRDLD,XDRDLD2
Q
XDRPTLSD ;SF-IRMFO/IHS/OHPRD/JCM.JLI - COMPARE LAST SERVICE SEPARATION DATES ;1/31/97 15:14 [ 04/02/2003 8:47 AM ]
+1 ;;7.3;TOOLKIT;**1001**;APR 1, 2003
+2 ;;7.3;TOOLKIT;**23**;Apr 25, 1995
+3 ;;
+4 ;; DATE OF LAST DISCHARGE ("SEPARATION DATE-SERVICE [LAST]"
+5 ;; FILE = 2
+6 ;; FIELD = .327
+7 ;; ROUTINE = XDRDLD
START ;
+1 DO INIT
+2 DO COMPARE
END DO EOJ
+1 QUIT
+2 ;
INIT ;
+1 KILL XDRDLD,XDRDLD2
+2 SET XDRDLD=XDRCD(XDRFL,XDRCD,.327,"I")
SET XDRDLD2=XDRCD2(XDRFL,XDRCD2,.327,"I")
+3 SET XDRDLD("MATCH")=$PIECE(XDRDTEST(XDRDTO),U,6)
+4 SET XDRDLD("NO MATCH")=$PIECE(XDRDTEST(XDRDTO),U,7)
+5 QUIT
+6 ;
COMPARE ;
+1 SET XDRD("TEST SCORE")=$$DATECOMP^XDRPTDOB(XDRDLD,XDRDLD2,XDRDLD("MATCH"),XDRDLD("NO MATCH"),.8,.6)
COMPAREX QUIT
+1 ;
EOJ ;
+1 KILL XDRDLD,XDRDLD2
+2 QUIT