> For the complete documentation index, see [llms.txt](https://docs.editran.onesait.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editran.onesait.com/documentacion-editran/copy-of-privado-editran-v5.3-cics/gestor-de-claves/anexo/codigos-de-retorno-devueltos-por-la-interfaz-de-cifrado.md).

# Códigos de retorno devueltos por la interfaz de cifrado

**Códigos de retorno y motivos de la gestión de claves editran**

<figure><img src="https://content.gitbook.com/content/63bxLIg4db27ZfvX85SA/blobs/2s5z8rrTokwYwH9SJhKO/image.png" alt=""><figcaption></figcaption></figure>

Una vez extraído el label “activo”, se consulta su clave asociada (FICHKRSA, FICHKDES o CKDS) y en caso de error se producen otros códigos-motivos.

Por ejemplo, si en la interfaz batch cuando carga, no existe el label (label+versión activa, indicados en fichero ZTBPFGC, de gestión de claves), en el fichero FICHKRSA o en CKDS se dará un error en carga o descarga, y displays, por ejemplo:

```
LOG Editran/G: ZTG0175: ZTBGBG10: ERROR AL CIFRAR EL FICHERO DE APLICACION
Display en job para DES: ZTBSBD02: Error en generacion de clave. (retorno 97, razon 59)
Display en job para RSA: ZTBSBR04: Error en generacion de firma. (retorno 103, razon 16)
```

Si el mismo caso se produce en CICS, o en la gestión de claves RSA, salen mensajes como los que siguen (motivo 13 = eibresp2 = notfnd):

```
LOG de editran/G:ZTP0197 : ERROR XXXXXX CRIPTOGRAFIA:  97 -   13 (ERRX)  
Display de editran/GC:PROGRAM:XXXXXXXX ,RETORNO=xxxxxxxx,RAZON=00000013                         
```

En CICS, PUEDE OCURRIR, que el label proporcionado por la gestión de claves, no sea encontrado en FICHKRSA o FICHKDES-CKDS, Y REALMENTE EXISTA en dichos ficheros.

El motivo es que, en ocasiones, sobre todo cuando hay numerosas grabaciones en los vsam (procesos batch), estos ficheros no son “REFRESCADOS AUTOMATICAMENTE EN CICS”, con lo que se puede dar el caso de que el programa no encuentre el label y unos minutos más tarde sí.

Se recomienda por tanto Para REFRESCAR EL FICHERO en MONITOR DE TELEPROCESO CICS, que cuando se actúe incluyendo claves en dichos ficheros, a continuación, e cierren – abran a CICS.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.editran.onesait.com/documentacion-editran/copy-of-privado-editran-v5.3-cics/gestor-de-claves/anexo/codigos-de-retorno-devueltos-por-la-interfaz-de-cifrado.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
