- PRCPUEMS ;WISC/RFJ-nightly task to set emergency stock level ;31 Jan 92
- ;;5.1;IFCAP;;Oct 20, 2000
- ;Per VHA Directive 10-93-142, this routine should not be modified.
- ; this program should be queued to run nightly
- N %,I
- S I=0 F S I=$O(^PRCP(445,I)) Q:'I S %=0 F S %=$O(^PRCP(445,I,1,%)) Q:'% S D=$G(^(%,0)) I $P(D,"^",11)>0,$P(D,"^",7)'>$P(%,"^",11) S $P(^PRCP(445,I,0),"^",9)="Y" Q
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCPUEMS 408 printed Mar 13, 2025@21:20:56 Page 2
- PRCPUEMS ;WISC/RFJ-nightly task to set emergency stock level ;31 Jan 92
- +1 ;;5.1;IFCAP;;Oct 20, 2000
- +2 ;Per VHA Directive 10-93-142, this routine should not be modified.
- +3 ; this program should be queued to run nightly
- +4 NEW %,I
- +5 SET I=0
- FOR
- SET I=$ORDER(^PRCP(445,I))
- if 'I
- QUIT
- SET %=0
- FOR
- SET %=$ORDER(^PRCP(445,I,1,%))
- if '%
- QUIT
- SET D=$GET(^(%,0))
- IF $PIECE(D,"^",11)>0
- IF $PIECE(D,"^",7)'>$PIECE(%,"^",11)
- SET $PIECE(^PRCP(445,I,0),"^",9)="Y"
- QUIT
- +6 QUIT