View previous topic :: View next topic |
Author |
Message |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Fri Aug 19, 2005 12:17 pm Post subject: WRITE-ONLY / READ-ONLY ??? |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Aug 19, 2005 12:45 pm Post subject: |
|
|
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 |
|
 |
|
|