2006 Jan 09 9:03 AM
Hi all,
I have opened a dataset that was already existing(created by me), deleted it. is it necessary to close this dataset now?
2006 Jan 09 9:23 AM
Hi,
DELETE DATASET FNAME will delete the existing file which you have OPEN earlie, so there is no use of writing
CLOSE DATSET.
Please give point if it is helpul for you
Thanks,
Pramod
Hi all,
I have opened a dataset that was already existing(created by me), deleted it. is it necessary to close this dataset now?
2006 Jan 09 9:06 AM
Once you have deleted then don't need to close it which is meaningless..
Abdul
2006 Jan 09 9:22 AM
Hi vishal,
1. Not required.
2. U can also directly delete (without opening)
3.
data : fname(150) type c.
fname = '/usr/sap/trans/LEGAL.TXT'.
OPEN DATASET FNAME ENCODING DEFAULT FOR INPUT IN TEXT MODE.
delete dataset fname.
regards,
amit m.
2006 Jan 09 9:23 AM
Hi,
DELETE DATASET FNAME will delete the existing file which you have OPEN earlie, so there is no use of writing
CLOSE DATSET.
Please give point if it is helpul for you
Thanks,
Pramod
2006 Jan 09 9:39 AM
Hi Vishal.
For your info:DELETE DATASET not only delete the file contents but it will delete the entire file from the memory ie.file won't be no longer available for READ.
Abdul
2006 Jan 09 9:39 AM
If you try to close it, it may give error.
because there is no dataset exists.
So no need to close the dataset.
Regards
vijay
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |