10-09-2007 7:28 AM
Hi experts,
I'm inserting the records into a file present in the appilcation server. Now i want to clear those file contents before inserting the records for the next time. what is the statement used to clear the file contents?
10-09-2007 7:32 AM
just use "OPEN DATASET dset FOR OUTPUT".
sap will help you clear contents auto.
you can use "OPEN DATASET dset FOR APPENDING" to append current file.
10-09-2007 7:32 AM
just use "OPEN DATASET dset FOR OUTPUT".
sap will help you clear contents auto.
you can use "OPEN DATASET dset FOR APPENDING" to append current file.
10-09-2007 7:33 AM
OPEN DATASET FNAME FOR OUTPUT .
If the file does not already exist, it is created automatically. If it does already exist, but is closed, its contents are overwritten. If the file exists and is already open (for read or write access, or for appending), the position is reset to the beginning of the file.