5 pts.
0
Q:
QA testing mainframe code
I have 3500 members in my loadlib and a set of scripts to test this code. However i do not know what sort of code coverage i am achieving with these scripts. Is there a way to monitor which members from the loadlib are being executed by my test scripts? Note my JCL always executes the same program and the keywords found in the SYSIN define which part of the codes functionality is invoked so its not possible to use SMF.
ASKED: Jul 7 2009  12:33 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
390 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
What you're trying to do is to track every z/OS LOAD of a member from your loadlib. Unfortunately, there's no easy way of doing this.

- You could setup a RACF program access rule, but you'd need a rule for 3500 programs - not a viable option.
- You could write a 'front-end' to the LOAD macro, but that is very difficult, and requires HLASM and z/OS internal knowledge.
- CA-PDSMAN used to have usage statistics for PDSs - but few people now have PDSMAN, and this won't help if your LOADLIB is a PDSE.
- SMF doesn't provide statistics for individual members of a PDS.

The only other thing I could think of is to provide a program that your test scripts would call just before calling a program. This program could output to a dataset, or produce an SMF record.

Unfortunately, I don't think any of this will help you much. Sorry I couldn't help out more

----------------

Perhaps you could extract the sysin 'key words', then compare that data to your load library members. (either manually, or create one or two short programs to do this). Just a quick thought.
Last Answered: Oct 2 2009  3:39 PM GMT by Sunsetrider   390 pts.
Latest Contributors: Dzs   235 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0