Re: Problems with a logical file?
This is the code. Very simple code.
This is the DDS
I'm sure (more or less) is not problem of the code.
This is the code. Very simple code.
PHP Code:
* Descripcion de fichero
c clau2 klist
c kfld clpos1
c kfld clpos2
c kfld clapel
* Llenamos valores
c eval clpos1 = w_pos1
c eval clpos2 = w_pos2
c eval clapel = w_apel
c clau2 setll lmclie4
c read lmclie4 99
* Si hemos llegado a otro CP activamos 99 para salir
c IF CLPOS1 * 1000 + CLPOS2 >
c W_POS1 * 1000 + W_POS2
c EVAL *IN99 = *ON
c ENDIF
c dow *in99 = *off
c if %trim(w_apel) =
c %subst(clapel:1:%len(%trim(w_apel)))
c and clpobl = w_pobl
c exsr add_sfl
c ENDIF
c read lmclie4 99
* Si hemos llegado a otro CP activamos 99 para salir
c IF CLPOS1 * 1000 + CLPOS2 >
c W_POS1 * 1000 + W_POS2
c EVAL *IN99 = *ON
c ENDIF
c ENDDO
PHP Code:
R RMCLIE PFILE(CLIENTS)
K CLPOS1
K CLPOS2
K CLAPEL
Comment