Skip to Content
author's profile photo Former Member
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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2011 at 01:28 PM

    Hello;

    Your pcr is wrong.

    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

    Add a comment
    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

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2011 at 03:08 PM

    Thanks for all of your advice.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.