MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WRITE-ONLY / READ-ONLY ???

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Fri Aug 19, 2005 12:17 pm    Post subject: WRITE-ONLY / READ-ONLY ??? Reply with quote

I know there is a
Code:

APPLY WRITE-ONLY  ON QT.


but is there any read-only command. how to make the file read-only exclusive. Is this is valid.

Code:

APPLY read-ONLY  ON QT.

Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Aug 19, 2005 12:45 pm    Post subject: Reply with quote

Vak255,

Quote:

but is there any read-only command. how to make the file read-only exclusive. Is this is valid.


I guess you have the wrong idea about Apply Write Only COBOL compilier option. The exclusive read/write options are held by the JCL DISP parameter.

If you use the AWO option it does not mean that you get a exclusive WRITE option on the file. The APPLY WRITE-ONLY clause will make optimum use of buffer and device space when creating a sequential file with blocked variable-length records. With AWO specified, a buffer is truncated only when the next record does not fit in the unused portion of the buffer. Without AWO a buffer is truncated when it does not have enough space for a maximum-size record. The APPLY WRITE-ONLY clause has meaning only for sequential files that have variable-length records and are blocked.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group