> 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/definiciones-interfaz-grafica-y-sistemas/entorno-cics.md).

# Entorno CICS

Para la gestión de claves de intercambio, se requiere definir los siguientes elementos en PCT, PPT, FCT (además debe tener también las definiciones DES y RSA correspondientes, las cuales no se indican en este manual):

```
DEFINE      TRANSACTION(ZTB2) GROUP(EDITRAN) PROGRAM(ZTBPO020)
            TWASIZE(21000) SPURGE(YES) TPURGE(YES) TASKDATALOC(ANY)      
DEFINE      PROGRAM(ZTBPOIGC) GROUP(EDITRAN) LANGUAGE(COBOL) DATALOCATION(ANY)
DEFINE      PROGRAM(ZTBPO020) GROUP(EDITRAN) LANGUAGE(COBOL) DATALOCATION(ANY)
DEFINE      PROGRAM(ZTBPO021) GROUP(EDITRAN) LANGUAGE(COBOL) DATALOCATION(ANY)
DEFINE      PROGRAM(ZTBPO022) GROUP(EDITRAN) LANGUAGE(COBOL) DATALOCATION(ANY)
DEFINE      PROGRAM(ZTBPO023) GROUP(EDITRAN) LANGUAGE(COBOL) DATALOCATION(ANY)
DEFINE      MAPSET(ZTBPM20) GROUP(EDITRAN)
DEFINE      MAPSET(ZTBPM21) GROUP(EDITRAN)
DEFINE      MAPSET(ZTBPM22) GROUP(EDITRAN)
DEFINE      MAPSET(ZTBPM23) GROUP(EDITRAN)
DEFINE  FILE(ZTBPFGC) GROUP(EDITRAN)                         
       DSNAME(PUNTERO.INDRA.ZTBPFGC) LSRPOOLID(NONE)        
       STRINGS(2) BROWSE(YES)                                
       RECORDFORMAT(F) ADD(YES) DELETE(YES) READ(YES) UPDATE(YES)
```

El fichero anterior, ZTBPFGC, debe inicializarse. Se requiere pasar jcl ZTBPJIGC (delete-define + llamada a programa ZTBPBIGC), para inicializar el fichero ZTBPFGC

En los procedimientos, se requieren las siguientes actuaciones en los PROCEDIMIENTOS (además debe tener también las definiciones DES y RSA correspondientes, las cuales no se indican en este manual):

* Incluir fichero ZTBPFGC en todos los procedimientos previos a emisión (ZTBGP1C y ZTBGPMC) y posteriores a recepción de la entidad (ZTBGP4C):

```cobol
//ZTBPFGC  DD   DSN=KI.EGDC.ZTBP.ZTBPFGC,DISP=SHR   
```

* Por otra parte, se han creado (y se suministran), 3 procedimientos nuevos, que sólo se utilizarán en la sesión editran encargada del intercambio de claves con las entidades remotas (no en las sesiones normales de intercambio de datos):
  * Previo a emisión ZTBGP1GC. Sólo para el extremo que emite su clave. Este procedimiento no se incluirá en perfiles, lo utiliza la propia gestión de claves.
  * Posterior a emisión ZTBGP3GC (en perfil de ambos extremos). Tiene un paso que sólo es utilizado por el extremo que emite una clave.
  * Posterior a recepción ZTBGP4GC (en perfil de ambos extremos).


---

# 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/definiciones-interfaz-grafica-y-sistemas/entorno-cics.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.
