COUNTKEYS Example


 

 

IFILE

IFILE

 

StartKey

INIT

"00000"

EndKey

INIT

"99999"

.

 

 

 

OPEN

IFILE,...

 

...

 

 

COUNTKEYS

IFILE FROM StartKey TO EndKey GIVING KeyCount

 

Assuming the ISAM file has a five digit key, the COUNTKEYS instruction would return the number of keys in the file.

 



PL/B Language Reference