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

DI170ENV.m

Go to the documentation of this file.
  1. DI170ENV ;OIFO-Oakland/RD - ENVIRONMENT CHECK ROUTINE ;
  1. ;;22.0;VA FileMan;**170**;Mar 30, 1999;Build 10
  1. ;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. ;this routine is used to test patch DI*22*170
  1. Q
  1. EN ;Test Remedy ticket 865632
  1. D I1,I2
  1. Q
  1. I1 ;issue 1
  1. N DIC,X,Y,$ESTACK,$ETRAP S $ETRAP="D ERR^DI170ENV"
  1. W !!,"This routine will test the fixes in patch DI*22*170."
  1. W !!,"Issue 1: undefined error when user enter '?' after a list and asked to choose."
  1. W !!," Step 1. Enter '?' at the 'CHOOSE 1-5:' prompt."
  1. W !," Step 2. Enter 'NO' at the 'Do you want... INSTITUTION List?' prompt."
  1. W !," Step 3. If you don't get an error, then enter '^' at the next prompt."
  1. W !!,"Begin Test 1:",!
  1. S DIC="^DIC(4,",DIC(0)="QEM",X="500G"
  1. D ^DIC
  1. W !!,"Test Passed, no error occurred",!!
  1. Q
  1. I2 ;issue 2
  1. N DIR,DIRUT,DIOUT,X,Y
  1. W !!,"Issue 2: User can't '^' out of the reader(DIR) on a pointer field or type."
  1. W !!," Step 1. Enter 'VISN' at the 'Select INSTITUTION:' prompt."
  1. W !," Step 2. Enter '^' at the 'CHOOSE 1-5:' prompt."
  1. W !," Step 3. Hit ""Enter key"" at next two prompts."
  1. W !!,"Begin Test 2:",!
  1. S DIR(0)="PO^4:EM"
  1. D ^DIR
  1. W !!!,"If you saw a long description about the INSTITUTION file and was prompted"
  1. W !,"to view the entire INSTITUTION List, then the test FAILED."
  1. W !!,"If you only saw the 'Select INSTITUTION:' prompt again, the test Passed.",!!!
  1. Q
  1. ERR ;this is where the error is trapped
  1. S X=$$EC^%ZOSV ;Get the error code
  1. W !!,X,!
  1. W "**Test FAILED**",!!
  1. D UNWIND^%ZTER
  1. Q