PRCHMHL2 ;WISC/DJM-TRANSMIT HLS TRANS TO MAILMAN (CONT) ;9-17-92/09:54
V ;;5.1;IFCAP;;Oct 20, 2000
;Per VHA Directive 10-93-142, this routine should not be modified.
MSG(AZ) ;FUNCTION ENTER: REASON CODE
; EXIT: REASON SENTENCE
N SA S SA="" I +AZ'=AZ!(AZ>999)!(AZ<1)!(AZ?.E1"."1N.N) G EXIT
S SA=$G(^PRCF(423.4,AZ,0)) I SA]"",$P(SA,U,3)="A" S SA=$P(SA,U,2) G EXIT
I SA]"",$P(SA,U,3)'="A" S SA="" G EXIT
EXIT Q SA
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCHMHL2 438 printed Dec 13, 2024@02:08:45 Page 2
PRCHMHL2 ;WISC/DJM-TRANSMIT HLS TRANS TO MAILMAN (CONT) ;9-17-92/09:54
V ;;5.1;IFCAP;;Oct 20, 2000
+1 ;Per VHA Directive 10-93-142, this routine should not be modified.
MSG(AZ) ;FUNCTION ENTER: REASON CODE
+1 ; EXIT: REASON SENTENCE
+2 NEW SA
SET SA=""
IF +AZ'=AZ!(AZ>999)!(AZ<1)!(AZ?.E1"."1N.N)
GOTO EXIT
+3 SET SA=$GET(^PRCF(423.4,AZ,0))
IF SA]""
IF $PIECE(SA,U,3)="A"
SET SA=$PIECE(SA,U,2)
GOTO EXIT
+4 IF SA]""
IF $PIECE(SA,U,3)'="A"
SET SA=""
GOTO EXIT
EXIT QUIT SA