View previous topic :: View next topic
|
Author |
Message |
svrekha
New User
Joined: 08 Mar 2007 Posts: 6 Location: coimbatore
|
|
|
|
Hi!
I given a input in the panel , if those values exist in the dataset, it should delete the record ,,, |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
svrekha, your profile lists you as a "software engineer", so I would think you'd already be familiar with sequential dataset processing.
You can't delete records from a sequential dataset. All you can do is copy all of the records you want to keep to a new dataset, skip the one you wish to delete, and create the new dataset. Then, if desired, delete or rename the current dataset and copy the contents of the new dataset into the existing dataset. Obviously, it would be beneficial for you to not write your own process, but rather use an existing utility for this.
Other than that standard process, the only other way to remove a record from a sequential dataset is by editing it. Edit it, find the record, delete the record, then save it. |
|
Back to top |
|
|
svrekha
New User
Joined: 08 Mar 2007 Posts: 6 Location: coimbatore
|
|
|
|
Thanks a lot kevin,,, i tried giving the same , but not working and also some clist commands am not sure,,, I you give some sample examples it will be really helpful... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I don't know CLIST (not too many people use it anymore) but if you describe your process in detail I might be able to hobble together some code. |
|
Back to top |
|
|
svrekha
New User
Joined: 08 Mar 2007 Posts: 6 Location: coimbatore
|
|
|
|
Am giving the an input in the screen ,,,, it should check whether the input given in the screen is equal to the record in the dataset ,, if yes , it should delete /skip the record ,,,,
It checks till the EOF , if found it will delete ....
Please let me know if you need any details |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
I think you can probably use DFSORT to exclude records. That is, make a new dataset without the records that you do not like. |
|
Back to top |
|
|
svrekha
New User
Joined: 08 Mar 2007 Posts: 6 Location: coimbatore
|
|
|
|
but i need in clist.... |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Call DFSORT from your clist. (actually, rexx is preferred).
And especially, call DFSORT if you are talking about a lot of records. |
|
Back to top |
|
|
|