Anyone have a great idea on how to use PIPE to replace single record at a 
specified record number in a file without having to read / write out the entire 
file, with the following caveats?

  *   the file could be either recfm FIXED or VARIABLE
  *   the new record could potentially be either shorter or longer than its 
original


I’ve been poking at fileupdate / diskupdate / mdskupdate & fileslow / diskslow 
/ mdiskslow , but to overlay/replace a record there appears to be a CMS 
restriction that the record and its replacement must be of the same length 
(otherwise FIXED recfm files will give error, and VARIABLE recfm files will 
truncate the file without any message).





---Shawn S.




Reply via email to