deleting a particular record in rexx

IBM's Command List programming language & Restructured Extended Executor
vsk_in4u
Posts: 1
Joined: Thu Aug 30, 2007 7:47 pm
Skillset: mvs(z/os),jcl,cobol,cics,rexx
Referer: through the internet

deleting a particular record in rexx

Postby vsk_in4u » Wed Nov 21, 2007 5:24 pm

how to delete a particular record in dataset without copying it to another dataset by eliminating that single record...

User avatar
MrSpock
Global moderator
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
Referer: ibmmainframes.com
Location: Raleigh NC USA
Contact:

Re: deleting a particular record in rexx

Postby MrSpock » Wed Nov 21, 2007 9:16 pm

You can't do that in QSAM processing. The entire dataset has to be read and then re-written with the deleted record omitted. It's not a good idea to read and write to the same dataset.

Just use an editor and delete the required record instead.


  • Similar Topics
    Replies
    Views
    Last post