How can I use MOD function in Easytrieve, like you said before, but my input file has fields with fixed. With my code, I've got a S0C7 abend. How can I handle this, please?
The code is below:
I05A_IDREG * 010 A . * 049-058 IDENT.REGISTRO DIRF
I05A_VLR_JAN * 008 P 2 . * 059-066 VALORES JANEIRO
I05A_VLR_FEV * 008 P 2 . * 067-074 VALORES FEVEREIRO
I05A_VLR_MAR * 008 P 2 . * 075-082 VALORES MARÇO
*
W_REST W 15 N 2 VALUE 0
W_INT W_REST 13 N
W_DEC W_REST +13 2 N
DO WHILE IND_MES < 13
W_REST = VLR_MES_DEP / 150.69
IND_ANT = IND_MES + 1
IF W_DEC ¬= 0
W_VLR_DEPEND = VLR_MES_DEP(IND_MES)
VLR_MES_DEP(IND_MES) = VLR_MES_DEP(IND_ANT)
IND_MES = IND_MES + 1
I05A_VLR_JAN * 008 P 2 . * 059-066 VALORES JANEIRO
I05A_VLR_FEV * 008 P 2 . * 067-074 VALORES FEVEREIRO
I05A_VLR_MAR * 008 P 2 . * 075-082 VALORES MARÇO
*
W_REST W 15 N 2 VALUE 0
W_INT W_REST 13 N
W_DEC W_REST +13 2 N
DO WHILE IND_MES < 13
W_REST = VLR_MES_DEP / 150.69
IND_ANT = IND_MES + 1
IF W_DEC ¬= 0
W_VLR_DEPEND = VLR_MES_DEP(IND_MES)
VLR_MES_DEP(IND_MES) = VLR_MES_DEP(IND_ANT)
IND_MES = IND_MES + 1
Thanks!
Juliana