How to take a value of the first record/occurrence and the last record?

Hi experts
Can anyone help me to tell me:
How to make IP can take a value of the first record/occurrence and the last record in CSV file?
I need to take the first and last to put StarTime of first record y StopTime of last record in the target file
This is my Original CSV File
20110820,220DNE0220,140.13 ,0.000 ,E01,0
20110820,240FGC4280,103.80 ,0.000 ,E01,0
20110821,220DNE0220,142.58 ,0.000 ,E01,0
20110821,240FGC4280,88.70 ,0.000 ,E01,0
20110822,220DNE0220,151.92 ,0.000 ,E01,0
20110822,240FGC4280,91.47 ,0.000 ,E01,0
Where:
The firts field is date.
I require it so my Target File
20110820,20110822,140.13 ,0.000 ,E01,0
20110820,20110822,103.80 ,0.000 ,E01,0
20110820,20110822,142.58 ,0.000 ,E01,0
20110820,20110822,88.70 ,0.000 ,E01,0
20110820,20110822,151.92 ,0.000 ,E01,0
20110820,20110822,91.47 ,0.000 ,E01,0
Thaks..

Hi lizcam,
A. Use FCC at sender side, it will convert CSV to XML like this
Input XML
<documentName>
<recordset>
<record>
  <Time>20110820</Time>
  <ID>220DNE0220</ID>
  <Quan>140.13</Quan>
  <Volume>0.000</Volume>
  <Auc>E01</Auc>
  <No>0</No>
</record>
</recordset>
</documentName>
Create a target DT like this
Output XML
<recordset>
<record>
  <StartTime>20110820</StartTime>
  <EndTime>20110822</EndTime>
  <Quan>140.13</Quan>
  <Volume>0.000</Volume>
  <Auc>E01</Auc>
  <No>0</No>
