Aside from just running strobes, or checking CPU usage at the end of a job, is there anyway for me to find out which COBOL verbs are more CPU intensive? Take this example:

Would it be more efficient to use this inspect statement (assume VARA is a PIC X(10) )

```
INSPECT VARA REPLACING ALL SPACE 
                       BY  HIGH-VALUE

```

or would it be better to write a loop

```
PERFORM VARYING SUB1
        FROM    1 BY 1
        UNTIL   SUB1 > 10
   IF VARA(SUB1:1) = SPACE
      MOVE HIGH-VALUE TO VARA(SUB1:1)
   END-IF
END-PERFORM

```

**BACKGROUND**

I have some programs that are handling files with millions of records and some of the jobs are not performing as well as we would like. I am trying to analyze the long running jobs and find non-invasive way to speed them up (like the above example of changing an inspect for a loop). The only problem is, I don't actually know what is actually more efficient. We don't want to do change for change sake, but if I could somehow tell that a change would improve performance, we would almost certainly do it.

I am using Z/OS 2.01.00 and COBOL for Z/OS 4.2.0