Previous Topic: COPY TABLE (Format II)

Next Topic: DATACOM

COUNTKEY

COUNTKEY table-name ûEQ|RANGEº KEY NAME IS key-occurrence-name VALUE ûIS|AREº ûkey-value|key-value1,key-value2º.

This statement can be coded anywhere in the function logic. All the COUNTKEY commands are stored and executed at end-of-job. The results of this command will produce a special listing showing the number of index entries for a specified key returned. These totals only print at end-of-job.