programacion rpg - gestión de errores y excepciones

Post on 23-Jan-2018

164 Views

Category:

Software

7 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

1. %Error y %Status

2. Estructura de datos de archivo InfDs

3. Estructura de datos de programa Sds

4. Subrutina *PSSR e InfSr

5. Monitor On-Error

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

%Error y %Status

▪ Mediante el especificador (e) de error se pueden controlar y capturar los errores de operación.

➢ Permite validar si sedetectó un error en elprocesamiento delarchivo.

➢ Indicador dedetección de error.

➢ Valida el código de errordevuelto.

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

%Error y %Status

▪ Tabla de códigos de error

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

Estructura de datos de archivo InfDs

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

Estructura de datos de programa Sds

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

Subrutina *PSSR e InfSr

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

Subrutina *PSSR e InfSr

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

Subrutina *PSSR e InfSr

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

monitor;

exsr mainline;

on-error 1217;

callp halt('File ORDER not found - check library list.');

on-error *FILE;

dump;

callp halt('File error occurred - check dump.');

on-error;

dump;

callp info('Program error occurred - check dump.');

endmon;

*inlr = *on;

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

Ingeniero Giovanny Guillén Bustamante

Especialista Certificado IBM i – PMP – SCRUM MASTER

top related