File dynamically named & want to ignor some characters

Hi,
My ODI sources are files dynamically named with structure SR_10-04-2011-22-54.tx.gz --> SR_dd-mm-yyyy-hh24-mi.txt.gz , i'm trying to extract thoes files with ODIunzip so i created a package and passed a variable with that structure to the ODIunzip component, but as my files are generated by a platforme in a time, and the extraction begin later , the sysdate browth form Oracle by : select to_char(sysdate,'dd-mm-yyyy-hh24-mi') from dual ; to the variable is not conform with the file structure (minuts & seconds) so i'll bring just the dd-mm-yyyy form the sysdate, and what i need is to extract the file with that date , and ignor the seconds & minuts in the name of the file.
so Plz how can i do that?
or is there other way to extract this file?
thx a lot :)

Jython tutorials..
http://www.jython.org/docs/tutorial/indexprogress.html
I would also look at the blogs on http://odiexperts.com/, and Oracles own tutorials around ODI

Similar Messages

  • Dynamic text don't show some characters

    hi guys,
    i'm with a problem.. i have a dynamic text in my flash and
    it's reading vars from a txt file, but it does not read some
    portuguese character as ç Ç or accents such as ã
    â Ã Â...
    i tried to embendding theses characters on my dynamic text,
    choosing embed>all and it doesn't work...i already tried to
    write them on the text box and embed>auto fill but it still
    work!!
    am i missing something?
    help me,please!

    Well the characters you mentioned should be in most regular
    fonts as well. They are hardly exotic enough to warrant a complete
    unicode font. I'm guessing the key something else. Of course it
    depends upon what font you are using. But most fonts that come with
    a computer and regular software should have those characters.
    You mention you are reading the vars from a txt file. Try
    this in the testing environment. Test publish your FLA and once the
    text file has been read go up to the debug menu and List Variables.
    Some place there should be the contents of the text file. Do the
    characters show up correctly there?
    If they don't, then the problem is that Flash isn't reading
    the text file correctly and no font will be able to fix that. Be
    sure that you are saving your text file as UTF-8. Flash doesn't
    play so well with other formats and beyond the basic ASCII range in
    text files.
    If they do show up correctly in the List Variables. Then you
    know the problem is with your fonts. As I said most fonts should
    have those characters so post back if you need more help.

  • I want to import sql file but some recode i want to ignore it and go on

    i have sql file it contine all data of anuther table i want to import this data
    to new table but i want to ignore some record (don't insert it in table)

    Can you be a bit more precise. Is it an export of the table data which you now wish to import ( would be easier to have exported just the rows you required ).
    If it is a text file you plan to import using sql loader then you could add a contraint on the database to discard those rows.
    Alternatively you may need to have a holding table to delete the records not required before you add them to the new table.

  • I want triger to import sql file but some recode i want to ignore it and go

    i have sql file it contine all data of anuther table i want to import this data
    to new table but i want to ignore some record (don't insert it in table)

    place a copy of this post in the database-forum. they may have faster an answer then we have it.

  • Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files but still have them on the TC for future reference..

    Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files on iMac 20inch but still have them on the TC for future reference..eg some movies on iTunes. I want to directly save them on the drive so I can delete them from iTunes and gain some storage. (Ps on iMac 20 inch (it's almost full - 320 GB) when I enter time machine, a tab comes up on finder which reads "Time Machine backups" it's able to be ejected like a disc or a connected device. On the iMac 20 inch, I dragged some files onto there as if using it like a hard drive. Is this the correct method? Then I went to my 27inch iMac and saw the "Time Machine Backups" hoping to see the files I dragged from the 20inch iMac. But the files were not there except a folder that said "Backups.backupdb". Can someone help me?

    It's not a good idea to use a network disk for both Time Machine backups and other things.  By design Time Machine will eventually consume all the space on its output disk, which will then cause problem for your other files.  I'd store those other files on an external disk connected to the Time Capsule.  The problem with that is that Time Machine will only back up files that are local to your Mac.  That means that you'll only have one copy of the files on or attached to your Time Capsule.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • IPod classic displays 'No music' after sync, HDD problem? Geschiedenis • Verwijder  So recently I synced my iPod Classic 160 GB like I did so many times and when I wanted to play some music afterwards it couldn't find any files on the iPod anymore. H

    So recently I synced my iPod Classic 160 GB like I did so many times and when I wanted to play some music afterwards it couldn’t find any files on the iPod anymore. However when you look in the settings it displays that ~roughly 90 GB free space is available. Seen the fact that I had about 60 gigs of music this doesn’t seem like a coincidence and I think my music is still somewhere on the ipod but the HDD isn’t recognizing it anymore.
    I’ve tried resetting it, and resetting it to factory settings, which didn’t work. When connected to a desktop it won’t be recognized by iTunes, it displays an error message that the iPod cannot be read and that I have to reset it to factory settings.
    I’ve spent some time researching this problem yesterday and I ran into a myriad of vaguely similar problems didn’t really offer any help. Currently I’m thinking that formatting the iPod might work, and restoring the software afterwards. However this is a rather bold strategy so I’d like to consult you here first.
    Thanks in advance!

    Hi turingtest2,
    Thank you for the info, with formatting my iPod I managed to connect it to iTunes again.
    However..in the page you linked to there is a section about how transferring large amounts of data can dump your library. That seems to be the problem in this case. It won't even allow me to transfer more than 2 gigabytes of music per sync, if I go higher it will dump everything again. Having over >60 GB of music in my library, this is disastrous to say the least.
    Do you think that there is any other solution besides the method you mentioned involving Smart Playlists?

  • I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it show

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

  • I have an ipad version 5.1.1. i have multiple albums in the ipad and i want to transfer some photos to my computer but when i open the ipad files via "computer" i can only see picture from one of the albums.what should i do?

    i have an ipad version 5.1.1. i have multiple albums in the ipad and i want to transfer some photos to my computer but when i open the ipad files via "computer" i can only see pictures from one of the albums.what should i do?

    You can only import photos from the camera roll into the computer. Is that the album that you are seeing?
    Any albums that you create on the device itself (the iPad that is) cannot be transferred to your computer. iPad created albums do not contain copies of your photos but merely pointers to those photos so they do not actually exist in those albums.

  • I have created some music tracks as aiff files which I want to load onto my iPod Shuffle 4th Generation, but it won't play them - it just bleeps at me. I have changed them to AAC which works - what settings do I need to use to make aiffs work?

    I have created some music tracks as aiff files which I want to load onto my iPod Shuffle 4th Generation, but it won't play them - it just bleeps at me. I have changed them to AAC which works but would rather use aiffs. Can anyone tell me what settings do I need to use to make aiffs work? The info on the iPod says that it accepts aiff files!!

    I have created some music tracks as aiff files which I want to load onto my iPod Shuffle 4th Generation, but it won't play them - it just bleeps at me. I have changed them to AAC which works but would rather use aiffs. Can anyone tell me what settings do I need to use to make aiffs work? The info on the iPod says that it accepts aiff files!!

  • How to ignore some fields on Receiver File?

    Hi folks,
    I have this inbound structure example:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ObrasAdjud_Out xmlns:ns0="http://pt.edp/r3/obrasadjudicadas">
      <codforn>123543</codforn>
      <numdoc>000003</numdoc>
      <tipodoc>CAO</tipodoc>
      <encoding_scheme>UTF-8</encoding_scheme>
      <filetype>pdf</filetype>
      <filedata>01010101001001</filedata>
    </ns0:MT_ObrasAdjud_Out>
    Using File Conversion with my Receiver File Adapter I want to convert this xml file to a flat file, but only using the element <b><filedata></b> and ignore the others. However, I also need the others elements to use as variable substitution.
    Anybody knows how to do it?
    Thanks in Advance,
    Ricardo.

    Hi Ricardo,
    >>>>Using adapter specific attributes I can use the elements of source message to do it?
    or course!!! that's the idea and you do it all in message mapping
    (very small advanced function as shown in many blogs)
    >>>>But using variable substitution, I can’t ignore those fields with file conversion?
    don't know I stopped working with variable substitution
    as soon as I learned about adapter specific attributes
    as they are sooo much better
    >>>>I can do a map excluding all the others elements for target message, my target message will be one element <filedata>.
    that's the main idea
    Regards,
    michal

  • Backup DB with dynamic sql - want to substitute in dbname and disk file path

    Re: Backup DB with dynamic sql - want to substitute in dbname and disk file path
    Hope I can explain this. Below is a small snippet of code. I want to set @SQLTemplate_TSQL once at the top of the script and then execute the SET @SQLCommand and sp_executesql in a loop that reads a list of databases. It all works, except for the
    BACKUP DATABASE. Right now it evaluates when the SET @SQLTemplate_TSQL is evaluated. I want it to evaluate when it is executed. I want the DB_NAME() of the USE @dbname.
    -- change @dbname and @dbbackuppath
    DECLARE @SQLCommand NVARCHAR(MAX)
    DECLARE @SQLTemplate_TSQL NVARCHAR(MAX)
    DECLARE @dbname varchar(128) = 'Bank04'
    -- one time setting of @SQLTemplate_TSQL
    set @SQLTemplate_TSQL =
    DECLARE @dbbackuppath varchar(128) = ''''d:\backups''''
    IF RIGHT(@dbbackuppath, 1) <> ''''\''''
    SET @dbbackuppath = @dbbackuppath + ''''\''''
    SET @dbbackuppath = @dbbackuppath + DB_Name() + ''''.bak''''
    PRINT @dbbackuppath
    BACKUP DATABASE ' + DB_NAME() + ' to DISK=''' + QUOTENAME(@dbbackuppath, CHAR(39)) + '''
    -- Execute this several times over different databases
    SET @SQLCommand = '
    USE ' + QUOTENAME(@dbname) + ';
    EXEC(''' + @SQLTemplate_TSQL + ''') '
    PRINT @SQLCommand
    EXECUTE sp_executesql @SQLCommand

    Here is a stripped down version of my code. Someone writes a script. I then take the script and seperate it by GO statement block. Each GO block gets its own row into the
    #SQLTemplate_TSQL. I then replace single quote with 4 quotes and run it. Then I run against my list of databases. I am unable to get the BACKUP DATA base to work with this model.
    Run scripts against multiple databases.sql
    Do a FIND on "CHANGE THIS" to see the databases returned from the SELECT statement
    DECLARE @DatabaseName varchar(128)
    DECLARE @SQLCommand NVARCHAR(MAX)
    DECLARE @SQLTemplate_Seq INT
    DECLARE @SQLTemplate_OperationDesc NVARCHAR(128)
    DECLARE @SQLTemplate_TSQL NVARCHAR(MAX)
    DECLARE @SQLTemplate_Diagnostics INT
    DECLARE @Note VARCHAR(500)
    IF OBJECT_ID('tempdb..#SQLTemplate_TSQL') IS NOT NULL
    DROP TABLE #SQLTemplate_TSQL
    CREATE TABLE [dbo].[#SQLTemplate_TSQL](
    [SQLTemplate_RecID] [int] Identity,
    [SQLTemplate_ID] [int] NOT NULL,
    [SQLTemplate_Seq] [int] NOT NULL,
    [SQLTemplate_OperationDesc] [varchar](128) NOT NULL,
    [SQLTemplate_TSQL] [varchar](max) NOT NULL,
    [SQLTemplate_Diagnostics] [int] NOT NULL,
    [SQLTemplate_Enabled] [int] NOT NULL)
    DELETE FROM #SQLTemplate_TSQL WHERE SQLTemplate_Seq = 65
    DECLARE @SeqID INT
    SELECT @SeqID = MAX(SQLTemplate_ID) FROM #SQLTemplate_TSQL
    SET @SeqID = ISNULL(@SeqID,0)
    SET @SeqID = @SeqID + 1
    INSERT INTO #SQLTemplate_TSQL VALUES(@SeqID ,65,@SeqID,'
    SELECT * FROM ifs_config
    ',1,1)
    SET @SeqID = @SeqID + 1
    INSERT INTO #SQLTemplate_TSQL VALUES(@SeqID ,65,@SeqID,'
    DECLARE @HistoryODS INT
    SET @HistoryODS = 1
    SELECT * FROM ifs_tablelist WHERE HistoryODS = @HistoryODS and Tablename like ''''%HIST%''''
    ',1,1)
    -- Setup Cursor to Loop through each of the Prior Period databases
    DECLARE db_cursor CURSOR FOR
    SELECT [Database Name] --<<<<<<<< CHANGE THIS SELECT statement to select DBs >>>>>>
    FROM v_ifs_PPODSDBInfo_Curr
    WHERE [Database Frequency] <> 'CURRENT'
    ORDER BY [Database Frequency], [Database Number]
    OPEN db_cursor
    FETCH NEXT FROM db_cursor INTO @DatabaseName
    -- Loop through each of the databases
    WHILE @@FETCH_STATUS = 0
    BEGIN
    -- Setup Cursor to Loop through each of the SQL Statements
    DECLARE #SQLTemplate_TSQL_cursor CURSOR FOR
    SELECT [SQLTemplate_TSQL], [SQLTemplate_OperationDesc], [SQLTemplate_Seq], [SQLTemplate_Diagnostics]
    FROM #SQLTemplate_TSQL
    WHERE [SQLTemplate_Enabled] = 1 AND SQLTemplate_Seq = 65
    ORDER BY SQLTemplate_ID
    OPEN #SQLTemplate_TSQL_cursor
    FETCH NEXT FROM #SQLTemplate_TSQL_cursor INTO @SQLTemplate_TSQL, @SQLTemplate_OperationDesc, @SQLTemplate_Seq, @SQLTemplate_Diagnostics
    -- Loop through each of the SQL statements
    WHILE @@FETCH_STATUS = 0
    BEGIN
    SET @SQLCommand = '
    USE ' + QUOTENAME(@Databasename) + ';
    EXEC(''' + @SQLTemplate_TSQL + ''') '
    EXECUTE sp_executesql @SQLCommand
    FETCH NEXT FROM #SQLTemplate_TSQL_cursor INTO @SQLTemplate_TSQL, @SQLTemplate_OperationDesc, @SQLTemplate_Seq, @SQLTemplate_Diagnostics
    END
    CLOSE #SQLTemplate_TSQL_cursor
    DEALLOCATE #SQLTemplate_TSQL_cursor
    FETCH NEXT FROM db_cursor INTO @DatabaseName
    END
    CLOSE db_cursor
    DEALLOCATE db_cursor

  • Downloads - I want to open some PDFs/other file types from the internet but not have to save them; I can't figure out how to view them and close them without having to save them first.

    Downloads - I want to open some PDFs/other file types from the internet but not have to save them. I can't figure out how to view them and close them without having to save them first. When I click on a file, the downloads box opens and depending on the setting, it auto saves the file or asks me where to save the file. What if I don't want to save it anywhere, I just want to view it and close it?

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

  • When exporting from Photos, the panel for naming the file no longer shows up. Why and how do I change so I can name the file what I want?

    When exporting from Photos, the panel for naming the file no longer shows up. Why and how do I change so I can name the file what I want?

    You don't need to maintain all versions of the upgrade chain, but many of us do in case we need to work on a legacy file. If you want to rmove a version, though, ti should be done BEFORE installing the later one. Just reinstall CS5 and things should get back to normal.

  • HT204085 I want to add some of my photos as well as some excel files in iCloud. how can i do so?

    I want to put some excel files which are in my apple computer in Icloud how can I do so?

    Go to System Preferences > iCloud and make sure you have photostream and documents and data turned on.
    Then for the Excel documents, read: http://support.apple.com/kb/PH13764?viewlocale=en_US
    For photos, open iPhoto, and make sure Shared shows iCloud, then place the photos in the Shared library.

  • I want to upload some files from mobile phone to webserver? how? thanks!

    I want to upload some files from mobile phone to webserver? how? thanks!

    The vibrating phone was created in Java. Some british company is selling the program to women for on the go fun. I'm pretty sure the actual code in the program is only a few lines.
    Oh... you were talking to the other guy. He wants a java app to upload something to a JSP or database server.

Maybe you are looking for

  • Problem with JSR188 and Application Server 8.2

    Hi there, I'm trying to integrate a CC/PP profile in the SOAP's Header in order to apply adaptation logic in a Web Service. An error occurs when the service tries to validate the client's Profile. To be more specific, when the line: ProfileFactory pf

  • About F-28 transaction

    Hi all, I want to send e-mail once accounting document get posted through F-28 transaction. Can anybody tells me hows it possible? if you know user-exit for that then please tell me Thanks, Siddharth

  • Syntax to resize datafile in 10g

    syntax to resize datafile in 10g

  • How to assign clients to alternate management point

    Hi Guys Does anyone know how to reassign clients to another management point on the same site. We have 3 seperate locations connected by a vpn, our main site has a primary site server with the management point role and the other 2 locations are just

  • Background image show  colspan="1"  rowspan ="1" align="right valign ='midd

    My APEX version 4.0.2 Oracle Version 11g 1. I created Background Image for Text Box . 2. I gave Code in HTML CELL ATTRIBUTES     as below                  <span style="width:533px; height:59px;background-image:url('/i/images/mypicture.png');"></span>