Former Member

# Read start time of time pair and compare it in a PCR

Hi All

Created following PCR to check if th start time of the time pair is 09:30 or not. If it 0930 than I need to check the end time as well.

000010 D HRS=PBEG HRS?0900

000020 *

000030 = D HRS=PEND HRS?1730

000040 = *

000050 = = HRS=DZ007 HRS-00.50 ADDDBZ007Z

But the schema is processing only till line 20. As the start time of the time pair is 0930 it should go and check the end time.

I would like to know if correct operations are used to capture the start time of time pair and compare?

Any help will be much appreciated.

Thanks

10|10000 characters needed characters exceeded

### Related questions

• Former Member
Posted on Nov 14, 2011 at 01:28 PM

Hello;

000010 D HRS=PBEG HRS?0900

000020 *

000030 = D HRS=PEND HRS?1730

000040 = *

000050 = = HRS=DZ007 HRS-00.50 ADDDBZ007Z

This is your rule. It checks whether it is 09:00 or not. If it is 09:00 it checks end time.

000010 D HRS=PBEG HRS?09.50

000020 *

000030 = D HRS=PEND HRS?17.50

000040 = *

000050 = = HRS=DZ007 HRS-00.50 ADDDBZ007Z

Beside you can not check it as 17.30 it should be out of 100.

I mean 17:30 is 17.50 and 17:15 is 17.25

Regards;

Okan

10|10000 characters needed characters exceeded
• Former Member Former Member

If you want to read the TIP, then you need RTIP or PTIP

However you can try one thing...

You can create a rule with RTIP/PTIP and read the start time of the TIP entry and store it in a Time Type. Next use another PCR with ACTIO to read the Time Type and then do necessary processing...

Also, as noted before you will need to convert the time (hh:mm:ss) into decimal form.

Good Luck

Harshal

• Former Member
Posted on Nov 24, 2011 at 03:08 PM