Para crear un registro se usa la funcion:
REGISTRO(CATEGORIA,TEXTO)
Categoria es un texto que define la categoria del registro y texto es lo que se quiere grabar en el registro.
Cada vez que se crea una entrada en el registro, se almacena fecha, hora, emisor, terminal y proceso desde el que se creo el registro.
Ejemplos.
<®ISTRO(“CANCELACIONES”,”DOCUMENTO {NUMERO} CANCELADO POR <<MOTIVO>>”)&>
Esto agregara un registro a CANCELACIONES con el numero de documento y el motivo.
<®ISTRO(“DOC{NUMERO}”,”Entrega total del documento”)&>
Esto agregara un registro a DOCNNNN con una notificacion de entrega total del documento.
Las categorias de registro pueden ser de hasta 15 caracteres.
Lectura de registro
Se usa la funcion:
LEEREGISTRO(CATEGORIA_REGISTRO)
Si no se especifica una categoria, aparecera un menu con todos los registros disponibles.
Ejemplos.
<&LEEREGISTRO(“CANCELACIONES”)&>
<&LEEREGISTRO(“DOC{NUMERO}”)&>