Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: Time management requirement

$
0
0

Hi Mohammad,

 

You can easily build this logic through custom PCR like below.

 

ZLTE(check 10 mints late)

*

  ****

        HRS=PBEG

        HRS-SWTB

        HRS?0.167

            *

               LEAVE

            >

               HRS=1

               ADDDB1000Z

 

Here time type 1000 would be used as counter to check 3day's late and it's period balance should be 1.

 

Insert this PCR after P2011 function with PTIP function.

 

ZCHK (check the three times in a month)

*

  ****

        HRS=M1000

        HRS?3

              <

                 LEAVE

              *

                 HRS=0.5

                 ADDDB9000Z
                 HRS=0

                 ADDMB1000Z

 

Here in the time type 9000 will be stored to deduct half day quota from quota type suppose XX and time type 1000 become zero.

 

Use this pcr after CUMBT function with ACTIO function. After incorporate this line in the pcr in the next line add CUMBT function once again.

 

 

ZQTA(deduction quota)

*

  ****

        HRS=FRXX
        HRS-0.5

        UPDTQAXX

 

Use this PCR after QUOTA function with P2006 function.

 

Check and let me know that this is working or not.

 

Regards,

Sankarsan


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>