Joined: 06 Jun 2008 Posts: 8417 Location: Dubuque, Iowa, USA
Can any one tell me the command which has to be given in SYSIN.
But you did not provide any SYSIN command.
And it is not totally clear what you are attempting. Assuming that you want to inquire on a file in a CICS region, you can do so from a batch job with
// F <cicsapplid>,'CEMT I FI(????????)'
where ???????? is the file name (DD name) the CICS region uses for the file. Also, be aware that commands in batch JCL are NOT issued as part of step execution but rather are done first before the job executes.
Joined: 14 Jan 2008 Posts: 2504 Location: Atlanta, Georgia, USA
Going forward, if you don't have CAFC or some other File Management package, is to write an EXCI program, which links to the target region, where another program resides and this program must issue an INQUIRE FILE API. Then, the CICS program returns the EIBRESP to the EXCI program (in the COBOL RETURN-CODE Special Register) and then you can scrutinize this value.