Joined: 16 Dec 2009 Posts: 4 Location: Wiesbaden, Germany
I have a question concerning AWO and NOAWO compiler options.
We have a written recommendation in our company, saying that COBOL programs should use the APPLY-WRITE-ONLY clause for variable blocked sequential files.
My question now is: Why shouldn't we just put the AWO compiler flag active. What is the reason, this is not the default? What negative side-effects should we have in mind, if we would set it do our default.
Joined: 20 Oct 2006 Posts: 6968 Location: porcelain throne
probably easier to delegate the responsibility
to programmers to use the APPLY-.... clause
than have to deal with the sys-pgms that would have to change the jcl generation routines to add the compiler option.
as well as the compiler option applies to all qsam files in the program,
where as the clause only applies to the particular file.