C+ SELECT DISTINCT(CTP),COUNT(*) INTO :$Ctp,:#Ctotl FROM CUSTPF
C+ GROUP BY CTP
CTP is CustomerType in Customer File.
Here actually I am getting 3 records as output. But I don't know how to write those 3 records into a printer file. Can anybody explain me how to write the output of a select query if it gives more than a row?