I need to submit a CICS command in batch environment through COBOL program or IBM utility. It's come from our client. They ask us to send a CEMT CLOSE FILE command to make sure the files are closed before run a special COBOL batch program.
My query is: How to implement this function in batch environment? Very appreciate if anyone can give me some help on this.
Joined: 04 Apr 2007 Posts: 37 Location: Lisbon, Portugal
You have to do it using EXCI.
I think you should talk to your systems support staff, because the process is a little bit long to explain.
You should also take a look at the CICS External Interfaces Guide manual to understand the concept.
The global idea is issuing a CICS LINK command having a COMMAREA that contains the parameters for issuing the command. For that you must include some CICS areas or define them in the Working Storage Program's.