Updating Keyed Data Files The WRITEV and UPDATE functions write data to keyed files. Note: If you want to use WRITEV, you must set the LOOKUPV function access argument to W (read/write). Using the WRITEV Function to Update KSDS VSAM Files (Mainframe Only)