Putting date and time in a spool file name for output

I have bee trying to find this answer but don't know where to look: I want to take all or part of the date and/or time to create a unique filename on the fly for a spool file. Can someone point me in the right direction? I am using SQL*Plus.

undefine curDateCol
column curDateCol noprint new_value curDateCol
select to_char(sysdate,'YYYYMMDDHH24MISS') curDateCol from dual;
undefine fileName
define fileName=/myFileName_&&curDateCol..csv
prompt creating &&fileName ...
set echo off
set termout off
set showmode off
spool &&fileNamehth

Similar Messages

  • HT5252 I tried to change my metadata date and got this   Aperture was not able to adjust the date and time of the original file "01769_p_h13ajyrm4bm0944.jpg" because it is locked or you do not have permission to modify it.

    I tried to change the metadata date.  It changed the date on my photo, but when I checked the box that said "also change my original file", it gave me this error message.
    Unable to change original file.  Aperture was not able to adjust the date and time of the original file “01769_p_h13ajyrm4bm0944.jpg” because it is locked or you do not have permission to modify it.
    Wassup?

    What is your Aperture version? The older versions of Aperture 3 had a problem to apply Metadata changes to the original file.
    If you are using the current version Aperture 3.4.5, try to repair the permissions on your Aperture library, if you have not already done so:
    Launch Aperture with the key combination ⌥⌘ held down and select "Repair Permissions" from the First Aid PAnel, that will appear.
    If that does not help, post back with more information on your original files - are the referenced or managed? Where is your Aperture library located? Since when do you have this problem? And what did you do directly before noticed the problem for the first time?
    Regards
    Léonie

  • Aperture was not able to adjust the date and time of the master file "2008-06-22 at 14-41-14.jpg" because it has a format that does not permit date modification.

    I can't seem to find a way to update the date/time of a master file. There is a format issue but I can't seem to figure out how to correct it.
    Aperture was not able to adjust the date and time of the master file “2008-06-22 at 14-41-14.jpg” because it has a format that does not permit date modification.

    Can you post an ipconfig /all from the server and the DC?
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • How to read the date and time information of a file by labview

    how to read the date and time information of a file by labview? for example, created time and modified time.
    Solved!
    Go to Solution.

    if you need to know the last modification date of file:-
    "Functions->File I/O->Advanced File Functions->File/Directory Info.vi"
    This vi returns the value of file's last modification date. This is returned as U32 number. To see it in MM/DD/YY format you must create the indicator, right-click on it and select "Format & Precision" item from drop-down menu. Then select "Time and Date" format there.
    Thanks as kudos only

  • How can i change date and time after importing a file

    hello
    i'm importing AVI files first in iMovie because Final doesn't support (other question i put in) but when i see the scenes form 1993 they have the date 2004.
    i believe 2004 is the date i put them on the computer.
    Now i looked in the help files Final Cut Pro but cant find anything to adjust the date and time.
    it works well in iMovie using the help files:
    Right-click the clip you wish to edit and click Adjust Clip Date and Time from the menu that appears. Or click on Archive and than adjust date and time
    But as i said i cant import the files in FCP have to import them to  iMovie files adjust the date and than import to Final Cut Pro but than de changes i made to the date and time  are gone and in FCP 2004 is again the date of the file!!!
    Question how can i Change in Final Cut Pro the date and time in a same way as iMovie does?
    Jemajoro

    OK, I think I understand what you are saying but it still does not look like it is doing it as you describe.
    Here is another screen shot.
    Note that all clips in "2007 August" event have the date of Aug x, 2007.
    Yet, the event "2007 August" still shows up under the 2012 "folder" (is that the right terminology?).
    The newest clip in this event is Aug 31, 2007 so shouldn't it be categorized as 2007 and not 2012?
    I think you know this but I am using the following feature:
    Go to the sprocket icon under the events.
    Select "Group events by date" and then by "group events by year and month"
    Thanks again for all the help

  • Get-Content and add Date and Time in a new file

    Hello,
    in a existing file I have data like:
    1;Idle
    5;chrome
    1;spoolsv
    Now I need to grab the content and add date and time in front of each line and save it to another file like:
    07.04.2015;10:18;1;Idle
    07.04.2015;10:18;5;chrome
    07.04.2015;10:18;1;spoolsv
    But I don't have any idea how I could solve this challange. Does anyone have a helping hand for me?
    Greetings

    Hello,
    If you need a new file with the desired output try this
    get-content .\current.txt | Foreach-Object{ $dntv = (get-date) ; "$dntv" + $_} | Out-File newfile.txt
    regards,
    V
    Venu

  • Date and Time in the flat file

    Hi All,
    I am trying to design a flow which will get data from a flat file. The file has a field which contains both the time and date. How can I handle this in BW? Do I need to creat 2 infoobjects and split the flat file field in start routine or transfer rule? Or is there any stadard infoobject which can hold both the data and time?
    Also, the client asked me if I want a .CSV file or .XLS file. Which one is better for uploading into BW? Any PROS and CONS?
    Best Regards,

    Hi,
    There is no single Data Type which accepts the Date and Time. Other way is to look the data as CHAR. Else the Update Routine/Formula is the Best
    In the Update Rule or Transfer Rule use the Formula
    Let the Info Objects be
    0date
    0Time
    The Transfer Rule/ Update Rule Formulas Be
    0Date --> LEFT( 8, 'DateTime' )
    0Time --> RIGHT(6, 'DateTime')
    Then CSV is the best Option to accept the Data as it is ready for Upload
    Regards
    Happy Tony

  • Date and Time channels in Diadem files

    I'm developing a tool to convert data files from or own format to Diadem data files format, producing a header (.dat) and a binary file (.r64).
    From my source data files, I have to convert a date channel and a time channel. Is there a way to store such channels in binary format (in the .r64 file) ?
    I got the GFS's pdf "Description of the Data formats and File set properties", but I didn't find any info about binary date or time channels.
    Thanks for help.

    Michel,
    The starting point is 01.01.0000 at 00:00:00. This time/date is the value '0'. The DIAdem time channels will be accurate until at least 12/31/2078, starting at 10/15/1582. This is due to changes made to the Gregorian calendar made back in 1582 concerning leap years.
    Today (04/18/2202) at 1:00:00 PM (13:00:00 military time) would be the value 6.31862676E+10. This number represents the number of seconds that have passed since 01.01.0000 at 00:00:00.
    DIAdem provides two functions to convert numbers into time data and time data into numerical data. They are TTR (time to real) and RTT (real to time). The DIAdem help system contains additional information on how to use these functions.
    Let me know if there is any additional information I ca
    n help you with.
    Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • "Date and Time" freezes System Preferences - file to delete?

    Well, I've had her up and running for about eight hours now and only one problem... just checking all the settings in System Preferences and when I select "Date & Time" System Preferences stops responding.
    I migrated my 12" PB so there may have been a hinky file there - repairing permissions does nothing. Any .plist I might delete? The date and time are correct, by the way although, during set-up, the time & date pane just whizzed by, not giving me a chance to select.
    Any thoughts, system wizards?

    I have experienced the same problem. You can try deleting the /Home/Library/Preferences/com.apple.systempreferences.plist, but that may not help. Be sure you have no menubar items running such as MenuMeters, iClock, etc. You might also try booting from the Installer Disc and running Disk Utility to repair the hard drive and permissions. Then do a shutdown for about five minutes before restarting. Upon restart clear PRAM by pressing and holding down the OPTION-COMMAND-P-R keys immediately after the chime and continue to hold them until you hear the restart chime another four times, then release and allow normal startup.
    Migrating from a PowerPC Mac can be problematic because of the possibility of getting third-party plug-ins, preference panes, menubar modifiers, etc. that can potentially cause problems.

  • How to know date and time information from Trace File defaultTrace.X.trc?

    Hi, all.
      i'm using EP 6.0 SP9 patch 1.
      As you know, default trace is written in the <SID>\JC00\j2ee\cluster\server0\log\defaultTrace.X.trc.
      By using the default trace formatter, it shows like the following sample messages.
    #1.5#0011110E7B2000590000000100000A100003EC71562E6EBC#1104396451585#com.sap.jms.server.ServerClientAdapter##com.sap.jms.server.ServerClientAdapter#Guest#18####716257115a3f11d9b73b0011110e7b20#SAPEngine_Application_Thread[impl:3]_23##0#0#Error#1#/Applications/JMS#Plain###JMS internal error at ServerClientAdapter! JMS Service is not started!#
      My questions are
      1. how do we retrieve the date and time information from the above message? It seems that this message has date and time info because LogViewer shows the date and time based on the above message.
      2. how do we change the above date format to easier one
    like "YYYY:MM:DD:hh:mm:ss"? i know that it can be configured from the Visual Admin --> Services --> Log Configurator but i don't know the exact place for the trace file.
      Thanks.

    Hi Sejoon,
    I use the standalone Logviewer to read the log files. Works great.
    "If you have an SAP Web Application Server Java 6.20 or below you may also get a standalone_logviewer.zip file at the SAP Service Marketplace at service.sap.com/download &#8594; SAP NetWeaver &#8594; Release ‘04. In this case JDK version 1.3 or higher must be installed on the system. The java version must be same on the server and the client.
    In the SAP Web AS Java 6.30 installation a folder named logviewer_standalone can be found under: <path Of J2EE installation>/<SysID>/JC<nr>/j2ee/admin/logviewer_standalone. Verify that the batch file logviewer.bat is installed in the directory logviewer-standalone.
    (source -> http://help.sap.com/saphelp_nw04/helpdata/en/e4/540c404a435509e10000000a1550b0/frameset.htm)
    Best wishes,
    Noel

  • Cannot change date and time settings, popup "These files can't be opened: Your internet security settings prevented..."

    When I try to change my date and time settings I get a Windows Security popup that reads: "These files can't be opened.  Your Internet security settings prevented one or more files from being opened. C:\Windows\system32\rundll32.exe"
    I have Windows 7 64 bit.  I also have McAfee SecurityCenter installed.  I have tried turning off my firewall temporarily, but the problem persists.  I am not sure if it is some type of virus.  If anyone could give me some information
    as to what could be causing this I would appreciate it.  Thanks in advance.

    Hi,
    Perhaps, this issue is caused by a sign of corruption.
    Please try to use sfc/scannow to check the System Files.
    Also, You may refer to the following link.
    http://www.sevenforums.com/general-discussion/71526-cant-change-date-time-2.html 
    Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • How to concatenate date and time after a logical file in application server

    Hi Experts ,
    I have a requirement that goes like this : I have a job that runs parallelly with 10 different variants at the same time. Each job will write the data into a file in the application server, since the jobs run parallelly there is a chance of the file being over-written and hence we have decided to concatenate time and date at the end of the file so that the file does not get over-written. Can someone please let me know how to incorporate this change.
    Thanks & Regards,
    Balaji.K

    Hi Balaji.
    Use CONCATENATE functionality.
    A sample code snippet for your reference :-
    CONCATENATE  p_path  text-202 c_9 p_name c_9  lv_fcount  c_9  lv_date
                                                 c_9 lv_time  INTO  gv_file.
    Regards
    Abhii

  • How to eliminate date and time in image logging in vision express

    I am using vision express to capture a set number of images with inline processing. I am opting to log the images to a specified folder. However, the file names of the images have the date and time appended by default. Is there a way to eliminate the date and time in the images' file name? Please help.
    Solved!
    Go to Solution.

    Hi
    It may help if you paste your code and file to better understand what is it that you want to remove from the file. If you have the vision development module, you can certainly use the File VIs available within the vision tools utilities palette in LabVIEW to manipulate the way you save your files.
     http://www.ni.com/pdf/manuals/371007a.pdf (Page14)
     There is a good example code you can refer to within the following forum link:
    http://forums.ni.com/t5/LabVIEW/Labview-IMAQ-VI-for-capturing-images-and-saving-with-incremental/td-... 
    Also if you have access to the Vision Builder for Automated Inspection software, this application offers you that option:
    http://digital.ni.com/public.nsf/allkb/AE578D1C036084C0C1256EB4005EE687?OpenDocument
    Luis S
    Application Engineer
    National Instruments

  • How to get local file date and time ( 10g version )

    Hi,
    Would like to ask if there is any way to get the date and time of a local file. It seems that webutil does not have this function.
    And I want to use client_host ( dir c:\file.txt > c:\temp.txt ) and the read this file to get the file date.
    But the problem is the file date and time ( in the dir ) varies in different PCs.
    Best Regards,
    Ivan

    But the problem is the file date and time ( in the dir ) varies in different PCs.
    You mean the format of the date and time don't you?
    If so you maybe could create a java bean which does that for you using the lastModified Method of the File class.
    regards

  • Lost clips after adjusting date and time??

    I just updated to iMovie 10.0.3 and adjusted a buch of events in iMovie. All of them were incorrectly placed in wrong years when viewing in "by date" format. After adjusting the date and time with the event highlighted, I come to see either all or some (a clip of two) of the event is lost. The good old "missing file" is what I get in the playback window.
    I want to go on an anti-iMovie rant as this version has caused me NOTHING but headaches sence I installed it last year but it's MY fault for not having a spare iMovie 9.0 laying around so I cannot revert.
    Is there any solution here besides wiping my iMovie library clean and restoring from TM?
    Thanks.
    EDIT, I just looked in each event in the file system and the original media is not even there anymore but the library size hasnt changed. Wow. I don't get this at all.

    There seems to be a serious bug here that has been introduced with iMovie 10.0.3, and reported by several posters.   I would recommend you report it using Apple feedback at: http://www.apple.com/feedback/
    There is probably a particular infrequent set of conditions that have to exist for a clip to be deleted after using the adjust time and date function, but I've seen no posts yet that have clarified this.  Any further details you have would be worth reporting - for example did you change the date/time to earlier or later?  If only some date/time changed clips have disappeared, do they have anything in common, not shared by the clips which havn't disappeared? 
    You could restore your library from Time machine or, if there are not many lost clips it may be simpler and quicker s to re-import (or drag and drop) the clips from a backup and correct affected projects.  (Maybe you can change their date and time before importing them).
    As for the library size were the clips big enough to make a visible difference to the library total?
    Have you searched for the missing clips by name?
    Geoff.

Maybe you are looking for