> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Arie Kremer > Sent: Sunday, February 25, 2007 10:43 AM > To: [email protected] > Subject: KSDS immedial write > > > Hi, > > could I define KSDS cluster so that each update (I use C code > with assembler > routines) will put to DASD immediately? I'd like to use it as > a pseudo log > file. The cluster has to have alternate indexes. As far as I > know, fflush() > does not work with VSAM. > > Arie Kremer
Use SHAREOPTIONS(4 4) on the define of the VSAM cluster. That will force absolutely no buffering, for every user of the file. All READs of the file go to disk. All WRITEs to the file are immediately flushed to disk. This still does not guarantee that you can successfully share the file in read-write mode between processes, if that is what you want. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

