0

I am looking for the JCL equivalent of NEWCOPY method in CEMT/CICS:

CEMT SET PROG(xxxx) NEWCOPY

Any help would be appreciated.

Michael
  • 8,920
  • 3
  • 38
  • 56
sangupta
  • 2,396
  • 3
  • 23
  • 37
  • I don't understand your question. Are you trying to write a JCL procedure that will perform a CICS NEWCOPY? – NealB Dec 06 '12 at 14:28
  • JCL does not have a direct way to issue a NEWCOPY command. There are two ways outside of CICS to issue a CEMT NEWCOPY, which are the MODIFY console command and the EXCI interface. Now, as stated below, JCL can issue an operator command – zarchasmpgmr Dec 08 '12 at 03:03

2 Answers2

4

If your answer to NealB's question is "Yes," then here are some options.

  1. Invoke CEMT via an operator command. One way to do this is to run SDSF in batch, another is to use the TSO CONSOLE command. Be advised that this requires authorization.
  2. Write a program in your preferred programming language and invoke the CICS System Programming API SET PROGRAM. Then write another program, to be executed in batch, that uses the External CICS Interface (EXCI) to invoke your CICS program that does the SET PROGRAM.
  3. There exist third-party tools that do what you want, DADS PLUS is one. We use a facility built into our change management system, Change Man from Serena. There are likely others.
cschneid
  • 10,237
  • 1
  • 28
  • 39
  • Could also look into [CICS Batch Interface](http://pic.dhe.ibm.com/infocenter/cicsts/v4r2/index.jsp?topic=%2Fcom.ibm.cics.cm.doc%2Fccv-batch.htm) – NealB Dec 06 '12 at 16:55
0

You can just use the JCL COMMAND to embed the COMMAND in your job stream:

//CMD1 COMMAND 'F CICSRGN1, CEMT SET PROG(xxx) NEWCOPY'

I'm not sure of the syntax, but it is exactly what you would use from an opperator terminal.

JoSSte
  • 2,953
  • 6
  • 34
  • 54
Joe Zitzelberger
  • 4,238
  • 2
  • 28
  • 42