COBOL program and wrong DD name.
Posted: Mon May 09, 2016 8:22 am
Hi,
I have a simple program which simply opens a sequential output file, write in to and closes the file. I faced a problem that the program compiled well and executed to. It allocates the file the output file do not have any records .
After a long a careful observation I came to know that the DD name in the JCL was spelled incorrectly. My question is, if the file name in COBOL didn't match the DD statement in the jobs JCL why did not I get an open error? Or some sort of other error to indicate this?
I have a simple program which simply opens a sequential output file, write in to and closes the file. I faced a problem that the program compiled well and executed to. It allocates the file the output file do not have any records .
After a long a careful observation I came to know that the DD name in the JCL was spelled incorrectly. My question is, if the file name in COBOL didn't match the DD statement in the jobs JCL why did not I get an open error? Or some sort of other error to indicate this?