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

DGSSNRP1.m

Go to the documentation of this file.
  1. DGSSNRP1 ;ALB/SEK - DUPLICATE SPOUSE/DEPENDENT SSN REPORT; Dec 15, 1999
  1. ;;5.3;Registration;**313,1015**;Aug 13,1993;Build 21
  1. ;
  1. REPORT ;This routine creates the Duplicate Spouse/Dependent SSN Report.
  1. ;The option name is Duplicate Spouse/Dependent SSN Report [DG DUPLICATE
  1. ;SSN REPORT] and this option is on the Means Test Outputs [DG MEANS
  1. ;TEST OUTPUTS] menu.
  1. ;
  1. ;1st part of this report lists spouse/dependent with no SSN (prints
  1. ;Not Available) or the same SSN as Veteran.
  1. ;This part contains the veteran's name and SSN and the SSN, name, and
  1. ;relationship of the spouse/dependent, sorted by veteran's SSN.
  1. ;
  1. ;2nd part of this report lists spouse/dependent with the same SSN
  1. ;as another spouse/dependent.
  1. ;This part contains the name, SSN and relationship of
  1. ;the spouse/dependent and the veteran's SSN for each spouse/dependent,
  1. ;sorted by spouse/dependent SSN.
  1. ;
  1. I $$DEVICE() D MAIN^DGSSNRP2
  1. Q
  1. ;
  1. DEVICE() ;
  1. ;Description: allows the user to select a device.
  1. ;Input: none
  1. ;
  1. ;Output:
  1. ; Function Value - Returns 0 if the user decides not to print or to
  1. ; queue the report, 1 otherwise.
  1. ;
  1. N OK,%ZIS
  1. S OK=1
  1. S %ZIS="MNQ"
  1. D ^%ZIS
  1. S:POP OK=0
  1. D:OK&$D(IO("Q"))
  1. .N ZTRTN,ZTDESC,ZTSK,ZTIO,ZTSAVE
  1. .S ZTRTN="MAIN^DGSSNRP2",ZTDESC="Prepare Duplicate Spouse/Dependent SSN Report"
  1. .S ZTIO="",ZTSAVE("DEV")=IOS
  1. .S:$D(IO("HFSIO")) ZTSAVE("HFS")=IO("HFSIO")
  1. .S:$D(IOPAR) ZTSAVE("PAR")=IOPAR
  1. .D ^%ZTLOAD
  1. .W !,$S($D(ZTSK):"REQUEST QUEUED TASK="_ZTSK,1:"REQUEST CANCELLED")
  1. .D HOME^%ZIS
  1. .S OK=0
  1. Q OK