IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

AWO vs NOAWO


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kanne

New User


Joined: 16 Dec 2009
Posts: 4
Location: Wiesbaden, Germany

PostPosted: Mon Apr 19, 2010 6:32 pm
Reply with quote

Hi together,

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.

Thanks for any input.

Cheers
Sebastian
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Apr 19, 2010 6:41 pm
Reply with quote

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.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Apr 19, 2010 6:45 pm
Reply with quote

Click on the manuals link at the top of the page, find the COBOL Programming Guide manual, click on the flashlight, and search for AWO. The manual lists the positive and negative aspects of using AWO.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Search our Forums:

Back to Top