Skip to Content
avatar image
Former Member

PCR syntax

Hi Experts

I am facing a problem regarding the syntax of a customized payroll PCR.

The PCR is designed to deduct 2 wage types, and add the result on a third wage type. The syntax written was as the following:


       9501 Gain Work Tax

            ADDWT *    OT   Output table

            AMT-  3046 Subtraction

            SUBWT 3047 OT   Output table

The problem is in the subtraction part, as its not working. When I checked the IT for the rule in the payroll log, I found only wage type 9501 ,while 3046 is not available, although it is calculated in another previous PCR.

I appreciate your feedback.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 23, 2014 at 04:33 PM


    I think you would like do the following arithmetic calculation in your custom pcr.

    WT3047=WT9501-WT3046  Am i correct?. If i am correct then do the below way.



              ADDWT *

              AMT= 9501 (after = give one space)

              AMT- 3046  (after - give one space)

              ADDWT 3047(after ADDWT give one space)


            ADDWT *

    Check this.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Many thanks for your reply.

      Based on your decision, I added ADDWT&3046 in the end of 3046 calculation rule. The problem is resolved.

  • avatar image
    Former Member
    Dec 24, 2014 at 05:08 AM

    Modify PCR slightly where you wanted to deduct 2 wage types then later you can use ADDWT SUBWT according to the requirement.

    XXXX is 10000 YYYY,ZZZZ is 1000

       AMT-  YYYY(10000-1000)

       AMT-  ZZZZ(9000-1000)

       SUBWT AAAA(-8000 will be stored in AAAA)

       FILLF ANR

       ADDWT XXXX(XXXX will hold the value 10000 in output table).



    Add comment
    10|10000 characters needed characters exceeded