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

SD53156P.m

Go to the documentation of this file.
  1. SD53156P ;BP-CIOFO/KEITH - POST INSTALL SD*5.3*156 ; 23 Sep 98 10:20 AM
  1. ;;5.3;Scheduling;**156**;Aug 13 1993
  1. ;
  1. SEED ;Seed NPCD ENCOUNTER MONTH multiple (#404.9171) of the SCHEDULING
  1. ; PARAMETER file (#404.91) with workload close-out dates for FY1999
  1. ;
  1. ;Declare variables
  1. N XPDIDTOT,LINE,DATES,WLMONTH,DBCLOSE,WLCLOSE,TMP
  1. ;Print header
  1. D BMES^XPDUTL(">>> Storing revised close-out dates for Fiscal Year 1998")
  1. S TMP=$$INSERT^SCDXUTL1("Workload","",7)
  1. S TMP=$$INSERT^SCDXUTL1("Database",TMP,27)
  1. S TMP=$$INSERT^SCDXUTL1("Workload",TMP,47)
  1. D BMES^XPDUTL(TMP)
  1. S TMP=$$INSERT^SCDXUTL1("Occured In","",6)
  1. S TMP=$$INSERT^SCDXUTL1("Close-Out",TMP,27)
  1. S TMP=$$INSERT^SCDXUTL1("Close-Out",TMP,47)
  1. D MES^XPDUTL(TMP)
  1. S TMP=$$INSERT^SCDXUTL1("------------","",5)
  1. S TMP=$$INSERT^SCDXUTL1("------------",TMP,25)
  1. S TMP=$$INSERT^SCDXUTL1("------------",TMP,45)
  1. D MES^XPDUTL(TMP)
  1. ;Loop through list of dates
  1. S XPDIDTOT=6
  1. F LINE=2:1:7 S TMP=$T(FY98+LINE),DATES=$P(TMP,";",3) Q:(DATES="") D
  1. .;Break out info
  1. .S WLMONTH=$P(DATES,"^",1)
  1. .S DBCLOSE=$P(DATES,"^",2)
  1. .S WLCLOSE=$P(DATES,"^",3)
  1. .;Print close-out info
  1. .S TMP=$$INSERT^SCDXUTL1($$FMTE^XLFDT(WLMONTH,"1D"),"",7)
  1. .S TMP=$$INSERT^SCDXUTL1($$FMTE^XLFDT(DBCLOSE,"1D"),TMP,25)
  1. .S TMP=$$INSERT^SCDXUTL1($$FMTE^XLFDT(WLCLOSE,"1D"),TMP,45)
  1. .D MES^XPDUTL(TMP)
  1. .;Store close-out info
  1. .S TMP=$$AECLOSE^SCDXFU04(WLMONTH,DBCLOSE,WLCLOSE)
  1. .;Write error message if datebase or workload dates not updated
  1. .I TMP<0 D MES^XPDUTL(" >>>>Could not update closeout dates for above month.")
  1. .;If KIDS install, show progress through status bar
  1. .D:($G(XPDNM)'="") UPDATE^XPDID(LINE-1)
  1. D BMES^XPDUTL("")
  1. ;Print header
  1. D BMES^XPDUTL(">>> Storing close-out dates for Fiscal Year 1999")
  1. S TMP=$$INSERT^SCDXUTL1("Workload","",7)
  1. S TMP=$$INSERT^SCDXUTL1("Database",TMP,27)
  1. S TMP=$$INSERT^SCDXUTL1("Workload",TMP,47)
  1. D BMES^XPDUTL(TMP)
  1. S TMP=$$INSERT^SCDXUTL1("Occured In","",6)
  1. S TMP=$$INSERT^SCDXUTL1("Close-Out",TMP,27)
  1. S TMP=$$INSERT^SCDXUTL1("Close-Out",TMP,47)
  1. D MES^XPDUTL(TMP)
  1. S TMP=$$INSERT^SCDXUTL1("------------","",5)
  1. S TMP=$$INSERT^SCDXUTL1("------------",TMP,25)
  1. S TMP=$$INSERT^SCDXUTL1("------------",TMP,45)
  1. D MES^XPDUTL(TMP)
  1. ;Loop through list of dates
  1. S XPDIDTOT=12
  1. F LINE=2:1:13 S TMP=$T(FY99+LINE),DATES=$P(TMP,";",3) Q:(DATES="") D
  1. .;Break out info
  1. .S WLMONTH=$P(DATES,"^",1)
  1. .S DBCLOSE=$P(DATES,"^",2)
  1. .S WLCLOSE=$P(DATES,"^",3)
  1. .;Print close-out info
  1. .S TMP=$$INSERT^SCDXUTL1($$FMTE^XLFDT(WLMONTH,"1D"),"",7)
  1. .S TMP=$$INSERT^SCDXUTL1($$FMTE^XLFDT(DBCLOSE,"1D"),TMP,25)
  1. .S TMP=$$INSERT^SCDXUTL1($$FMTE^XLFDT(WLCLOSE,"1D"),TMP,45)
  1. .D MES^XPDUTL(TMP)
  1. .;Store close-out info
  1. .S TMP=$$AECLOSE^SCDXFU04(WLMONTH,DBCLOSE,WLCLOSE)
  1. .;Write error message if datebase or workload dates not updated
  1. .I TMP<0 D MES^XPDUTL(" >>>>Could not update closeout dates for above month.")
  1. .;If KIDS install, show progress through status bar
  1. .D:($G(XPDNM)'="") UPDATE^XPDID(LINE-1)
  1. D BMES^XPDUTL("")
  1. Q
  1. ;
  1. FY98 ;Revised Close-out dates for fiscal year 1998
  1. ; Month ^ Database Close-Out ^ Workload Close-Ou
  1. ;;2971000^2981016^2971130
  1. ;;2971100^2981016^2971231
  1. ;;2971200^2981016^2980131
  1. ;;2980100^2981016^2980206
  1. ;;2980200^2981016^2980306
  1. ;;2980300^2981016^2980410
  1. ;
  1. FY99 ;Revised Close-out dates for fiscal year 1999
  1. ; Month ^ Database Close-Out ^ Workload Close-Out
  1. ;;2981000^2990430^2981106
  1. ;;2981100^2990430^2981211
  1. ;;2981200^2990430^2990108
  1. ;;2990100^2990430^2990212
  1. ;;2990200^2990430^2990312
  1. ;;2990300^2990430^2990409
  1. ;;2990400^2991015^2990507
  1. ;;2990500^2991015^2990611
  1. ;;2990600^2991015^2990709
  1. ;;2990700^2991015^2990806
  1. ;;2990800^2991015^2990910
  1. ;;2990900^2991015^2991008
  1. ;