static void Job11(Args _args) { LedgerTable lt; while select count(recid) from lt group by AccountPlType { print strfmt('%1 %2',lt.AccountPlType,lt.RecId); } pause; }