Hello SAS users,
I have a table where I want to mark every observation with events 'Opened' and 'Close'.
Column Valve describes the position of a valve, where 1 = open and 0 = close.
At 26FEB24:04:52 the valve is opened and column 'Status' must mark this with 'Opened'
At 26FEB24:04:54, the valve is closed and must have the status 'Closed'.
In fact, the valve is opened during 3 minutes.
Could you give me a clue how to program/add column Status with Opened/Closed taking into account that the valve will be opened for 1, 2, 3 and more minutes?
Thanks and looking forward,
Best Regards,
Cornelis
... View more