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

PRCB139P.m

Go to the documentation of this file.
  1. PRCB139P ;VMP/RB-MODIFY ALL FY01 THROUGH FY11 CEILING TRANSACTIONS TO 5 DIGIT SEQ NUMBER
  1. ;;5.1;IFCAP;**139**;Oct 01, 2009;Build 16
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ; Post install routine in patch PRC*5.1*139 that will modify all existing
  1. ; ceiling Transaction in file #421 for FY 2001-2011 from 4 digit sequence
  1. ; number to 5 digit sequence number
  1. ;;
  1. Q
  1. START ;Modify ceiling tx sequence numbers from 4 to 5 digits for FY 2001-2011
  1. I $D(^XTMP("PRCB139P")) Q
  1. K ^XTMP("PRCB139P") D NOW^%DTC S RMSTART=%
  1. S ^XTMP("PRCB139P","START COMPILE")=RMSTART
  1. S ^XTMP("PRCB139P","END COMPILE")="RUNNING"
  1. S ^XTMP("PRCB139P",0)=$$FMADD^XLFDT(RMSTART,120)_"^"_RMSTART
  1. S U="^",IEN421=0
  1. 1 S IEN421=$O(^PRCF(421,IEN421)) G EXIT:'IEN421
  1. S R0=$G(^PRCF(421,IEN421,0)) I R0="" G 1
  1. S TX421=$P(R0,U) I $P(TX421,"-",2)<01!($P(TX421,"-",2)>11) G 1
  1. I $L($P(TX421,"-",3))=5 G 1
  1. 2 ;.01 FIELD IN 0 NODE
  1. S SEQ=$P(TX421,"-",3),WSEQ="0000"_SEQ,WSEQ=$E(WSEQ,$L(WSEQ)-4,$L(WSEQ))
  1. S WTX421=$P(TX421,"-",1,2)_"-"_WSEQ
  1. ;W !,IEN421,?10,TX421,?30,SEQ,?40,WSEQ,?50,WTX421
  1. 3 ;'B' X-REF
  1. S $P(R0,U)=WTX421,^PRCF(421,IEN421,0)=R0
  1. K ^PRCF(421,"B",TX421,IEN421) S ^PRCF(421,"B",WTX421,IEN421)=""
  1. 4 ;'AD' X-REF
  1. S RVSEQ=10000-SEQ,NRVSEQ=100000-SEQ
  1. S ^XTMP("PRCB139P",2,"AD",$P(TX421,"-",1,2),RVSEQ)=""
  1. S ^XTMP("PRCB139P",2,"B",TX421,IEN421)=""
  1. S ^XTMP("PRCB139P",2,"D",SEQ,IEN421)=""
  1. K ^PRCF(421,"AD",$P(TX421,"-",1,2),RVSEQ) S ^PRCF(421,"AD",$P(WTX421,"-",1,2),NRVSEQ)=""
  1. S ^XTMP("PRCB139P",1,IEN421,0)=TX421_U_WTX421_U_SEQ_U_WSEQ_U_RVSEQ_U_NRVSEQ
  1. 5 ;'AD' X-REF
  1. K ^PRCF(421,"D",SEQ,IEN421) S ^PRCF(421,"D",WSEQ,IEN421)=""
  1. G 1
  1. EXIT ;
  1. D NOW^%DTC S RMEND=%
  1. S ^XTMP("PRCB139P","END COMPILE")=RMEND
  1. K RMEND,RMSTART,%,IEN421,R0,TX421,SEQ,WSEQ,WTX421,RVSEQ,NRVSEQ
  1. Q