- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I am a SAS novice and learning SAS Viya4 on my own. Here is what I'm trying to do:
I have an ESP project with the following events and I want to write a logic statement for this series of events where: if e1 is true for a period of 5 minutes without e6 being true or if e2 is true for a period of 5 minutes without e7 being true or if e3 is true for a period of 5 minutes without e8 being true or if e4 is true for a period of 5 minutes without e9 being true or if e5 is true for a period of 5 minutes without e10 being true.
I have tried this: <logic><![CDATA[fby(or(fby((e1),not{300 seconds}(e6))),(fby((e2),not{300 seconds}(e7))),(fby((e3),not{300 seconds}(e8))),(fby((e4),not{300 seconds}(e9))),(fby((e5),not{300 seconds}(e10))))]]></logic>. And it resulted in this error: failed to create Esp: invalid pattern operator , in ,(fby(e2),and{300 seconds}notoccur(e7)) .
Looking for suggestions on how to properly write the logic statement.
<events> <event name="e1" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="32" and inlist(P_CODE, "C1143-11","C1143-15") and STATUS == "Y" ]]></event> <event name="e2" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="33" and inlist(P_CODE, "C11A1-11","C11A1-15","C11A2-11","C11A2-15","C11A3-11","C11A3-15","C11A4-11","C11A4-15","C1178-11","C1178-15","C1179-11","C1179-15","C117A-11","C117A-15","C117B-11","C117B-15","C108B-11","C108B-15","C108C-11","C108C-15","C108F-11","C108F-15","C1090-11","C1090-15","C108D-11","C108D-15","C108E-11","C108E-15","C1177-11","C1177-15","C1095-11","C1095-15","C109A-11","C109A-15","C109B-11","C109B-15") and STATUS == "Y" ]]></event> <event name="e3" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="34" and inlist(P_CODE, "C1175-11","C1175-15","C1176-11","C1176-15","C10D0-11","C10D0-15","C10D1-11","C10D1-15","C11A0-11","C11A0-15") and STATUS == "Y" ]]></event> <event name="e4" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="36" and inlist(P_CODE, "B1504-11","B1504-12","B1505-11","B1505-15","B1507-11","B1507-15") and STATUS == "Y" ]]></event> <event name="e5" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="39" and inlist(P_CODE, "C1025-11","C1025-15","C101D-11","C101D-15","C101E-11","C101E-15","C1026-11","C1026-15","C1027-11","C1027-15") and STATUS == "Y" ]]></event> <event name="e6" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="32" and inlist(P_CODE, "C1143-11","C1143-15") and STATUS == "N"]]></event> <event name="e7" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="33" and inlist(P_CODE, "C11A1-11","C11A1-15","C11A2-11","C11A2-15","C11A3-11","C11A3-15","C11A4-11","C11A4-15","C1178-11","C1178-15","C1179-11","C1179-15","C117A-11","C117A-15","C117B-11","C117B-15","C108B-11","C108B-15","C108C-11","C108C-15","C108F-11","C108F-15","C1090-11","C1090-15","C108D-11","C108D-15","C108E-11","C108E-15","C1177-11","C1177-15","C1095-11","C1095-15","C109A-11","C109A-15","C109B-11","C109B-15") and STATUS == "N" ]]></event> <event name="e8" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="34" and inlist(P_CODE, "C1175-11","C1175-15","C1176-11","C1176-15","C10D0-11","C10D0-15","C10D1-11","C10D1-15","C11A0-11","C11A0-15") and STATUS == "N" ]]></event> <event name="e9" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="36" and inlist(P_CODE, "B1504-11","B1504-12","B1505-11","B1505-15","B1507-11","B1507-15") and STATUS == "N" ]]></event> <event name="e10" source="TFF_Filter"><![CDATA[EVENT_ECU_ID=="39" and inlist(P_CODE, "C1025-11","C1025-15","C101D-11","C101D-15","C101E-11","C101E-15","C1026-11","C1026-15","C1027-11","C1027-15") and STATUS == "N" ]]></event> </events>