Example 4

COUNT FROM(IN2) WRITE(CT2) TEXT('Count is ') -    
  EDCOUNT(A1,U10) WIDTH(80)
Prints a message containing the count of records in the IN2 data set. Writes an 80-byte record with the specified string and an edited count to the CT2 data set. If IN2 contains 3286721 records, the 80-byte output record in CT2 would look like this:
Count is      3,286,721