EXPORT 시 DATE FUNCTION 을 FILE NAME 으로 이용하기

제품 : ORACLE SERVER
작성날짜 : 2002-04-08
EXPORT 시 DATE FUNCTION 을 FILE NAME 으로 이용하기
=================================================
PURPOSE
다음은 export시에 date function을 file name으로 이용하는 방법을
설명한다.
Explanation
1)DATE 를 넣어서 shell program 으로 exp 를 하는 방안은 다음과 같다.
CDATE=d`date '+%m%d%H%M%S' `;export CDATE
exp scott/tiger file=$CDATE.dmp full=y
2) UNIX prompt 에서
$setenv CDATE=d`date '+%m%d%H%M%S' `
exp scott/tiger file=$CDATE.dmp full=y
Reference Documents
--------------------

Hi All,
I got the solution.
The code which i had written in the FM is wrong.
OUTPUT = SY-DATUM - 1. // Wrong.
The correct one is below :
DATA: Temp TYPE SY-DATUM.
Temp = SY-DATUM - 1.
OUTPUT = Temp.
And after that, in FM's Export tab, it should be Export parameter as OUTPUT and checked the "Pass value" check box.
For the Physical File : <F=TEST>.txt.
Here the FM which i created was FILENAME_EXIT_TEST.
When I am calling the corresponding Logical file in the APD, It is working fine.
Thanks for your inputs.

