Regarding file append

Hi Guys,
I have a requirement to append a file from 2 files.
I mean, i have 2 files at my source and i need that 2 files as one file in target.
so iam using 2 sender communication channels to pick 2 files from source and 2 communication channels for target. one receiver channel to create a file and another communication channel to append to the first file.
file A
file B from Source
and File C in the receiver
channel1 to pick file A source file name "A.txt"
channel2 to pick file B source file name "B.txt"
channel3 to create file C target file name "C.txt"
channel4 to append to fileC target file name "C.txt" with append mode.
After all the efforts i found file B is not appending to file C.
Note: all the 3 files have same structure.
I dont want to use BPM
Guys, Please suggest. Productive solution is highly appreciated..
Thanks,
Madhu

Hello Madhu,
What is the criteria (Processing Sequence) to pickup the files from Source Directory? (By Name or Date)
Select accordingly in the sender File CC with wild card entry (*.txt) for File Name convention.
Also In the Sender File CC, use EOIO as QOS which ensures the correct order of execution.
In the receiver CC, use Append as file construction mode.
So one File Sender CC & one File Receiver CC required is enough for your requiremet.
Thanks,
Gujjeit.
Edited by: Praveen Gujjeti on Feb 2, 2009 10:53 AM

Similar Messages

  • Log4j file appender

    Hi,
    I am using log4j for logging. I am working on a huge application and there would be lots of logs each day. Thereby it is requried that the log files be stored and renamed each day. The date is appended to the log file and that day's log file is stored. The logs start writing afresh each day. The problem here is that at times the application simply starts logging to the previous day's log file, for a while, and then starts writing back to the current day's file again. I am not able to figure out what goes wrong and when. The application is running on weblogic. Can anybody please help? The log4j properties file is here....
    # DO NOT MODIFY
    log4j.categoryFactory=com.myapp.util.logger.LoggerCategoryFactory
    log4j.rootCategory=INFO,DISABLED
    # EVENTS
    log4j.category.nmy.STATE=INFO,0,DAY,OBS
    log4j.category.nmy.EXCEPTION=DEBUG,10,DAY
    log4j.category.nmy.SESSION=INFO,0,DAY
    log4j.category.nmy.REQUEST=INFO,0,DAY
    log4j.category.nmy.MESSAGE=INFO,0,DAY
    log4j.category.nmy.OBJECT=INFO,0,DAY
    log4j.category.nmy.DATA=INFO,0,DAY
    log4j.category.nmy.NONE=DEBUG,5,DAY
    # DO NOT MODIFY
    log4j.appender.DISABLED=com.myapp.util.logger.NullAppender
    # STANDARD OUTPUT DRIVER SETTINGS
    log4j.appender.CON=org.apache.log4j.ConsoleAppender
    log4j.appender.CON.Target=System.out
    log4j.appender.CON.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.CON.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    # ROLLING FILE OUTPUT DRIVER SETTINGS
    log4j.appender.ROL=org.apache.log4j.RollingFileAppender
    log4j.appender.ROL.File=/var/opt/apps/myapp/var/logs/application.log
    log4j.appender.ROL.MaxFileSize=4000KB
    log4j.appender.ROL.MaxBackupIndex=5
    log4j.appender.ROL.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.ROL.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    # DAILY OUTPUT DRIVER SETTINGS
    log4j.appender.DAY=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.DAY.File=/var/opt/apps/myapp/var/logs/daily_application.log
    log4j.appender.DAY.DatePattern='.'yyyy-MM-dd
    log4j.appender.DAY.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.DAY.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    # ===========================================================================
    # SIMPLE FILE OUTPUT DRIVER SETTINGS WITH DEBUG_INFO
    log4j.appender.FIL=org.apache.log4j.FileAppender
    log4j.appender.FIL.File=/var/opt/apps/myapp/var/logs/fil_application.log
    log4j.appender.FIL.Append=false
    log4j.appender.FIL.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.FIL.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    # ===========================================================================
    # DAILY OBSERVATION FILE OUTPUT DRIVER SETTINGS
    log4j.appender.OBS=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.OBS.File=/var/opt/apps/myapp/var/logs/obslog.out
    log4j.appender.OBS.DatePattern=.yyyyMMdd
    log4j.appender.OBS.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.OBS.layout.ConversionPattern={DESCRIPTION}
    # log4j.appender.OBS.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    Regards...

    I found from the log4j 1.3 API javadoc, the DailyRollingFileAppender is deprecated. They use the RollingFileAppender instead and give one sample .
    Hope it helps!
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration>
    <log4j:configuration debug="true">
    <appender name="ROLL" class="org.apache.log4j.rolling.RollingFileAppender">
    <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
    <param name="FileNamePattern" value="/wombat/foo.%d{yyyy-MM}.gz"/>
    </rollingPolicy>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%c{1} - %m%n"/>
    </layout>
    </appender>
    <root">
    <appender-ref ref="ROLL"/>
    </root>
    </log4j:configuration>

  • OSB File append

    I have setup a File protocol based Business Service in OSB. This Business Service is called by a Proxy Service after setting the file name in the outbound transport header and assigning the text to be written to the file. When executed, the file is successfully created. When the proxy service is executed again, a new file is created. I would like the data to be appended to the existing file. How do we achieve this?
    I know there is a property - 'Append' which should be set to true in case of file adapters. I tried setting the outbound transport header to 'Append', 'append', 'jca.file.append', 'jca.file.Append'. None of these seem to help.

    Thanks for the link. That really helped!
    However, though the file is created by the file adapter, the contents are missing. While configuring the File Adapter in JDev, I defined the following XSD as the message for the write operation.
    <xsd:element name="log">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="logMessage" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    And I am sending the following in the SOAP Request...
    <log:log xmlns:log="http://myNS/LogFileWriter">
    <log:logMessage>My Log message...</log:logMessage>
    </log:log>
    I expect the value 'My Log message...' to be written to the file. However, it is always empty.

  • Regarding file content conversion

    Re: regarding file content conversion  
    Posted: Sep 25, 2008 11:30 AM    in response to: kummari     Edit      E-mail this message      Reply 
    i tried.but m getting this error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns1:MT_HyperionReport' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns1:MT_HyperionReport' found in document', probably configuration error in file adapter (XML parser error)'
    Actually my input structure is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ECCReport xmlns:ns0="urn:syngenta.com:i_ecc_erp:se:global:fi_reports:common">
    <ACTFiscalyear>siva</ACTFiscalyear>
    <StartPeriod>44</StartPeriod>
    <EndPeriod>55</EndPeriod>
    <LineItems>
    <ReportingUnit>rama</ReportingUnit>
    <ProfitCentre>844</ProfitCentre>
    <Amount>855</Amount>
    </LineItems>
    </ns0:MT_ECCReport>
    and in FCC i wrote below these three lines:
    LineItems.fieldSeparator 'nl'
    MT_HyperionReport.fieldSeparator 'nl'
    LineItems.fieldSeparator 'nl'
    So please tell me what is wrong in this

    MT_HyperionReport is your message type and this represents the top level node of your message. Below this you have your records. You have MT_HyperionReport as a record type which is clearly not going to work.
    In the content conversion parameters section the following fields should be filled, you dont need to specify Recordset if your XML structure does not include this node see SAPhelp example:
    Document Name: MT_HyperionReport
    Document Namespace: <look at your message type in the designer>
    Recordset Structure: Record_type1,<occurrence 1..>, Record_type2,<occurrence 1..>
    In the parameter box:
    Record_type1.fieldSeparator
    Record_type1.fieldNames
    ignoreRecordsetName value true
    Record_type2...
    The SAP help on this is pretty clear and comprehensive...
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm

  • Query regarding file content conversion using file adapter

    Hi All
    I have a question regarding file content conversion in file adapter.
    I have a file coming in the following format.
    AA,111,222,333
    BB,444,555,666
    CC,777,888,999
    My incoming message structure has a hierarchy. The CC record is a structure part of BB record. BB record is a structure part of AA record. It is like this:
    AA,111,222,333
    <<BB,444,555,666>>
    <<<<CC,777,888,999>>>>
    After file content conversion, in the resulted xml, i am getting a flat hierarchy instead of nested hierarchy.
    Is it possible to get a nested hierarchy as a result of file content conversion?
    Please let me know
    Thanks
    Chandra

    Hi Udo
    According to your suggestion, I am trying to use mapping.
    I am getting a flat file and i am reading it.
    This is my source structure:
    AA,11,22,33
    BB,44,55,66
    CC,77,88,99
    This is my required targer structure:
    AA,11,22,33
    <<BB,44,55,66>>
    <<<<CC,77,88,99>>>>
    To explain this, BB record can have multiple records of CC records.
    AA records can have multiple records of BB record.
    I am using removecontext node function.
    CC (Source)  (removecontext)-> CC (target structure)
    But here, when i rightclick on source CC field in the mapping editor, i cannot see any other context except root node. So, how can i proceed here??
    Many Thanks
    Chandra

  • Regarding file export

    Hi,
    I have some problem regarding file export from java to some word or excel. I have a Jtable in which I fill the data dynamically now I wan't to get that data into an excel sheet with just one click. Regarding .doc I am writing the file but how to do in excel sheet having columns defined.
    Best Regards,
    Sreedhar

    A good Java API for creating or accessing Excel files is POI-HSSF: http://jakarta.apache.org/poi/hssf/index.html

  • ODI - IKM SQL to File Append - Header not Generated

    I'm using ODI IKM SQL to File Append to create a text file, but the header is not being generated. And the GENERATE_HEADER is set to Yes. The file is Tab delimited and the Heading (number of lines) is set to 1.
    Seems to only be an issue with HFM files coming from the Unix server.
    Any suggestions?
    Thanks, Mike

    Ok, getting the following error in step 6 - Integration - HFM_EA_Translate - Insert Column Headers
    java.lang.NumberFormatException
         at java.math.BigDecimal.<init>(BigDecimal.java:459)
         at java.math.BigDecimal.<init>(BigDecimal.java:728)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.addBatch(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:662)
    The last two columns in the file are numeric which seems to be causing the issue. Will change formatting for the two columns (String, Numeric, etc.) to see if I can resolve the header issue.
    Thanks,
    Mike

  • File append

    Hi !
    I have a file log.txt. I want to add data to this file at the begenning without deleting the previously present data in log.txt.
    How can I do this ?

    Append to the end of this file:
    boolean append = true;
    FileOutputStream out = new FileOutputStream(file, append);The data isn't added to the beginning of the file, you say? Look at the file from a different point of view, says I.
    And if you are logging, there are better ways to do it: {color:orange}http://logging.apache.org/log4j/1.2/index.html{color}

  • Log4j Logger and File appender

    I have a problem with my logger file. It look like this :
    # appender "file" writes to a file
    log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.file.File=src/logs/test.log
    log4j.appender.file.layout=org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
    log4j.appender.file.threshold=DEBUG
    The problem is when I write to the logfile test.log. The contents of the previous "run" is still there. What I want to achieve, is whenever I run my application, only the content of that "run" should be present on the logfile.
    What to add ?
    Cheers !

    It works fine now. I only had to add the line :
    log4j.appender.file.append=false
    so now it look like :
    # appender "file" writes to a file
    log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.file.File=src/logs/babel.log
    log4j.appender.file.append=false
    log4j.appender.file.layout=org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
    log4j.appender.file.threshold=DEBUG

  • Several questions regarding File Vault

    Hi!
    I have several questions regarding File Vault - right now I'm using Mac OS 10.4.8
    1.: The battery lock of my iBook is defect thus it happens from time to time that while transporting it the battery drops out while the laptop is sleeping. What happens with the File Vault-disk image?
    2.: I want to (have to ) set up my Intel iMac again. The installer-CD I have will bring it back to 10.4.6
    AFAIK the data format used for File Vault since 10.4.7 is version 2. What happens if I encrypt my stuff now (10.4.8 - thus version 2), back it up to my backup disc, install a new system (10.4.6 - therefore version 1) and want to access my data via Migration Manager (don't want to use archive and install)?
    3.: How do I actually do a backup of my data while the system is running? The backup should be encrypted as well.
    I use the demo-version of SuperDuper for backing up my system because with it I can ensure that I have a complete bootable backup of my running system.
    Thanks for your answers in advance
    ibook g4 12" 1.2 GHz 768 MB RAM / Intel iMac Core 2 Duo 17" 2.0 GHz 2GB RAM   Mac OS X (10.4.8)  

    Parker,
    You said:1. If it did, Apple would not use FileVault, as everyones computer will have a battery problem once in their life, and Apple would lose buisness from angry people who lost all of their data.I have seen enough reports of data loss with FileVault that I feel compelled to dispute your statement.
    In Data corruption and loss: causes and avoidance, Dr. Smoke writes...If your data-security needs demand FileVault, you should backup your encrypted Home folder regularly, preferably daily. Like any hard drive or disk image, a Home folder protected by FileVault — an encrypted, sparse disk image — does not respond well to the causes of data corruption...Loss of power definitely is a cause of data corruption.
    For Niels....,
    An Unencrypted Look at FileVault, by François Joseph de Kermadec is an excellent discussion of the features, pitfalls, and cautions regarding Filevault.
    Although the article discusses Panther and is dated 12/19/2003, the concepts as they apply Tiger have not changed.
    The cautions and warnings are prominent in any of the Apple Knowledge Base articles referring to the use of FileVault. If a user is unfamiliar with any aspect of FileVault, it should not in my opinion be activated.
    As good as FileVault is in protecting your sensitive data, it also presents the danger of locking up your files in an irretrievable ball of one's and zero's. Backups are critical. You must ensure that you have a comprehensive backup plan. Backup and Recovery, by Dr. Smoke is a fine example of what you need to consider.
    ;~)

  • Multiple flat files appended, is file locked until all processed?

    Hi All,
    Have a scenario in place where we are collecting multiple flat files on ECC and using append mode on the receiver file adapter to create a single file for final output. We are only interested in submitting the output to it's target after all files sent to PI have been appended.
    Does PI 7.0 lock the appended file until all files have been appended so I am sure I end up with a complete single file on output? If not, what are my options to ensure a completely appended file is output? Would it be a viable option to pass the appending file through another sender file adapter using 'msecs to wait before modification check'?
    Thanks!
    Don
    Edited by: donald.meredith on Dec 1, 2011 2:31 PM

    How many files are you collecting from ECC and appending at receiver side and how much time it is taking to complete the process?
    if its possible to schedule your business to read data from FTP after completing append then no worries, else sometimes it creates trouble.
    The option you mentioned is reliable one , but you ended up creating one more interface.
    Regards,
    Raj

  • Log Entries in Table CDPOS with a Z File Append in VBAK

    Hi
      I'm trying to log changes of a new field appended in VBAK in table CDPOS, I already marked the data element of this new field with the checkbox for changes, but when i make some changes in VA02 on this new file, i can't see the changes in the  modifications log.
    Do i have to do any other thing in order to see the changes of this new field ??.
    Regards
    Soraya

    Hi,
    I think for logging the changes the table should have the <b>check box  Log data changes under technical settings</b> checked.This check box is not selected for VBAK. Selecting  the Change document checkbox at the data element level will mark that field in the table for logging.
    I Assume in order to log changes both the check boxes at table level and dataelement level need to be selected.
    Hope this helps.

  • Regarding File being written to Appl server

    Hi Pals,
    Can we restrict the size of the file that is being written to the application server through Open dataset or any other command.
    We have a report which selects data based on a given time period.
    The problem we are facing is that even for a period of 1 month the data file written to the appl server is around <b>14-15 GB</b>. Hence we have been asked to split the file that is being written.
    However the other option of reducing the time period of seelction has been ruled out by our clients.
    Please suggest.
    Thanks in advance.
    Rgrds,
    Gayathri N.

    Hi ,
    try like this
          i_maximum_lines = 99999999.
          block_size = 100000.
    do.
          refresh <l_table>.
          v_filect = v_filect + 1.
          write v_filect to v_filecount left-justified.
          fetch next cursor i_cursor
                     appending corresponding fields of table
    *                 <l_table>  PACKAGE SIZE i_maximum_lines.
                      <l_table>  package size block_size.
          if sy-subrc ne 0.
          e_table = i_table-tabname.
          e_dbcnt = sy-dbcnt.
          clear cursor_flag.
          close cursor i_cursor.
          exit.
          endif.
          delta_dbcnt = sy-dbcnt + old_dbcnt.
          old_dbcnt   = sy-dbcnt.
    Regards
    Prabhu

  • Critical issue regarding file to website interface

    hi all,
      I am working on one scenario in which sender is an File. and receiver is an HTML page(actually it is a website) which responds according on the input data.
    when i visited that site I came to know that there are three fields. as follows...
    username: 
    Password:
    File:                        Browse
                  POST
    Actually file name contains the contents of the file feilds which varies for every transaction.
    When i manually put username password and location of the file(using Browse tab) in the website page, I got the response file.
    But when I put just file name I am unable to click POST tab.
    My problem is:--
    Is this thing is possible using XI.
    I tried using HTTP and put all three inputs in the header fields of receiver HTTP channel.
    But i didn't get the response.
    Can anybody tell me any other solution. Since it is critical requirment for me. so Plzz respond ASAP.
    Solution will be awarded
    Thanks
    Jaideep jain

    Hi,
    you said that the target system is a website...so can i say that it is a WebService exposed by some XYZ system...if yes then why dont you opt for the receiver SOAP channel....the use of SOAP channel is in such cases only (source: http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm )
    Also if you have any doubt regarding what kind of adapter to use please refer this discussion: Re: Can't select Adapter Type during creating communication channel.
    Adding one more link:
    Difference between SOAP and Http Sender
    Regarding the target url, u need to use the one which you can see after you hit the Post button.
    In the receiver SOAP channel, under the Target URL option u can find the User Authentication details...enter the user details who is authorised to post/upload the document.
    Regards,
    Abhishek.

  • I Need Information Regarding File Upload?

    Where can I get information regarding the File uploading packages in Portal. Is there a specification I can get a hold of. I know such a package exists, as it is used by portal itself. I just need to know where I can get hold of information as to what it is called and how to invoke it.

    Suraj,
    The APIs to do file upload are not public as of yet. We are looking into the feature right now. Currently, the only supported method of file upload is using the Web Interface.
    You may find more information about this in the 9iAs Portal forum
    Sue

