Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing CICS files from a batch job 1

Status
Not open for further replies.

djprepa

IS-IT--Management
Oct 10, 2005
1
PR
Does anybody know or have a JCL to close CICS files from batch using something like IEBGENER, IDCAMS, etc. Or do you have a to use some specific software to do that?
 
Well you could use the MVS Command 'COMMAND'

Look in your z/OS (or OS/390) MVS JCL REFERENCE manual

This example produces an outstanding reply on the operators console to either accept or suppress the command.

//CLOSEIT COMMAND 'F CICSXXXX, CEMT SET FILE(XXXXXXXX) CLOSE'

There are other methods too without "buying tools software". You can always write your own tool also using CICS EXCI.

 
That works up to a point. But you don't get any feedback, and if MVS is stressed it can ignore commands sent to the console buffer, so it is possible to run the batch job 'successfully' and leave the files open to CICS.

Writing your own tool using EXCI should only take about half an hour or so, and it's much more reliable. Plus you can set a return code so your scheduling software can see if the job worked properly or not. Just remember to set the correct options on the translate step.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top