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

IS00003E.m

Go to the documentation of this file.
IS00003E ;Compiled from script 'Generated: X1 IHS 835 IN-I' on DEC 03, 2002
 ;Part 6
 ;Copyright 2002 SAIC
EN S INI(1)=1 F  S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("DTM",0,1)  D  S INI(1)=INI(1)+1
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
 .S:DO @("@INV@(""DTM1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""DTM2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
 .Q
 ;WHILE $P(DATA,DELIM)="CAS"
 S INI(1)=1 F  S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("CAS",0,1)  D  S INI(1)=INI(1)+1
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
 .S:DO @("@INV@(""CAS1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""CAS2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
 .S:DO @("@INV@(""CAS3"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,4)
 .S:DO @("@INV@(""CAS4"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,5)
 .S:DO @("@INV@(""CAS5"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,6)
 .S:DO @("@INV@(""CAS6"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,7)
 .S:DO @("@INV@(""CAS7"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,8)
 .S:DO @("@INV@(""CAS8"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,9)
 .S:DO @("@INV@(""CAS9"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,10)
 .S:DO @("@INV@(""CAS10"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,11)
 .S:DO @("@INV@(""CAS11"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,12)
 .S:DO @("@INV@(""CAS12"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,13)
 .S:DO @("@INV@(""CAS13"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,14)
 .S:DO @("@INV@(""CAS14"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,15)
 .S:DO @("@INV@(""CAS15"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,16)
 .S:DO @("@INV@(""CAS16"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,17)
 .S:DO @("@INV@(""CAS17"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,18)
 .S:DO @("@INV@(""CAS18"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,19)
 .S:DO @("@INV@(""CAS19"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,20)
 .Q
 ;WHILE $P(DATA,DELIM)="REF"
 S INI(1)=1 F  S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("REF",0,1)  D  S INI(1)=INI(1)+1
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
 .S:DO @("@INV@(""REF1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""REF2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
 .Q
 ;WHILE $P(DATA,DELIM)="REF"
 S INI(1)=1 F  S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("REF",0,1)  D  S INI(1)=INI(1)+1
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
 .S:DO @("@INV@(""REF1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""REF2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
 .Q
 ;WHILE $P(DATA,DELIM)="AMT"
 S INI(1)=1 F  S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("AMT",0,1)  D  S INI(1)=INI(1)+1
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
 .S:DO @("@INV@(""AMT1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""AMT2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
 .Q
 ;WHILE $P(DATA,DELIM)="QTY"
 S INI(1)=1 F  S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("QTY",0,1)  D  S INI(1)=INI(1)+1
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
 .S:DO @("@INV@(""QTY1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""QTY2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
 .Q
 ;WHILE $P(DATA,DELIM)="LQ"
 S INI(1)=1 F  S DATA=$$GL^INHOU(UIF,LCT) Q:'$$CHECKSEG^INHOU("LQ",0,1)  D  S INI(1)=INI(1)+1
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=1
 .S:DO @("@INV@(""LQ1"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""LQ2"",INI(1))")=$$PIECE^INHU(.LINE,DELIM,3)
 .Q
 ;Start of GROUP
 F  S MATCH=0 D  Q:'MATCH
 .D:'INVS MC^INHS
 .D GET^INHOU(UIF,0) S LINE=$G(LINE),DO=0
 .I 'MATCH,LINE?1"P"1"L"1"B".ANPC S DO=1,MATCH=1
 .E  S LCT=LCT-CNT,DO=0
 .S:DO @("@INV@(""PLB1"")")=$$PIECE^INHU(.LINE,DELIM,2)
 .S:DO @("@INV@(""PLB2"")")=$$PIECE^INHU(.LINE,DELIM,3)
 .S:DO @("@INV@(""PLB3"")")=$$PIECE^INHU(.LINE,DELIM,4)
 .S:DO @("@INV@(""PLB4"")")=$$PIECE^INHU(.LINE,DELIM,5)
 .S:DO @("@INV@(""PLB5"")")=$$PIECE^INHU(.LINE,DELIM,6)
 .S:DO @("@INV@(""PLB6"")")=$$PIECE^INHU(.LINE,DELIM,7)
 .S:DO @("@INV@(""PLB7"")")=$$PIECE^INHU(.LINE,DELIM,8)
 .S:DO @("@INV@(""PLB8"")")=$$PIECE^INHU(.LINE,DELIM,9)
 .S:DO @("@INV@(""PLB9"")")=$$PIECE^INHU(.LINE,DELIM,10)
 .S:DO @("@INV@(""PLB10"")")=$$PIECE^INHU(.LINE,DELIM,11)
 .S:DO @("@INV@(""PLB11"")")=$$PIECE^INHU(.LINE,DELIM,12)
 .S:DO @("@INV@(""PLB12"")")=$$PIECE^INHU(.LINE,DELIM,13)
 .S:DO @("@INV@(""PLB13"")")=$$PIECE^INHU(.LINE,DELIM,14)
 .S:DO @("@INV@(""PLB14"")")=$$PIECE^INHU(.LINE,DELIM,15)
 .Q:MATCH
 .D:'INVS MC^INHS
9 .D EN^IS00003F
 G P1^IS00003F