Maybe you are looking for

  • Problem with display of Flash 3D sequence

    I've created an swf from an animation taking advantage of the new 3d tool in Flash Cs4 (different objects with different z-values). As I import it into Adobe Premiere Cs4, the 3d part of the file basically does not appear, all the animations I've cre

  • Why Can't I install Adobe Flash Player? Please Help!

    I have Windows 7 and my laptop is fairly new. I want to install Adobe Flash Player because when i go to Youtube it just shows a black screen for videos, Facebook doesn't load completely, when i go to google images, If i type in the most basic search

  • "Program was terminated by signal 6" in R12

    Hi All, Purchasing report is completed with error of signal 6. Please find the attached below log file details. Please advise how to resolve this issue in R12. XXPRPOP module: Printed Purchase Order Report +-------------------------------------------

  • HP Photosmart 7960 Not Shown in Print Drivers

    I finally pulled the trigger and bought a MacBook Pro last Monday. I have a lot to learn having come from a PC background. I have an HP Photosmart 7960 printer hard-wired to a desktop PC running Windows XP. I use a wireless network with a Linksys rou

  • Why is Safari not displaying some pages correctly?

    Safari seems to be messing up again.  Had this problem quite a while ago.  It's not displaying some pages correctly. Notice the 2 enclosed screen shots.  I went to purchase something (no personal info in the jpgs)  Notice the W-Safari.  Little trash