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

ACRFEXP6.m

Go to the documentation of this file.
  1. ACRFEXP6 ;IHS/OIRM/DSD/AEF - EXPORT TO ECS FILE [ 01/27/2005 1:36 PM ]
  1. ;;2.1;ADMIN RESOURCE MGT SYSTEM;**2,15**;NOV 05, 2001
  1. ;
  1. ;ACR*2.1*15.01;NEW ROUTINE
  1. ;
  1. ; Called from ACRFEXP5 linetags because ACRFEXP5 got too big
  1. ;
  1. Q
  1. ;
  1. REC02(ACRSCH,ACRALC) ;EP
  1. ;----- AGENCY LOCATION CODE (ALC) CONTROL RECORD 02
  1. ;
  1. ;RECORD LAYOUT:
  1. ; 1-2 RECORD TYPE "02" 55-55 RECORD CODE
  1. ; 3-8 RECORD NUMBER 56-415 FILLER
  1. ; 9-22 SCHEDULE NO 416-423 ASAID
  1. ;23-35 FILLER 424-431 ACOID
  1. ;36-43 ALC 432-440 MAC
  1. ;44-54 FILLER
  1. ;
  1. ;INPUT:
  1. ;ACRSCH=TREAS SCHED N0
  1. ;ACRALC=AGENCY LOC CODE
  1. ;
  1. N Z
  1. S $E(Z,1,2)="02"
  1. S $E(Z,3,8)="000001"
  1. S $E(Z,9,22)=$$PAD^ACRFUTL(ACRSCH,"L",14,0)
  1. S $E(Z,23,35)=$$PAD^ACRFUTL("","R",13,"")
  1. S $E(Z,36,43)=$$PAD^ACRFUTL(ACRALC,"R",8,"")
  1. S $E(Z,44,54)=$$PAD^ACRFUTL("","R",11,"")
  1. S $E(Z,55)="&"
  1. S $E(Z,56,415)=$$PAD^ACRFUTL("","R",360,"")
  1. S $E(Z,416,423)=$$PAD^ACRFUTL("","R",8,"")
  1. S $E(Z,424,431)=$$PAD^ACRFUTL("","R",8,"")
  1. S $E(Z,432,440)=$$PAD^ACRFUTL("","R",9,"")
  1. ;
  1. W Z
  1. Q
  1. ;
  1. REC03(ACRSCH,ACRADD1,ACRADD2,ACRADD3,ACRPHON) ;EP
  1. ;----- AGENCY BILLING ADDRESS CONTROL RECORD 03
  1. ;
  1. ;RECORD LAYOUT:
  1. ; 1-2 RECORD TYPE "03" 106-130 ADDRESS 2
  1. ; 3-8 RECORD NUMBER 131-155 ADDRESS 3
  1. ; 9-22 SCHEDULE NUMBER 156-165 AGENCY TELEPHONE
  1. ;23-35 ZERO FILL 166-415 FILLER
  1. ;36-54 FILLER 416-423 ASAID
  1. ;55-55 RECORD CODE "A" 424-431 ACOID
  1. ;56-80 AGENCY NAME 432-440 MAC
  1. ;81-105 ADDRESS 1
  1. ;
  1. ;INPUT:
  1. ;ACRSCH =TREAS SCHED NO
  1. ;ACRADD1=ADDRESS LINE 1
  1. ;ACRADD2=ADDRESS LINE 2
  1. ;ACRADD3=ADDRESS LINE 3
  1. ;ACRPHON=PHONE NUMBER
  1. ;
  1. N Z
  1. S $E(Z,1,2)="03"
  1. S $E(Z,3,8)="000002"
  1. S $E(Z,9,22)=$$PAD^ACRFUTL(ACRSCH,"L",14,0)
  1. S $E(Z,23,35)=$$PAD^ACRFUTL(0,"R",13,0)
  1. S $E(Z,36,54)=$$PAD^ACRFUTL("","R",19,"")
  1. S $E(Z,55)="A"
  1. S $E(Z,56,80)=$$PAD^ACRFUTL("INDIAN HEALTH SERVICE","R",25,"")
  1. S $E(Z,81,105)=$$PAD^ACRFUTL(ACRADD1,"R",25,"")
  1. S $E(Z,106,130)=$$PAD^ACRFUTL(ACRADD2,"R",25,"")
  1. S $E(Z,131,155)=$$PAD^ACRFUTL(ACRADD3,"R",25,"")
  1. S $E(Z,156,165)=$$PAD^ACRFUTL(ACRPHON,"R",10,"")
  1. S $E(Z,166,415)=$$PAD^ACRFUTL("","R",250,"")
  1. S $E(Z,416,423)=$$PAD^ACRFUTL("","R",8,"")
  1. S $E(Z,424,431)=$$PAD^ACRFUTL("","R",8,"")
  1. S $E(Z,432,440)=$$PAD^ACRFUTL("","R",9,"")
  1. ;
  1. W Z
  1. Q
  1. ;
  1. REC09(ACRPCNT,ACRSCH,ACRTAMT,ACRAPPN,ACRCNT) ;EP
  1. ;----- SCHEDULE CONTROL RECORD 09
  1. ;
  1. ;RECORD LAYOUT:
  1. ; 1-2 RECORD TYPE "09" 189-201 APPROPRIATED AMT 5
  1. ; 3-8 RECORD NUMBER 202-217 ACCOUNT SYMBOL 6
  1. ; 9-22 SCHEDULE NUMBER 218-230 APPROPRIATED AMT 6
  1. ; 23-35 9 FILLER 231-246 ACCOUNT SYMBOL 7
  1. ; 36-42 SCHEDULE ITEM COUNT 247-259 APPROPRIATED AMT 7
  1. ; 43-55 SCHEDULE AMOUNT 260-275 ACCOUNT SYMBOL 8
  1. ; 56-56 RECORD CODE 276-288 APPROPRIATED AMT 8
  1. ; 57-72 ACCOUNT SYMBOL 1 289-304 ACCOUNT SYMBOL 9
  1. ; 73-85 APPROPRIATED AMT 1 305-317 APPROPRIATED AMT 9
  1. ; 86-101 ACCOUNT SYMBOL 2 318-333 ACCOUNT SYMBOL 10
  1. ;102-114 APPROPRIATED AMT 2 334-346 APPROPRIATED AMT 10
  1. ;115-130 ACCOUNT SYMBOL 3 347-415 FILLER
  1. ;131-143 APPROPRIATED AMT 3 416-423 ASAID
  1. ;144-159 ACCOUNT SYMBOL 4 424-431 ACOID
  1. ;160-172 APPROPRIATED AMT 4 432-440 MAC
  1. ;173-188 ACCOUNT SYMBOL 5
  1. ;
  1. ;INPUT:
  1. ;ACRPCNT=PAYMENT NUMBER
  1. ;ACRSCH =TREAS SCHED NO
  1. ;ACRTAMT=TOTAL AMOUNT OF PAYMENTS
  1. ;ACRAPPN=APPROPRIATION AMOUNTS
  1. ;
  1. ;RETURNS:
  1. ;ACRCNT = RECORD COUNT USED BY 99 RECORD
  1. ;
  1. N Z
  1. S ACRCNT=ACRPCNT+1
  1. S $E(Z,1,2)="09"
  1. S $E(Z,3,8)=$$PAD^ACRFUTL(ACRCNT,"L",6,0)
  1. S $E(Z,9,22)=$$PAD^ACRFUTL(ACRSCH,"L",14,0)
  1. S $E(Z,23,35)=$$PAD^ACRFUTL(9,"R",13,9)
  1. S $E(Z,36,42)=$$PAD^ACRFUTL(ACRPCNT,"L",7,0)
  1. S $E(Z,43,55)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL(ACRTAMT),".",""),"L",13,0)
  1. S $E(Z,56)="C"
  1. S $E(Z,57,72)=$$PAD^ACRFUTL($P($G(ACRAPPN(1)),U),"R",16,"")
  1. S $E(Z,73,85)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(1)),U,2)),".",""),"L",13,0)
  1. S $E(Z,86,101)=$$PAD^ACRFUTL($P($G(ACRAPPN(2)),U),"R",16,"")
  1. S $E(Z,102,114)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(2)),U,2)),".",""),"L",13,0)
  1. S $E(Z,115,130)=$$PAD^ACRFUTL($P($G(ACRAPPN(3)),U),"R",16,"")
  1. S $E(Z,131,143)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(3)),U,2)),".",""),"L",13,0)
  1. S $E(Z,144,159)=$$PAD^ACRFUTL($P($G(ACRAPPN(4)),U),"R",16,"")
  1. S $E(Z,160,172)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(4)),U,2)),".",""),"L",13,0)
  1. S $E(Z,173,188)=$$PAD^ACRFUTL($P($G(ACRAPPN(5)),U),"R",16,"")
  1. S $E(Z,189,201)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(5)),U,2)),".",""),"L",13,0)
  1. S $E(Z,202,217)=$$PAD^ACRFUTL($P($G(ACRAPPN(6)),U),"R",16,"")
  1. S $E(Z,218,230)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(6)),U,2)),".",""),"L",13,0)
  1. S $E(Z,231,246)=$$PAD^ACRFUTL($P($G(ACRAPPN(7)),U),"R",16,"")
  1. S $E(Z,247,259)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(7)),U,2)),".",""),"L",13,0)
  1. S $E(Z,260,275)=$$PAD^ACRFUTL($P($G(ACRAPPN(8)),U),"R",16,"")
  1. S $E(Z,276,288)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(8)),U,2)),".",""),"L",13,0)
  1. S $E(Z,289,304)=$$PAD^ACRFUTL($P($G(ACRAPPN(9)),U),"R",16,"")
  1. S $E(Z,305,317)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(9)),U,2)),".",""),"L",13,0)
  1. S $E(Z,318,333)=$$PAD^ACRFUTL($P($G(ACRAPPN(10)),U),"R",16,"")
  1. S $E(Z,334,346)=$$PAD^ACRFUTL($TR($$DOL^ACRFUTL($P($G(ACRAPPN(10)),U,2)),".",""),"L",13,0)
  1. S $E(Z,347,415)=$$PAD^ACRFUTL("","R",69,"")
  1. S $E(Z,416,423)=$$PAD^ACRFUTL("","R",8,"")
  1. S $E(Z,424,431)=$$PAD^ACRFUTL("","R",8,"")
  1. S $E(Z,432,440)=$$PAD^ACRFUTL("","R",9,"")
  1. ;
  1. W Z
  1. Q
  1. ;
  1. REC99(ACRCNT,ACRSCH) ;EP
  1. ;----- SCHEDULE TRAILER RECORD 99
  1. ;
  1. ;RECORD LAYOUT:
  1. ; 1-2 RECORD TYPE "99" 416-423 ASAID
  1. ; 3-8 RECORD NUMBER 424-431 ACOID
  1. ; 9-22 SCHEDULE NUMBER 432-440 MAC
  1. ;23-415 FILLER
  1. ;
  1. ;INPUT:
  1. ;ACRCNT=RECORD COUNT
  1. ;ACRSCH=TREAS SCHED NO
  1. ;
  1. N Z
  1. S ACRCNT=ACRCNT+1
  1. S $E(Z,1,2)=99
  1. S $E(Z,3,8)=$$PAD^ACRFUTL(ACRCNT,"L",6,0)
  1. S $E(Z,9,22)=$$PAD^ACRFUTL(ACRSCH,"L",14,0)
  1. S $E(Z,23,415)=$$PAD^ACRFUTL("","R",393,"")
  1. S $E(Z,416,423)=$$PAD^ACRFUTL("","R",8,"")
  1. S $E(Z,424,431)=$$PAD^ACRFUTL("","R",8,"")
  1. S $E(Z,432,440)=$$PAD^ACRFUTL("","R",9,"")
  1. ;
  1. W Z
  1. Q