$TXT Created by BECKWITH,RALPH at MNTVBB.FO-ALBANY.MED.VA.GOV (KIDS) on Wednesday, 03/17/04 at 15:00 ============================================================================= Run Date: MAY 20, 2004 Designation: ES*1*32 Package : ES - POLICE & SECURITY Priority: Mandatory Version : 1 SEQ #36 Status: Released Compliance Date: JUN 20, 2004 ============================================================================= Associated patches: (v)ES*1*18 <<= must be installed BEFORE `ES*1*32' (v)ES*1*24 <<= must be installed BEFORE `ES*1*32' Subject: TIME ENTRY IS NOT DEFAULTING CORRECTLY Category: - Routine Description: ============ This patch will solve the problem by displaying the latest TIME entered instead of the last TIME that was entered and the incorrect order of the reports. ASSOCIATED NOIS: ================ 1) SBY-1099-32383 Late journal entry duplicates: WIM-0100-20025 Print daily journal display problem SHR-0100-70040 Last journal entry date is incorrect SDC-0100-60224 ADJ time prompt defaults to 2400 LAS-0100-60487 Security Journal question EKH-0100-40495 Journal defaults to 2400 FNC-0100-30767 Problem with daily operations journal entries PTH-0100-22814 Print daily journal problem SAM 0803-21892 Need to sort TIME in ascending order ASSOCIATED E3RS: ================ N/A PARTICIPATING TEST SITES ======================== El Paso, TX Heartland West, KS San Diego, CA Anchorage, AK NOIS OVERVIEW ============= 1) SBY-1099-32383 Late journal entry Problem ------- The TIME entry prompt displays the latest time, not the desired last time that was entered (option ESP DAILY OPERATIONS JOURNAL add a journal entry). The VA POLICE DAILY OPERATIONS JOURNAL was not printing in time sequence. Also, the data validity check of date/time for the FROM DATE and TO DATE was allowing date/time not in the proper format. For instance, a date/time entry of 04-03-12@0700 was accepted even though the format should be only 04-03-12-0700 (YY-MM-DD-HHMM). Resolution ---------- The ^ESPAJE program was changed to sort time in horolog format ($H) to display the last (Oldest) time, not the latest time entered. The ^ESPJOU1 program was modified to sort and print the journal entries in horolog time sequence. The data dictionary fields for the FROM DATE/TIME and TO DATE/TIME for Input Transform to insure only date/time format YY-MM-DD-HHMM is allowed at data entry point. ****************** NOTE *********************** When using time frames across two days for your coverage period, sites cannot cross 24 hour time periods between the first time and second time entered or else this sorting of times will not function properly. For instance, one cannot use 04-02-28-0600 to 04-02-29-0800, the second time entered MUST precede 0600. ********************************************** ROUTINE SUMMARY: ================ The following is a list of the routine(s) included in this patch. The second line of each of these routine(s) will look like: ;;1.0;POLICE & SECURITY;**[patch list]**;Mar 31, 1994 CHECK^XTSUMBLD results Routine name Before Patch After Patch Patch List ============ ============ =========== ========== ESPAJE 1966903 2119758 17,18,23,24,32 ESPJOU1 1720626 1701605 1,7,12,14,18 32 INSTALLATION INSTRUCTIONS ========================= This patch can be installed at any time. Users do not need to be off the system. Installation will take less than 2 minutes. 1. Choose the PackMan message containing this patch and invoke the INSTALL/CHECK MESSAGE PackMan option. 2. (DSM for Open VMS sites only) Disable routine mapping on all systems for the routines listed in the Routine Summary. NOTE: If the routines included in this patch are not currently in your mapped routine set, please skip this step. If you would like to view whether you are using ESPJOU1 for your ESP PRINT JOURNAL follow the following script to view or edit the routine name: Select OPTION to edit: ESP PRINT JOURNAL Print Daily Journal NAME: ESP PRINT JOURNAL// MENU TEXT: Print Daily Journal// PACKAGE: POLICE & SECURITY// OUT OF ORDER MESSAGE: LOCK: REVERSE/NEGATIVE LOCK: DESCRIPTION: This submenu option allows VA Police & Security Service staff to print a Daily Operations Journal to the screen or to a designated printer. Edit? NO// TYPE: run routine// ROUTINE: ESPJOU// ** This routine name should be ESPJOU1 to test the print of the new report. 3. Start up the Kernel Installation and Distribution System Menu [XPD MAIN]: Edits and Distribution ... Utilities ... Installation ... Select Kernel Installation & Distribution System Option: INStallation --- Load a Distribution Print Transport Global Compare Transport Global to Current System Verify Checksums in Transport Global Install Package(s) Restart Install of Package(s) Unload a Distribution Backup a Transport Global 4. From this menu, you may elect to use the following options (when prompted for the INSTALL NAME, enter ES*1.0*32): a. Backup a Transport Global - This option will create a backup message of any routines exported with this patch. It will not backup any other changes such as DD's or templates. b. Compare Transport Global to Current System - This option will allow you to view all changes that will be made when this patch is installed. It compares all components of this patch (routines, DD's, templates, etc.). c. Verify Checksums in Transport Global - This option will allow you to ensure the integrity of the routines that are in the transport global. 5. Use the Install Package(s) option and select the package ES*1.0*32. a. When prompted 'Want KIDS to INHIBIT LOGONs during the install? YES//', answer NO (unless otherwise indicated). b. When prompted 'Want to DISABLE Scheduled Options, Menu Options, and Protocols? YES//', answer NO c. When prompted 'Enter protocols you wish to mark as 'Out Of Order':', press . 6. (DSM for Open VMS sites only) Optional - Include the routines distributed with this patch in the mapped routine set. NOTE: This step is only necessary if you performed step 2 or if you wish to include the routines in your mapped set. Routine Information: ==================== Routine Name: - ESPAJE BEFORE @ ESPAJE+6: N DIC,DA,X,Y,FIRST,REC AFTER @ ESPAJE+6: N DIC,DA,X,Y,FIRST,REC,TME BEFORE @ LAST+2: N TIME1,TIME2,ESPT AFTER @ LAST+2: N TIME1,TIME2,ESPT,FCX,FC REPLACE @ LAST+12-14: ..S ^TMP($J,ESPDAT,+TIME1)="" .S TIME2=$O(^TMP($J,ESPDAT,ESPT),-1) .I TIME2="" S TIME2=$O(^TMP($J,ESPDAT,9999),-1) WITH: ..S X=DT_"."_TIME1 D H^%DTC ..S ^TMP($J,ESPDAT,%T)=TIME1 ..S TME="" F S TME=$O(^TMP($J,ESPDAT,TME)) Q:TME="" S TIME2=^TMP($J,ESPDAT,TME) BEFORE @ LAST+27: Q TIME2 AFTER @ LAST+27: Q $G(TIME2) Routine Checksum: 2119758 Routine Name: - ESPJOU1 BEFORE @ SORT+6: I ESPT S ESPT=$P($P(^ESP(916,ESPID,1),"^",2),"-",4) AFTER @ SORT+6: I ESPT S ESPT=$P($P(ESPT,"^"),"-",4) REMOVE @ SORT+8: . S ESPT=+$P($P(^ESP(916,ESPID,1),"^",2),"-",4)+1 BEFORE @ SORT+14: ...I ESPTIME2>ESPT S ESPTIME2=ESPTIME2+2400 AFTER @ SORT+14: ...I +ESPTIME2