Need to delete the file

Hi Experts,
I have one requirement, I am getting CODEPAGE error. To over come this i have a solution.
but in that i am writing into the file and replacing the special characters with the space.
But after writing into the file i want to delete the file, so that no conflict should be raised for two parallel user are accessing the same program simontenously.
Kindly suggest how to delete the file after writing. and the time stamp of the file deleting in ddmmyyhhmmss format.
Thanks in advance.
Regards,
Chirag

Hi Chirag,
A sample code snippet for you:-
DATA FNAME(60) VALUE 'myfile'.
OPEN DATASET FNAME FOR OUTPUT.
OPEN DATASET FNAME FOR INPUT.
IF SY-SUBRC = 0.
  WRITE / 'File found'.
ELSE.
  WRITE / 'File not found'.
ENDIF.
DELETE DATASET FNAME.
OPEN DATASET FNAME FOR INPUT.
IF SY-SUBRC = 0.
  WRITE / 'File found'.
ELSE.
  WRITE / 'File not found'.
ENDIF.
The output appears as follows:
File found
File not found
Regards
Abhii

Similar Messages

  • HT203200 Cannot delete the file from the itunes folder

    I cannont delete the file from the itunes folder because it tells me I need permission to do so.  I am the admin person for the laptop plus I have checked my permissions under the security tab in the files properties.  How do I delete this file to start again?  It downloaded 1.2GB of the file before the error message appeared, so its paid for and all but not looking like I'll get to watch it before the time runs out on the movie being available for me to watch. :-(

    Try deleting the file without iTunes running.
    When you next open iTunes it should then be marked as a missing file and you should be able to delete the entry from iTunes.
    Hope this works
    Regards,
    Colin R.

  • System exception while deleting the file from app server in background job

    Hi All,
    I have a issue while the deleting the file from application server.
    I am using the statement DELETE DATASET in my program to delete the file from app server.
    I am able to delete the file from the app server when i run the program from app server.
    When i run the same report from background job i am getting the message called System exception.
    Is there any secuirity which i need to get the issue.
    Thank You,
    Taragini

    Hi All,
    I get all the authorization sto delete the file from application serever.
    Thing is i am able to run the program sucessfully in foreground but not in the background .
    It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
    Can anybody please give me suggestion
    Thanks,
    Taragini

  • File from application server -Read and process and delete the file .

    Hi All,
             I writing a ZEE program which will read the file from application server(file will be in text delimat format) and moving the data to internal table and uploadind data base.The part which iam facing problem is -
    > I hve read the file from application server like below ,
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
    Spliting part i having problem .i need to seperate each field which is seperate from tab delimite and pass it into respective fields of internal table .
    Second if another file come to the appicaltion server , wether my first file will be there ? or should i need to delete the first file after redaing how should i proceed further ?.
    Regards
    SRIRAM...
    THANKS In ADVANCE

    HI,
    1.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    DO.
    CLEAR: wa_string, wa_uploadtxt.
    READ DATASET ld_file INTO wa_string.
    IF sy-subrc NE 0.
    EXIT.
    ELSE.
    SPLIT wa_string AT cl_abap_char_utilities=>horizontal_tab INTO wa_uploadtxt-name1
    wa_uploadtxt-name2
    wa_uploadtxt-age.
    APPEND  wa_uploadtxt TO itab.
    ENDDO.
    CLOSE DATASET ld_file.
    ENDIF.
    2. If the another file get's generated in the application server with same file name then the data in old file get's over written with the new data. You are not required to delete the file.

  • I am using the desktop screensaver and a file from dropbox for photos.  Does the list of screen savers actually use the file, or just link to it.  If I delete the file from the dropbox, will the screen saver be lost?

    Using the desktop slideshow, I have added a file from dropbox for the slideshow.  If I delete the dropbox file, does that delete the file from the list on the slideshow?  Do I need to leave the file on the computer itself rather than in the dropbox and then delete it from the dropbox?

    If you are going to delete the file from Dropbox, you will need the file on your computer.
    You will probably need to put the file in Library/Screen Savers

  • If you delete files from your computer, BlackBerry Link deletes the file or collection from your device?

    I found the below description from the help of BlackBerry Link, however i never get it work.
    Any one know whats wrong or what i need to set?
    About deleting music, pictures, videos, and documents?
    After you sync your music, picture, video, or document files between your computer and your BlackBerrydevice, if you delete a file or a collection of files, the following actions occur:
    If you delete files from your computer, BlackBerry Link deletes the file or collection from your device.
    If you delete files from your device, BlackBerry Link doesn't delete the file or collection from your computer.
    For information about how to delete a file from your device, tap the Help app on the home screen of your device.

    Hey hkfoolman,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Go into BlackBerry Link and click on the BlackBerry and then click on Options.  Make sure you have Music, Pictures, Videos and Documents checkmarked for synchronization.  Once these are checked, try to remove the files.
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • I have my download list but I deleted the file on my computer and want it back, is there a way of using the list to get it back?

    I have the download list for firefox but accidentally deleted the file on my computer. I need the file and was wondering if there was a way of using the download list to access the file somehow, I don't think the file os on the internet either as I haven't found it

    Hello!<br>
    Go to the downloads window, right-click, and click "copy download link" or "go to download page". You should then be able to re-download it only if it's still in the downloads window

  • When using Time Machine, if I delete items from my computer, will they still be backed up to access later on my external hard drive? In other words, when time machine backs up again, will it delete the files from the back up?

    When using Time Machine, if I delete items from my computer, will they still be backed up to access later on my external hard drive? 
    In other words, when time machine backs up again, will it delete the files from the back up that I have deleted from my computer?

    No, I do not believe so. Time Machine would keep all those now-deleted files in previous backups, and as time goes by those backups might be deleted if you needed room, but it would still keep one backup from each day in last month, as well as one from each week forever, as long as you don't start running out of room, then just the oldest would be deleted to make room if needed.
    I use a backup drive about double the size of my drive to be backed up, so I would guess it will never get to the point where deleted files being replaced by new ones being backed fill up that drive to the point where backups actually have to get deleted.

  • Will not print files from mobile phone says it **may have** a virus- and deletes the file

    My HP photosmart premium with wireless ePrint, will not print files from mobile phone says it **may have** a virus- and deletes the file?!? My Fiance has the same phone, and I used it. It completed the file??? If I text message and E-mail address, my cell phone will come up as and E-mail address... has anyone else had this issue? Is it because I texted the the file? It didn't seem to be and issue on any of the other mobile phones used.... I am out of answers.... I tried to E-mail as well...
    Thanks in advance

    I have nearly the same problem, the printer discards my print job even when i have entered my email address as authorised senders.
    Details from my other post:
    I sent 2 emails to the printer:
    - one is a 3 lines of text and numbers in a GIF file sent as an attachment
    - another is a jpg circuit diagram paste in a word doc sent as an attachment
    both are classified as spam and refused to print. i have no email coming back saying it failed (even i have checked "Email Job Status" in ePrint Settings.
    So what will this HP printer print?
    How can I switch this useless spam filter off?
    I have get this filter off! I need this email printing to work reliably, that is a major reason I bought this printer
    Any suggestions are welcomed...
    HP's slogan on the box:
    "Now you can print from virtually anywhere" (but get discarded every single time!)

  • I am not able to display or change the file after deleting the file

    Hi All,
    I am checking in the document to content category while creating the DIR.
    I tried to delete the file on my desktop and after i am unable to open the file in CV02N,It gives the below error:
    Error while executing "C:\
    Firdosi\Desktop\gg.txt"
    I changed the settings in define workstation applications also and i ticked on Data check of.
    Please advice.
    Muzamil

    Hi Muzamil,
    The error is occuring because you have not checked-in the document before deleting. First you need to save the DIR and then you can delete the file from your desktop. Then only SAP DMS can retrieve the file from content server and display on screen.
    If you have only selected the file which is not checked-in means DIR not saved. And suddenly you tried to delete the original file from desktop. It means the recod is not saved in SAP DMS and before that you have tried to delete it.
    This is standard behaviour and such type of files can't be retrieved from content serever as it's original is not saved properly i.e. checked-in.
    Hope this will resolve the query.
    Regards,
    Ravindra

  • Need help deleting trace files

    Hi,
    I am new to Oracle RAC and I need to get rid of trace files since they are growing too big. I have one that is 22Gigs and I only have 60 Gigs available right now on that drive. I want to know if I can delete the file manually using the rm command.
    My trace files are in: /u01/app/oracle/diag/rdbms/.../.../trace
    The file I am concerned is called: "linux1_pz99_13299.trc" and "linux1_pz99_13299.trm"
    I am using Oracle 11.1.0.6.0 on Oracle Unbreakable Linux.
    Thanks for any help that can be provided.

    Is that really going to work?
    It is my understanding (supported by some inconclusive observations and experiments) that once a trace file grows beyond about 8 kilobytes Oracle will hang onto it in a death grip. You may delete it but Oracle will still have the file handle open and be writing to it.
    If the database is running on a Windows platform then an equivalent script will not even give the illusion of deleting the file.
    It used to be the case that switching trace file output to a different directory would cause Oracle to release the active trace files but now the trace directory is part of the ADR heirarchy so switching is a more global and more intrusive operation and could interfere with other diagnostics.
    You may have to rely on ADRCI's "purge" command unless there is a PL/SQL equivalent.
    I shall be very interested to see what others have to say.

  • Can I delete the files off of my MacAir after a Time Machine download to an External hard drive?

    I need to free up space on my MacAir.  Does doing a Time Machine to an external hard drive allow me to delete the files off of my laptop without worry?  I have lots of pictures that I don't want to lose.
    Thanks!

    No. It is not an archival backup. It essentially is a mirror of what is on your hard drive. However, it will not delete those backups until it needs the space.
    If you wish to archive them to other storage, you need to use something else (copying in Finder to an external would suffice).

  • Can I delete the files/folders in 'Apple Computer\MobileSync\Backup'?

    Hi!
    I have just tried to backup and update my iphone to iOS 5.1. The backup seems to have worked but when it came to restoring the iphone, I think the hard disk ran out of space and so it failed. I saw this and so I freed up around 3Gb of disk space and I tried it again. It again failed. Again I noticed that there was no space left on the hard disk. I assumed that to continue the restore it probably won't need that much more space (as it had already done most of the work) so I freed up a few more Gb.
    Again it failed. When it fails, itunes leaves the partially restored elements on my hard disk meaning that my 'Apple Computer' folder is now 28Gb!! I cannot afford to delete anything else from the hard disk. I am using a PC by the way. I have noticed that in the folder 'Apple Computer\MobileSync\Backup' has 5 folders in it which is the same amount that I tried to restore the iphone (before the last restore attempt there were 4 folders). These folders amount to 20Gb. From this I am assuming that the actual backup that I made is infact in 'Apple Computer\iTunes\Mobile Backups'.
    Can I delete the folders in 'MobileSync\Backup'? This would free up 20Gb of disk space giving me enough to properly restore (in theory!).
    Thanks for your time!!
    Nick

    your advice worked for me and saved me what ever evil lurked behind my thought to just delete the backup and get back my very lmited space on my 250GB Mackbook Pro using daisydisk pro https://itunes.apple.com/us/app/daisydisk/id411643860?mt=12
    Why DaisyDisk?
    DaisyDisk remains the tool of choice for film makers (including companies like Pixar), digital artists, IT professionals and hundreds of thousands of Mac users worldwide when it comes to disk space management. Constantly improving since its initial introduction, the app easily blows away competition in terms of speed, efficiency and user experience.
    @wjostenMar 27, 2012 4:03 AM Re: Can I delete the files/folders in 'Apple Computer\MobileSync\Backup'?
    Re: Can I delete the files/folders in 'Apple Computer\MobileSync\Backup'?in response to nickcrowney
    Delete iOS backups this way: iTunes>Preferences>Devices...select the backup/backups...hit delete. Do not mess with your backup folder.

  • Installed java and deleted the files---NOT ABLE TO INSTALL java AGAIN

    1) I installed jre,jdk1.6 and then without uninstalling i deleted the files.
    2) I now want to install java for creating web application.
    But I am not able to install. While installing I get a "file corrupted" message and the installation aborts.
    What can I do to install java again?

    With the info provided the best advice I can give is reformat your drive and start fresh.
    If that doesn't sound palatable, then you could maybe tell us at least what OS you are running and if you really want help the exact version of the OS.
    Then you can tell us what you have already tried. Like running the uninstaller now, installing to a defernt directory, etc.
    Also have you tried redownloading the JDK? Maybe the file really is corrupted.
    And while file is it saying is corrupted.
    Like everything else here, you need help, we don't need to help you, and we can't read minds. So if you are willing to put forth a tiny bit more effort to provide as much info as possible, you are more likely to get a meaningful response with a solution.
    JSG

  • Mail app's Previous Recipients-how to delete the file?

    I have tried, unsuccessfully, to Remove From List all the items in Previous Recipients, but they always return after I quit Mail and relaunch. I need to find the file that contains these stragglers and delete them forever. Anyone know where it is to be found?

    Daniel,
    The source of the Previous Recipient data is the AddressBook folder within the Application Support folder of your User folder (Home)/Library. It is in a file named MailRecents. In the Finder, you can delete that, but be sure for any backup source you may have in operation.
    If only due to some corruption, the date last modified will stale on the MailRecents file.
    Ernie

Maybe you are looking for

  • Custom Date Field not showing up in Pages Inspector

    I created a custom date field in Address Book and now want to merge info from Address Book into a Pages template I created (including this new custom date field). When I go to the Inspector to add the custom date field to the template, it is not list

  • Non-blocking execution with Pro*C/C++

    Hi readers, Is there any mechanism available through which Non-blocking execution with Pro*C/C++? I observe that Pro*C queries are hanged when the DB server (hardware) is down. I understand that OCI provides non-blocking mechanisms. Pro*C doesn't use

  • How do I consolidate two volumes?

    Friends: My Catalog "somehow" has become distributed over two volumes A and B.  A has 60,000 and B has 5,000 files.  How do I consolidate the volumes?  [I want A to have all 65,000 images] (Later I want the other of the volumes to simply be a bakup)

  • Time Frequency Analysis

    Is there any way to perform time-frequency analysis(spectrogram ) in DIAdem? Ideally, I got like to play the waveform in one section of the VIEWER and other section of the VIEWER would have the spectrogram of the data within the band cursor. Does any

  • Can Logic Pro 9 Be re-used?

    I got logic pro in sept. 2011 and I haven't really used it...Can I resell it?