source: FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGYKCEN.m@ 1789

Last change on this file since 1789 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1DGYKCEN ;ALB/ABR - Census Post-Init Driver for 10/1 Maintenance Patch ; 6/14/94
2 ;;5.3;Registration;**31**;Aug 13, 1993
3 ;
4 ;
5CENSUS ;--- add new census date
6 ; These dates should be update each year per MAS VACO.
7EN ;
8 N CENDATE,CLOSDATE,OKTOXM,ACTIVE,CPSTART,ERR
9 S ERR=0
10 ;
11 ;-- ALL DATES ARE FOR '94 CENSUS
12 ;
13 ;-- Census Date 9-30-94
14 S CENDATE=2940930
15 ;-- Close-out Date 10-31-94
16 S CLOSDATE=2941031
17 ;-- ok to x-mit PTF date 11-1-94
18 S OKTOXM=2941101
19 ;-- currently active
20 S ACTIVE=1
21 ;-- Census Period Start Date 10-1-93
22 S CPSTART=2931001
23 ;
24 W !!,">>> Updating Census Dates..."
25 ;
26 S X=$O(^DG(45.86,"AC",0)) I X S X=$O(^DG(45.86,"AC",X,0)),DIE="^DG(45.86,",DA=X,DR=".04////0" D ^DIE K DIE,DR,DA
27 S DIC="^DG(45.86,",X=CENDATE,DIC(0)="L" K DD,DO D ^DIC K DIC
28 I Y'>0 S ERR=1 D ERR Q ;checks to see if record is created
29 S DIE="^DG(45.86,",DA=+Y,DR=".02////"_CLOSDATE_";.03////"_OKTOXM_";.04////"_ACTIVE_";.05////"_CPSTART
30 D ^DIE K DIE,DR,DA
31 ;
32 W "Done."
33 Q
34 ;
35 ; This will update the PTF CENSUS DATE File (#45.86). The EN tag may be re-run
36ERR N DGPRINT
37 S DGPRINT=$S($D(ZTQUEUED):0,1:1)
38 I +ERR W:$G(DGPRINT) !,"Problem with PTF CENSUS DATE File (#45.86) Update. Call your ISC Support."
39 Q
Note: See TracBrowser for help on using the repository browser.