Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
GDG base creation using Java

From Java z/OS, using zfile I can create a mainframe dataset. Both flat file and GDG versions.

If the GDG base does not exist the java code abends. Do we have an option to create the mainframe GDG base dataset from Java?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

GDG base entries are created via the IDCAMS DEFINE GENERATIONDATAGROUP command.

There is a section in the documentation on invoking IDCAMS from within your program, but it seems to presume the invoking program is Assembler.

In my experience, job step failure due to a GDG base being undefined is not something recovered from programmatically. Implementation plans include define all required GDG base entries.

over 4 years ago · Santiago Trujillo Denunciar

0

Given below is the code snippet i used to create the GDG Base from java. We just add the IDCAMS SYSIN input to a string and execute the AccessMethodServices with that input. getoutputlines will give you the sysout from the IDCAMS command.

AccessMethodServices ams = new AccessMethodServices();

String gdgCreateString = "DEFINE GDG(NAME( " + dsName + " )  LIMIT(15)  NOEMPTY  SCRATCH)  " ;

ams.addInputLine(gdgCreateString );

int rc = ams.execute();

System.out.println(ams.getOutputLines());
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda