Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting after create

Status
Not open for further replies.

rtamma

Programmer
May 16, 2002
5
US
i have to read from a dataset and write into a new dataset. I do a find next on the first dataset to find the record and write it to the newdataset. After writing to the dataset i have to delte the record from the old dataset. How do i do that. If i delete it immediatly after writing it into the new dataset will the find next work to get the next record as i have deleted the record . please clarify.

Thanks
rt
 
According to my COBOL documentation, DELETE will not affect the file position indicator: your READ NEXT will correctly obtain the next record after the one deleted.

Dimandja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top