>I have a requirement to insert some records in the beginning of a file >where already some lines are existing . i tried using DISKW using MOD, >but they are appending to the end. How do we insert in the beginning? >I am using REXX for this program.
There is no direct way to insert data into a sequential data set, neither at the beginning nor inbetween. You need to re-write the dataset with all the new and current records in the desired sequence. If the dataset is not too big, you can read it into storage using EXECIO then write everything back out with multiple EXEXIOs. You can also use one of various ways to concatenate the input datasets and copy them into a new output dataset. -- Peter Hunkeler Credit Suisse ---------------------------------------------------------------------- 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

