Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

152
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda