Skip to Content
0
Former Member
Jan 22, 2009 at 10:47 AM

Error message with PCR.

178 Views

The logic of PCR is as follows :

Compute 15% of /117.And assign this to WT 1223.

Compute 27% of /117

Subtract Wt /3F4,MF10,9805,9809 and 9810 from 27% of /117.Assign this to WT 1224.

I have written a PCR which is giving an output error message :

****Variable ZVAR does not exist in table VAR * ZX

I have written a PCR with following code

" *

" /117 Superannuation Basis

TABLEP0185 Read table fields

" VARGBICTYP Tab.field VVVVV v.ky

" ZX

ZERO= RNA AmtNumRteTime = 0

AMT= /117 Set

AMT*0.15 Multiplication

ZERO=&ZVAR VVVV Set zero

ADDWT&ZVAR VAR Variable table

ADDWT 1223 OT Output table

ZERO= RNA AmtNumRteTime = 0

AMT= /117 Set

AMT*0.27 Multiplication

ZERO=&ZVA1 VVVV Set zero

ADDWT&ZVA1 VAR Variable table

PRINT&ZVA1 Print variable VVVV

ZERO= RNA AmtNumRteTime = 0

AMT= /3F4 Set

AMT+ MF10 Addition

AMT+ 9805 Addition

AMT+ 9809 Addition

AMT+ 9810 Addition

ZERO=&ZVAR VVVV Set zero

ADDWT&ZVAR VAR Variable table

PRINT&ZVAR Print variable VVVV

ZERO= RNA AmtNumRteTime = 0

AMT=&ZVA1 Set

AMT-&ZVAR Subtraction

ADDWT 1224 OT Output table

-


I am attaching the output from payroll log which is as follows :

Rule ESGPCR VaKey Operation

ZSAN * TABLEP0185

ZSAN * VARGBICTYP

ZSAN * ZX ZERO= RNA

ZSAN * ZX AMT= /117

ZSAN * ZX AMT*0.15

ZSAN * ZX ZERO=&ZVAR

ZSAN * ZX ADDWT&ZVAR

ZSAN * ZX NEXTR A

ZSAN * ZX ADDWT 1223

ZSAN * ZX ZERO= RNA

ZSAN * ZX AMT= /117

ZSAN * ZX AMT*0.27

ZSAN * ZX ZERO=&ZVA1

ZSAN * ZX NEXTR B

ZSAN * ZX ADDWT&ZVA1

ZSAN * ZX PRINT&ZVA1

WType Rate Number Amount

ZVA1 0.00 0.00 5,751.00

ZSAN * ZX ZERO= RNA

ZSAN * ZX AMT= /3F4

ZSAN * ZX AMT+ MF10

ZSAN * ZX NEXTR C

ZSAN * ZX AMT+ 9805

ZSAN * ZX AMT+ 9809

ZSAN * ZX AMT+ 9810

ZSAN * ZX ZERO=&ZVAR

ZSAN * ZX ADDWT&ZVAR

ZSAN * ZX NEXTR D

ZSAN * ZX PRINT&ZVAR

****Variable ZVAR does not exist in table VAR * ZX PRINT&ZVAR****

ZSAN * ZX ZERO= RNA