VARIAVEL    z_totch   = 0 
VARIAVEL    z_cli     = 0 
VARIAVEL    LST_TP = 60 
VARIAVEL    Z_NCHQ = 0 
 
COMANDO DURANTE z_totch  = z_totch   + valor 
COMANDO DURANTE Z_NCHQ   = Z_NCHQ + 1 
 
C[EMPRESA] 
*- CCheques da Relacao [ct_trld->numero 99999], de [ct_trld->dataemi], tipo [ct_trld->tipo], Situacao [ct_trld->situacao] 
CRelacao de Cheques                           em [date()] as [time()]hs  Pag [pag 999]
C[Repl("-",80)]
CCheque  Bco  BomPara        Valor  CPF   Cliente
*999999  999  dd.mm.aa  999,999.99  9999-xxxxxxxxxxxxxxxxxxxxxxxxx 
C[Repl("-",80)]
D[banco 999] [NCHEQUE 999999] [BOMPARADIA] [valor @e 999,999.99] [cr_cgc @s14] [cr_nome]
ULTPAG 
ULTPAG            Numero de Cheques....................: [z_nchq 999999] 
ULTPAG            Valor Total .........................: [z_totch @E 9999,999.99] 