</record>
</recordset>
In MM,
1.Time -> CopyValue[0] -> StartTime
2.Time -> below UDF -> EndTime
3.Quan -> Quan
4.Volume -> Volume
5.Auc -> Auc
6.No -> No
UDF u2013 Execution type u2013 All values of Queue
public void getLastTimeValue(String[] inputEndTime, ResultList result, Container container) throws StreamTransformationException{
result.addValue(inputEndTime[inputEndTime.length-1]);
B. At receiver use again FCC to convert XML to CSV.
FYI. If you want to optimize more, you can use
1.globalContainer concept OR
2.u201CAttributes and Methodsu201D, declare are String. Store the EndTime using one UDF and write another UDF to retrieve it.
Regards,
Raghu_Vamsee

Similar Messages

  • There is any way to speed up the shipment Dispatched?! I had been order it in the first of Oct. and the planing for shipment time announce to be between  3 to 4 Weeks Delivers  24 Oct, 2012 - 30 Oct, 2012

    There is any way to speed up the shipment Dispatched?! I had placing in order in the first of Oct. and the planing for shipment time announce to be between  3 to 4 Weeks Delivers  24 Oct, 2012 - 30 Oct, 2012

    No

  • FM to know which is the first employee assigned and the last

    Is there any FM to know which is the first employee assigned and the last in a sap r/3 system?
    thanks.

    Hi robertoc20972128,
    What functionalities were you looking for specifically? JotForm has always been a leader in form building, but recently we've been making waves with some really exciting new features. Plus, we're making your switch from Adobe FormsCentral remarkably easy with our new import tool.
    A few key features with JotForm:
    Completely free for fewer than 100 submissions per month
    The most advanced Form Designer of any competitor
    A Theme Store that features something for everyone
    Includes skip logic
    Let me know if you have any questions or troubles!

  • How do I remove email address not in contact list.they drop down when in the "to"field trying to either fwd ,send or reply. How did they get there in the first place. And the edit key does not show in my contacts

    When sending email wether reply or fwd or new addresses drop down that not show in my contacts. How do,I remove them and how did they get there?  And the edit key notmshowing in my contacts.
    Someone else's reply  nothing that could be done short of clearing out all contacts and starting over. But these are not in my contacts!!!!!!!!!! So,that is not an answer

    So are you telling me that anyone I ever send n email to will appear in the drop down list but not in contacts? I don't have that many contacts on list so are younsayingmi would have to remove them all to remove the unwanted address in the drop down to go away? If that is not  please explain

  • How to get the first 6 digits and the last 4 digits in a string ?

    Greetings folks.
    A quick question and probably quite simple for a lot of guys out there.
    I have a string that could be anywhere between 15 to 20 characters ( Not a fixed length )
    I want it to be split into 3 segments.
    Segment 1 : 123456 ( 6 digits )
    Segment 2 : Everything else in the string from where Segment 1 ends (+1) and Segment 3 begins (-1).
    Segment 3 : 1234 ( 4 digits )Any help is appreciated !
    Thanks

    Hi,
    Try:
    SQL> with t as (
      2  select 2357248357953456217244 col from dual union all
      3  select 3490872049578204934532 col from dual
      4  )
      5  select substr(col, 1, 6) part1
      6  ,      substr(col, 7, length(col)-10 ) part2
      7  ,      substr(col, -4, length(col)) part3
      8  from  t;
    PART1  PART2                              PART
    235724 835795345621                       7244
    349087 204957820493                       4532
    2 rows selected.
    edit
    Hmz, I type way to slow in comparison to Alex and Blu ;)
    edit2
    Besides typing to slow, I also type too much:
      7  ,      substr(col, -4, length(col)) part3This is indeed enough:
      7  ,      substr(col, -4) part3Thanks for the reminder ;)
    Edited by: hoek on Jul 16, 2009 4:54 PM
    Edited by: hoek on Jul 16, 2009 4:57 PM

  • I bought a new album off of iTunes the wifi wasn't strong so I left my computer on as it was downloading and went to sleep. This morning I went to listen to the songs and some of the songs will only play the first 50 sec or the first minute? How do i fix?

    I bought a new album off of iTunes the wifi wasn't strong so I left my computer on as it was downloading and went to sleep. This morning I went to listen to the songs and some of the songs will only play the first 50 sec or the first minute? How do i fix it or refresh them so i can listen to them fully?
    How do I get the songs to fully play? Or can i refresh the songs and redownload them?

    See Repair security permissions for iTunes for Windows.
    tt2

  • I just purchased survivor season 11 to watch on my iphone4. I synced the first 4 episodes and I get an error message that episode 2 can not be played in my iphone4? How do I get it to play on my iPhone 4?

    I just purchased survivor season 11 to watch on my iphone4. I synced the first 4 episodes and I get an error message that episode 2 can not be played in my iphone4? How do I get it to play on my iPhone 4?

    In order to use ''nxm://'' links, Nexus Mod Manager must be installed and associated with the ''nxm'' protocol.
    * http://www.nexusmods.com/skyrim/mods/modmanager/
    In case of problems with this third-party program, please refer to its support forum:
    * http://forums.nexusmods.com/index.php?/forum/1413-nmm-code-development-chat

  • How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers?  Until very recently it did so.  Contacts on my macbook pro does show up this way.  I do have a mobile me account an

    How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers?  Until very recently
    it did so.  Contacts on my macbook pro does show up this way.  I do have a mobile me account and in the past syncing was no problem.  What setting has changed?

    The phone number format as well as the date language and format and the time format are controlled by the Region Format setting. Go to Settings > General >International > Region Format.  When you change a region format, you can go back one page (to International) and see an example of the date/time/phone number format that your selected region format will produce.

  • I have a first generation iPad and the screen went completely green on me and locked up.  I was able to unlock it, but now there's a green haze all over the screen.  Anyone know what the issue could be and how I can get it fixed?

    I have a first generation iPad and the screen went completely green on me and locked up.  I was able to unlock it, but now there's a green haze all over the screen.  Anyone know what the issue could be and how I can get it fixed?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Out-of-Warranty Service
         If you own an iPad that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will replace (Apple doesn't repair) your iPad with an iPad that is new or equivalent to new in both performance and reliability for the Out-of-Warranty Service fee listed below. (The replacement will most likely be a refurbished iPad in a brown box, however, it has a new screen, back and battery.)   
    iPad model
    Out-of-Warranty Service Fee
    iPad mini
    $219
    iPad 3rd, 4th generation
    $299
    iPad 2, iPad
    $249
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in US dollars and are subject to local tax.
    Certain damage is ineligible for out-of-warranty service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. However, an iPad that has failed due to contact with liquid may be eligible for out-of-warranty service. See http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipad
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
    You may can get the iPad repaired at 3rd party repair sources for less $, however, any remaining Apple warranty will be voided.
    iPad Repair & Screen Replacement Services
    http://www.ifixyouri.com/16-ipad-repairs
    RepairZoom iPad Repair
    http://www.repairzoom.com/ipad-repair.html
    Mission Repair
    http://www.missionrepair.com/Apple_iPad_Repair_Services_s/431.htm
    iGadgetResQ
    http://www.igadgetresq.com/ipad-repair/
     Cheers, Tom

  • TS1717 I just downloaded a song and it only plays the first 50 seconds and then moves to the next song in the list. How can I get it to play the rest of the song?

    I just downloaded a song and it only plays the first 50 seconds and then moves to the next song in the list. How can I get it to play the rest of the song?

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one. See the following document for instructions:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • How to search this value in oracle database to find out the table

    Hi expert,
    I know there is a value in oracle database, please show me how to search this value in oracle database to find out the table holding this value.
    Many Thanks,

    918440 wrote:
    Hi friends,
    this question is really practical, I already know there is value from application saved in database, I want to search the whole database to figure out which table the value is contained.write SQL that writes SQL to query every table.
    Handle:     918440
    Status Level:     Newbie
    Registered:     Mar 2, 2012
    Total Posts:     20
    Total Questions:     10 (10 unresolved)
    why do you waste time here when you NEVER get any answer to any question you post?

  • I have a 3rd gen iPod touch and I downloaded the most recent itunes, ever since I did, only the first song syncs to the ipod. As soon as it gets to the second, it xtill says its syncing. However, nothing happens. How do I fix this?

    I have a 3rd gen iPod touch and I downloaded the most recent itunes, ever since I did, only the first song syncs to the ipod. As soon as it gets to the second, it still says its syncing. However, nothing happens. How do I fix this? I have restored and updated the ipod. I have the new iTunes. I have restarted my computer checked the connection and everything.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

  • I want to know what I need and then how to take a pdf form I created in word and add the blue boxes so that anyone can type into my form

    I want to know what I need and then how to take a pdf form I created in word and add the blue boxes so that anyone can type into my form

    Hey john@adobe,
    Could you please specify how exactly have you created your form.
    You might need to have Acrobat installed on your computer to convert a word document to PDF.
    Do you have Acrobat installed? If yes, what version? If no, then please try using the trial version of Acrobat DC (latest version) and access its features:
    Download Adobe Acrobat free trial | Acrobat Pro DC
    Also, let me know what kind of blue boxes are you talking about.
    If you want others to edit your PDF form, then you need to make it a fillable form by choosing 'Form Editing' option from Tools pane.
    Let me know more on this so that I can help you out.
    Regards,
    Anubha

  • I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    You can type the email using what you set in preferences and then highlight the text and use command - minus sign (or command - + for larger) to reduce the size of the text.
    You can also type command - T and a window will appear allowing you to select fonts/sizes/color/ background highlight.
    The above works in Notes also. I haven't tried to do this in any other Apple application.
    For incoming emails, you can use the above to reduce font size, but I don't know of a way to permanently set the incoming font size to a default.

  • When connecting my iphone 4 to itunes for the first time i get the following message "cannot connect to this device because Apple Mobile Service is not started" what does this mean and how do I solve it?

    when connecting my iphone 4 to itunes for the first time i get the following message "cannot connect to this device because Apple Mobile Service is not started" what does this mean and how do I solve it?

    I'd start with the following document with that one:
    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

Maybe you are looking for

  • Having trouble running multiple instances of Firefox in XenDesktop 7.1

    We recently upgraded our Citrix environment to XenDesktop 7.1. We published Firefox, but only one user at a time can have the program open. When we try to run multiple sessions, we get this error message "Firefox is already running, but is not respon

  • PDF file compatibility between LiveCycle ES and Adobe Document Server V6.0

    We currently are using Adobe PDF Generator V7.0 and Adobe Document Server V6.0. We generate PDF files (using PDF generator V7.0) from office documents and then add a coversheet, to the generated PDF, and fill some form data using the Adobe Document S

  • StopALLSOUNDS() ??? is it not anymore?

    Hi all, i'll come straight to the point ! you have 5 buttons.swf and 1 HTML page. If you put these all 5 buttons into a HTML page and click on any button.swf it plays some audio. but if you hit any other button the first one doesn't stop eventhough a

  • Click on pdf file, I get windows (default)...

    Hi, every time I click on an adobe file, it won't open. The file opens with windows....If I try right click, I get an error message. How do I change an adobe file to be opened by the adobe software, not windows? Thanks in advance.

  • Exchange 2007 outlook anywhere rpcoverhttp failing

    Hello Everyone. I am testing outlook anywhere using the Exrca web site. i have exchange 2007 and windows server 2003. outlook autodiscover test is successful. but outlook connectivity is not. below are the error messages i am getting. your prompt res