Hi Team,
My input dataset contains the below information :
ARC0680I HSM EXPIREBV STARTED 27 Dec 2011 01:00:00
ARC0620I HSM VOLUME DUMP STARTED 27 Dec 2011 01:00:01
ARC0621I HSM VOLUME DUMP ENDED 27 Dec 2011 01:06:39
ARC0520I HSM PRIMARY SPACE MANAGEMENT STARTED 27 Dec 2011 01.06.39
ARC0521I HSM PRIMARY SPACE MANAGEMENT ENDED 27 Dec 2011 01.22.17
ARC0517I HSM SECONDARY SPACE MANAGEMENT STARTED 27 DEC 2011 01.22.17
ARC0518I HSM SECONDARY SPACE MANAGEMENT ENDED 27 Dec 2011 01.25.14
ARC0681I HSM EXPIREBV ENDED 27 Dec 2011 02:06:17
ARC0680I HSM EXPIREBV STARTED 28 Dec 2011 01:00:00
ARC0620I HSM VOLUME DUMP STARTED 28 Dec 2011 01:00:01
ARC0621I HSM VOLUME DUMP ENDED 28 Dec 2011 01:07:39
ARC0520I HSM PRIMARY SPACE MANAGEMENT STARTED 28 Dec 2011 01.07.40
ARC0521I HSM PRIMARY SPACE MANAGEMENT ENDED 28 Dec 2011 01.22.17
ARC0517I HSM SECONDARY SPACE MANAGEMENT STARTED 28 DEC 2011 01.22.17
ARC0518I HSM SECONDARY SPACE MANAGEMENT ENDED 28 Dec 2011 01.45.24
ARC0681I HSM EXPIREBV ENDED 28 Dec 2011 02:16:17
ARC0680I HSM EXPIREBV STARTED 29 Dec 2011 01:00:00
ARC0620I HSM VOLUME DUMP STARTED 29 Dec 2011 01:00:01
ARC0621I HSM VOLUME DUMP ENDED 29 Dec 2011 01:07:39
My requirement is :
The ARC messages(messages in first column) from system are captured and placed in my input dataset. If any of the ARC message is not found with respective date(suppose on 29th Dec 2011 if ARC0680I message is not there in input dataset) then it should give that particular function has not started on so and so date. For example if ARC message ARC0680I is not found on 29th then it should display as :
HSM EXPIREBV has not started 29 Dec 2011 01:00:00
If the same ARC message is not appeared on both the dates then it should display as :
HSM EXPIREBV has not started 28 Dec 2011 01:00:00
HSM EXPIREBV has not started 29 Dec 2011 01:00:00
Hope I am clear in explaining my requirement. Could anyone look into it and help me in writing REXX code. I have tried with IF THEN DO ELSE and SELECT WHEN OTHERWISE parameters in REXX but I am not able to get the desired output.
Please help me in this issue.
Thanks N Regards
Ravi