I am sending cobol program,complieJCL,runJCL & KSDS program.
1) compile jcl the execution is successful i.e maxcc=0.
2)creation of KSDS cluster execution is successful i.e.maxcc=0.
3)RUNJCL EXECUTION IS SUCCESSFUL i.e. maxcc=0 but if i go & check in the spool message is file not opened with error no.37.
so that our i/p is not written to the KSDS file.
please give me solution how to remove the error & my data should written to KSDS file.
I) COBOL INDEXED FILE PROGRAM:
SELECT FILE1 ASSIGN TO D1
ORGANIZATION IS INDEXED
ACCESS MODE IS SEQUENTIAL
RECORD KEY IS ID1
FILE STATUS IS FS.
I'm fairly sure that you can specify an OP file as SHR. In spit of that, try changing the disp for D1 to OLD. It's a good idea to do that anyway. You don't want someone else accessing your file while you're updating it.
although using IN-REC, etc. is permissable, it can be confusing to the reader (i.e. the maintainer of the code). It's a good idea to change all input data name refs to output.
Check the file status after every I/O includeing read/writes/close.