Similar Messages

  • Searching for movie data in file Name-FIN-00000001

    While starting up FCP (6.0.6) gives an error message "Searching for movie data in file Name-FIN-00000001".
    After 10 to 20 min FCP will start up.
    How do I get rid of this annoying error message when starting up?
    Thanks W.

    As Jim says, this is a render file. However, simply rendering it won't fix this. What is causing this error is a QT reference movie in the project. When you export a QT movie, and make don't make it self contained, it is a reference movie that references media files and render files. When a render file is deleted (FCP does this automatically when the render file is no longer needed) then the refrerence movie can no longer function... one file it references is gone. Simply re-rendering won't fix it, because it is referencing that SPECIFIC render file.
    You need to find and delete the QT Reference movie from your project.
    Shane

  • Cannot move any files into trash to delete them. I get a Trash warning box saying "The Finder cannot complete the operation because some data in 'file name' could not be read or written.(Error code - 36)".Macbook has so much data it is almost not working

    Cannot move any files into trash to delete them. I get a Trash warning box saying "The Finder cannot complete the operation because some data in 'file name' could not be read or written.(Error code - 36)".Macbook has so much data it is almost not working.
    I have tried reseting to factory settings by removing battery and holding down the power switch for more than 5 sec but this does nothing.
    Any ideas would be greatly appreciated as I think with so much unwanted data on the desktop and other places the whole os will crash very soon.
    Thanks, Rick

    The hard drive may be dying anyway, or the directory damaged because it is so full.  You should never let the hard drive get over 85% full.
    A -36 error is a read/write error.
    All you did with the power is reset the SMC.  Does nothing to reset everything to factory settings. 
    Do you have your original 10.4 installer discs for the MacBook?
    Is your data backed up?

  • The Finder can't complete the operation because some data in "FILE NAME" can't be read or writen. (Error code -36)

    I have a RAID that my Mac says is damaged. It does mount, so I want to copy as much of the data as I can. I tried SuperDuper!, but it crashed (or gave me error and stopped).  I tried copying and pasting entire drive (1.75TB) but it stopped with this error, and same error happens with some of the files when I try to copy and paste (Drag and Drop) them individually.
    I get this error: The Finder can't complete the operation because some data in "FILE NAME" can't be read or writen. (Error code -36)

    Well, in pure Apple File System talk... -36            ioErr            I/O error (bummers)
    Not very helpful, but generally means a Drive quit being Readable or Writable since starting the operation...
    http://fuzzy.wordpress.com/2006/12/10/ioerror-36/
    If Disk Utility or fsck should fail to repair it, your best bet is DiskWarrior from Alsoft, you'll need the CD to boot from if you don't have another boot drive...
    http://www.alsoft.com/DiskWarrior/
    Might try the free trial of my favorite, Tri-Backup, it does a better copy/clone job in that it usually doesn't quit copying at every error, & has a nice log afterwards to try certain files agin if you wish....
    http://www.tri-edre.com/english/products/tribackup.html

  • Print web page to PDF with date as file name

    Hi
    I'm doing environmental monitoring for a construction project and i need to download the 5 day forecast from a particular web site daily. I'd like to automate this to happen at 7 am every day. I've tried record but am having problems.
    Here are the steps i'd like it to take:
    1. Open book mark in Safari
    2. Open print dialog (command p)
    3. Open save to PDF
    4. Select folder in finder
    5. Enter current date as file name
    6. Save pdf file.
    I've tried Get Specified URL and nothing happens. When i record the mouse always misses.
    Help

    Hi... had to put this up for a while as I got busy in my day job. Here's where i'm at
    I can successfully generate a PDF file but it's blank. The other two problems I'm having is that I'd like to name the file with the current date. I can call up the current date using that tool but i can't figure out how to make it the file name whether i print to pdf or use the tool.
    I think there's something i'm missing here.
    Message was edited by: Gary Springs

  • Export to Excel - File Name WAD 7.0

    Hi All,
    I am using Export to Excel Functionality with WAD 7.0 to export the report to excel format.
    I have used button web item, with an excel picture above it. The functionality works fine.
    But while exporting the name of excel file shown is WAD 7.0 name.
    ex. My WAD 7.0 name is IFIOP_C07_W700, the excel file also gets saved in this name.
    I want it to be made customizable.
    Can you throw some pointers.
    Thanks,
    Sri Arun Prian

    Hi,
    i have the same issue now where i need to populate the xport file name as report name. can you send me your solution please.

  • Used variable substitution to substiture the field 'date' in file name

    Hi gurus
    I have used variable substitution to substiture the field 'date' (dd/MM/yyyy/hh/mm/ss) in the file name so when empty payload (a valid xml ) is generated by Message mapping then the communication channel is failing by showing the following error
    File processing failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during
    variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload
    : date
    As of now the business is not getting effected as the business scenarion needs only customer master data at the reciever side But when ever there is no custmer master data in the sourse side the message mapping is generating an empty payload and the communication channel is failing ( so it is an internal issue and is there any way which could solve the both (ie the business must not get effected and as well the communication channel must not fail)
    any coments on this will be higly apreciated
    thanks and regards
    sandeep

    Hi Sandeep -
    Yes If you use the Variable substitution from the payload , that perticular field has to be generated in the target structure.
    To handle this You can do the following:
    Sourcefield --->exists -> IfThenElse-->TargetField
    Where     SourceField>exists(node function)-> If
                   SourceField -
    >Then
                   CurrentDate(Date Function)----->Else
    Hope this will help !!
    Regards.
    Jeet.

  • A script for adding the current date to file name?

    I am working in Indesign CS3. I frequently save file as PDFs into a designated folder. I was hoping for help in writing a script that would apply the current date to the end of the file name, when saved into this folder. Some days, I save the same file several times, into this folder. I was also hoping there was a way to add a date and version, for example "filename_2.25.11(1).pdf" Is this possible? Can someone help me?

    ok, I ended up with this test routine:
    on adding folder items to this_folder after receiving added_items
    tell application "Finder"
    repeat with this in added_items
    my checkifopened(this)
    display dialog (name of this) as text
    end repeat
    end tell
    end adding folder items to
    on checkifopened(this)
    set a to POSIX path of (this as alias)
    repeat until 1 = 0
    ## don't like that one because it relies on an error msg ... so
    (** try
    set b to do shell script "lsof | grep " & quoted form of a
    on error
    exit repeat
    end try**)
    ##so I use this one
    set b to do shell script "lsof"
    if b does not contain a then
    exit repeat
    else
    say "still opened"
    end if
    end repeat
    end checkifopened
    this is a folder action that tests if the added file is still opened by an application... there is no delay between each test-loop since lsof takes some time to execute...
    And after adding a timeout (just in case) to this function the final script looks like this:
    on adding folder items to thefolder after receiving added_items
    tell application "Finder"
    set folderkind to kind of thefolder
    set myfiles to every item of thefolder whose name does not contain "#" and kind is not folderkind
    repeat with myfile in myfiles
    set myfile_datestring to my get_datestring(creation date of myfile)
    set myfilename to name of myfile
    if (count of every character of myfilename) > 4 and (character -4 of myfilename) as text is "." then
    set filestatus to my checkifopened(myfile, 60)
    if filestatus = false then
    display dialog "timeout on folder action"
    else
    set tmp to ((characters 1 through -5 of myfilename) & "#" & myfile_datestring & (characters -4 through -1 of myfilename)) as text
    set myfilename to my checknamewith_pdfsuffix(tmp, thefolder, false)
    set name of myfile to myfilename
    end if
    end if
    end repeat
    end tell
    end adding folder items to
    on get_datestring(mydate)
    return year of mydate & "-" & (characters -2 through -1 of (("0" & (month of mydate as integer)) as text)) & "-" & (characters -2 through -1 of (("0" & (day of mydate as integer)) as text)) as text
    end get_datestring
    on checknamewith_pdfsuffix(n, D, looped)
    --check if filename exists in D
    -- so if "A File.pdf" exists it names it "A File 1.pdf","A File 2.pdf",...
    #n = string of the filename
    #D = file reference to the directory to check
    #looped = boolean used for recursive loop...
    tell application "Finder"
    set thefiles to name of every item of (D as alias)
    end tell
    if thefiles contains n then
    if looped = false then
    set n to ((characters 1 through -5 of n) & "(1)" & (characters -4 through -1 of n)) as text
    my checknamewith_pdfsuffix(n, D, true)
    else
    set tmp to (last word of ((characters 1 through -5 of n) as text) as integer)
    set tmpcount to (count of characters of (tmp as text)) + 5
    set tmp to tmp + 1
    set n to ((characters 1 through (-1 * tmpcount) of n) & "(" & tmp & ")" & (characters -4 through -1 of n)) as text
    my checknamewith_pdfsuffix(n, D, true)
    end if
    else
    return n
    end if
    end checknamewith_pdfsuffix
    on checkifopened(this, mytimeout)
    ## this file reference
    ## timeout in seconds
    set a to POSIX path of (this as alias)
    set startdate to current date
    repeat until 1 = 0
    ## don't like that one because it relies on an error msg ... so
    (** try
    set b to do shell script "lsof | grep " & quoted form of a
    on error
    exit repeat
    end try**)
    ##so I use this one
    set b to do shell script "lsof"
    if b does not contain a then
    return true
    else if ((current date) - startdate) > mytimeout then
    return false
    else
    ##say "still opened"
    end if
    end repeat
    end checkifopened
    to use this save this script in /Library/Scripts/Folder Action Scripts
    and add this as a folder action to your folder...
    The script processes all files inside that folder each time a new files is added...

  • Current Date in file name

    Hi gurus,
    I export daily a report to csv using RSCRM_BAPI ... I need to the put the date of the extraction in the file name (export_csv_120506.csv) ... It's possible ?
    export_csv_ + "sysdate" ... something like that ?
    Thanks in advance for your help,
    Alex

    Hi,
    I would suggest you to write an UNIX shell script (if it suits your environment) to rename from whatever existing fileanme to your desired file name.
    Hope this helps.
    Thanks,
    Raj

  • Export List of File Name with Faces Identified

    I'd like to export a list from Aperture, into any file format - Words, Numbers, rich text, MS Word, MS Excel, anything!!
    The list would show the file name and all the faces identified in that file.
    My daughter is in her High School dance team. I've taken more than 1000 photos. Here is is the end of the season and I'd like to distribute the photos among the dancers/parents. They don't have the software or care to take the time to sort through the pics to figure out which photos they are in. I'd at least like to give them a list of photos so that can find the ones
    Faces can be a helpful feature (though I hate all the file versions all over the place in iPhoto and Apeture).
    I've read that Faces is not stored in the metadata of the file. I've tried to export metadata, but not much comes out other than the standard file size, camera settings, etc.
    Easier to describe the situation, I guess, but would be helpful for many photos with people (weddings, parties, reunions, genealogy photos ...)
    which is Faces is supposed to be about, RIGHT???
    I guess a work around could be exporting the files from the identified faces. That seems like it would just junk up more storage/memory. I guess you could use a file list  naming app and then delete the exported files - that just seems stupid.
    I expect a little more from a souped up version of iPhoto for $79. Especially if I have Adobe Creative Suite with Bridge. If Apple wants to give a little shove to Apple, and bring novice users from looking for a non Apple solution, I think this would be an EASY no brainer.
    Thanks anyone who has a solution of a decent work around.
    Beth in Wisconsin
    Aperture 3.06
    Adobe Creative Suite 6

    Dear Kirby, Thank you so much for your reply.
    I'm familiar with Metadata. I've worked with Canto Cumulus and Filemaker.
    I guess a more important question - where is the Faces data stored?
    I'm looking to export a text version by file name, such as in a spreadsheet. Something like this
    File Name     PhotoFile_01.jpg     PhotoFile_01.jpg     PhotoFile_03.jpg
    Faces ID'd    Nina Totenburg        Carl Kasel               Tom Ashbrook     
    Faces ID'd    Carl Kasel                Peter Sagel            
    Faces ID'd    Terri Gross               Terri Gross              Nina Totenburg
    Faces ID'd     Renee Montaigne    Tom Ashbrook
    OR
    File Name                    Face 1               Face 2          Face 3               Face 4
    PhotoFile_01.jpg         Bob Braun         Tina Fey        Andy Warhol
    PhotoFile_02.jpg         Leah Jones       Beyonce        Tina Turner      Dave Matthews
    PhotoFile_03.jpg         Lisa Liu            Geena Davis
    Anything that would identify the faces in a photo to a text file ....
    Yes I understand that most of the IOS software is supposed to make it easier for the new and less techie user. But if you are going to create all these versions and mini files for the photos, why not make them accessible to a power user. I'm not a coder, but I've been using macs for 25 of my 40 years.
    What gets me is that you go to the trouble of identifying all the Faces. What is Faces really supposed to help you with?
    I mean Facebook is better at face recognition than this. Don't go on a tangent - about this - just sayin'.
    Thanks for your time!
    Beth

  • How to put current date in File name while saving PDF file.

    Hi expert,
    A report is scheduled for broadcasting  in PDF format . User wants it should have current date in its file name.
    Now system generated file name is Z_XXX_YYY_0000.pdf , but it should have Z_XXX_YYY_10012012.pdf or in any date format.
    Regards,
    Anand Mehrotra.

    First, how to best change the name of the folder. In Library view, there is a Folders panel within the lest hand side panel. If you select the folder and bring up the context menu, you can select the rename option to change the name/date of the folder. Lightroom will also cause the name to be changed on the HDD so both Lightroom as well as the OS will know about the change. This is the simplest way to handle folder name changes.
    Renaming the photos contained within the folder is a bit trickier. I have tried the Lightroom batch rename function, which should work by the way, I encountered some issues in which Lightroom wanted to substitute a sequence number, starting at 0001 rather than use the starting number I wanted to use. This was in Lightroom 4.x and I ended up having to manually rename files. To rename the files within the folder, select the folder to display the grid view of the images within that folder. Next, select all of the photos you want to rename and then select Library/Rename Photos (must be in Library mode) or just press the F2 key. This will open a Rename Photo dialog. Use the drop down box to select your naming scheme (or custom, which will open the Filename Template Editor where you can build your own template. From there, just click to confirm your choices and you should be able to rename your files.
    As I said above, I did have trouble with this in V4.x so I suggest only selecting one of the photos and testing it out. If it works, you can select the rest and complete your task. If it doesn't, then you can fix that, try again to get it to work or just manually rename your photos which is what I ended up doing.

  • Automate exports and imports (file names)

    Hi all,
    I will like to do a simple export and import into another schema in another database.
    I am very comfortable with the process but all i require is how to set the dump file and log file names to be the date and name of the database being exported and imported.
    For example when I do the export I want the dump file and logfile names to be exp_ORCL_230805.dmp and exp_ORCL_230805.log for database ORCL exported on 230805.
    For the import I want the logfile name to be imp_TEST_230905.log.
    I am doing this export and import on a windows xp client but the database reside on UNIX AIX boxes.
    Thanks alot

    Set up ORACLE_SID before you start the imp/exp session on the client, then you can use file=exp_%ORACLE_SID%_%DATE%.dmp etc. (Note that if your windows locale has a date format w/ whitespace you might have to write a script to get rid of it..)

  • Wrong date in file name when importing in Lightroom 5.0

    When I import files in Lightroom 5.0 and select the rename check box and use a custom template that includes the date (year, month, day) the files import with and incorrect date (not the current date).  The rest of the data in the file name from the custom template is correct.  How can I get the date correct?

    Using the date option when you rename adds the image capture date, not the current system date. I don't think there's a way to add "current date" automatically, though not sure why you'd want to. The vast majority of users who use "date" in their file names want the capture date, not import date.

  • Export Artboards with file name = to artboard name

    My job requires me to deal with multiple artboards in a single file (same project versioned out among several clients). Is there any way to export from Illustrator where the exported file's name would match the name of the artboard rather than documentName-01, documentName-02 and so on?
    Note: I am working with CS5

    You can rename the artboards there.
    The name gets part of the file name on export.

  • Removing date from file name

    Hello,
    Is there any way to move all the file from one location to another and remove the datepart from filename.
    for eg:- if file name is abc_20150411.xls change to abc.xls. if file name does not contain date part then ignore it.
    Can any one suggest if its possible.
    Thank You

    Hi ,
    I have created package based on your question and decribed in detail in below post:-
    https://msbitips.wordpress.com/2015/04/12/ssis-removing-datestamp-from-file-name-when-moving-from-one-location-to-other/
    You need package code, just add comment in this thread.
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

Maybe you are looking for