Blank Line in output file

Hi,
I have a requirement for a blank line in between the Static data and dynamic values part as shown below
Flag='Yes'
Ready='No'
Column1     Column2      Column3
a                 b                 c
d                 e                  f
g                 h                  i
Here after  "Ready='No'" there is a  blank line before the starting of Column1. I want to achieve that through xsd. I have tried with the nillable='true' , its not working.I am using SOA 11.1.1.7.0. Please help.
Thanks,
Abhishek

Hi !
Why are you using File.endSeparator '0'. ?
Are you sure your input data doesn't have those 3 blank records in the end? Check the message payload in the sxmb_moni transaction.
Regards,
Matias.

Similar Messages

  • How can i Insert a blank line an output file from my code

    I hav a problem in printing the charecters at th partyicular positon by getting the getFilePointer SO p-lz do help

    It's not so simple as you might have in mind.
    The following may serve to give some idea for your purpose..
    import java.io.*;
    public class RandAcc {
    public static void main(String[] args) throws Exception{
    try{
    long filePointer=0L;
    java.io.RandomAccessFile rf = new java.io.RandomAccessFile("in.txt","rw");//arbitrary input text file
    System.out.println(String.valueOf(rf.getFilePointer()));
    int q=0;
    while((q=rf.read())!=-1){
        filePointer=rf.getFilePointer();
        System.out.print(String.valueOf(q)); 
        System.out.print(": file pointer is at ");     
        System.out.println(String.valueOf(filePointer));
    rf.seek(0L);//reset the filepointer
    System.out.println(String.valueOf((char)rf.read()));//initial position
    rf.close();    
    catch (Exception e){
        throw e;
    }

  • Blank lines in Export files

    Hello,                                                                               
    When we export in BPC version 7 there are blank lines in the file. This gets in the way when we automate the export and import into another system since it picks up blank lines as the end of file. Do you know why this is happening and how we can remove them on the export automatically so they do not show up? 
    Many thanks in advance.
    Regards,
    Poonam

    Hi All,
    While extracting data from any application or making any selections to extract, the same thing is happening while exporting. This is happening with multiheader excel format.
    Yes, i am trying to extract data using the transformation file and running the export package.
    Would request you guide me further.
    Regards,
    Poonam

  • Skipping Blank Lines in text File

    I am working on an assignment in which i have to read from a text file and store the strings individually. The problem i have is that the text file has blank line between each set of strings. So i figured to use "fin.nextLine();" to skip that blank line and continue with storing the values. but i get
    "Exception in thread "main" java.util.NoSuchElementException: No line found
         at java.util.Scanner.nextLine(Unknown Source)
         at processmsg.ProcessMessages.choice1(ProcessMessages.java:68)
         at processmsg.ProcessMessages.main(ProcessMessages.java:25)"
    which is where the fin.nexLine() is at. How can i just skip that blank line?
    System.out.println("Please enter the file location");
              Scanner stdin = new Scanner(System.in);
              String fileName = stdin.nextLine();
              // read the information from the file
              try {
                   Scanner fin = new Scanner(new File(fileName));
                   String tSendName = fin.nextLine();
                   while(tSendName != null)
                        String tRecieveName = fin.nextLine();
                        String tPhoneNumber = fin.nextLine();
                        String tDate = fin.nextLine();
                        String tTime = fin.nextLine();
                        String tStatus = fin.nextLine();
                        String tMessage = fin.nextLine();
                        PhoneMessage phonemessage = new PhoneMessage(tSendName, tRecieveName,
                                  tPhoneNumber, tDate, tTime, tStatus, tMessage);
                        fin.nextLine();
                        tSendName = fin.nextLine();

    don't know if you want the whole code, the whole code is kind of large and spread out over 3 different classes. and yes the text file is standard
    sender
    reciever
    phone number
    date
    time
    status
    message
    sender
    reciever
    phone number
    date
    time
    status
    message
    sender
    reciever
    phone number
    date
    time
    status
    message
    private static void choice()
              // scan the file location from the user
              System.out.println("Please enter the file location");
              Scanner stdin = new Scanner(System.in);
              String fileName = stdin.nextLine();
              // read the information from the file
              try {
                   Scanner fin = new Scanner(new File(fileName));
                   String tSendName = fin.nextLine();
                   while(tSendName != null)
                        String tRecieveName = fin.next();
                        String tPhoneNumber = fin.next();
                        String tDate = fin.nextLine();
                        String tTime = fin.nextLine();
                        String tStatus = fin.nextLine();
                        String tMessage = fin.nextLine();
                        PhoneMessage phonemessage = new PhoneMessage(tSendName, tRecieveName,
                                  tPhoneNumber, tDate, tTime, tStatus, tMessage);
                        // skip blank line between entries
                        fin.nextLine();
                        // test date string for correct format
                        int month = Integer.parseInt(tDate.substring(0,2));
                        int day = Integer.parseInt(tDate.substring(3,5));
                        int year = Integer.parseInt(tDate.substring(6,10));
                        // test time string for correct format
                        int hour = Integer.parseInt(tTime.substring(0,2));
                        int minute = Integer.parseInt(tTime.substring(3,5));
                        int second = Integer.parseInt(tTime.substring(6,8));
                        tSendName = fin.nextLine();
                        msgList.add(phonemessage);
                   fin.close();
              } catch (FileNotFoundException e) {
                   System.out.println("The file " + fileName + " was not found!");
              } catch (java.lang.NumberFormatException e) {
                   System.out.println("The date and/or time is not of the correct format");
         }

  • Blank line in text file after download

    Hi  all,
    i am using the below code to get the 254 blank spaces at the end of the text file & it's comming correctly.
    generally i am downloading 2 lines in the original program  & i am getting one blank line in between these two lines.
    The main thing is that i am getting this blank line when i run this program in my office computer. But i am not getting this blank line when i run this same program in my home laptop. Please suggest why this blank line is appearing & any solution ?
    DATA: BEGIN OF OUTTAB OCCURS 100,
            PROD_CODE(3),
            LINE_DETL(2043),
          END OF OUTTAB.
    DATA:V_OUTPUT(2043).
    DATA: space_character type c.
    space_character  = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
            DO 254 times.
               CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
               ENDDO.
               OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    call function 'GUI_DOWNLOAD'
       EXPORTING
          filename = OUTFILE1
          filetype = 'ASC'
          TABLES
          data_tab = OUTTAB

    I don't think this is issue of ABAP. Any way just to check download the file on laptop and open same file and office computer
    if file looks ok then it is OS or text editor issue.
    Thanks,
    AK.

  • Blank line in receiver file adapter content conversion

    Hi,
    I am using a receiver file adapter. Everything is working fine. Except that a blank line is put by the file adapter between each records. It is a flat file format.
    I have used the stting below. How do we remove the blank line?
    Recordset : ACCTHDR,BATCHDR,TRANSREC,BATCHTLR,FILETLR
    ACCTHDR.fieldFixedLengths 1,7,4,9,8,665
    ACCTHDR.absoluteRowWidth  694
    ACCTHDR.addHeaderLine 0
    Thanks
    Sachin K

    Hi,
    .endSeparator
    The default value is a line break (no explicit separator after the last column; instead the structures are arranged line-by-line).
    If you enter a character string here, the system adds it to the last column as a closing character. You can also make this specification in addition to NameA.fieldFixedLengths. To include a line break following the closing character, you must explicitly define it by attaching ´nl´ (including the quotation marks) to the string.
    Regards
    Agasthuri Doss

  • Ignore blank lines in text file using number format exception.

    hi.. does anyone know how to ignore a blank line and move on to the next line? the text file contains:
    2
    bla bla bla
    112.4
    222.5
    ble ble vle
    115.5
    123.2

    The problem with trim() is that it only trims spaces (0x20). In a source code file, "blank" lines are as likely to contain TABs as spaces. I would recommend something like   if (line.length() == 0 || line.matches("\\s+")) If the inefficiency of matches() becomes a problem, you can use a pre-compiled Pattern object, or roll your own isItWhitespace() method.

  • Finding the number of Non-Blank Line in a File

    Does anyone know the command or how to find the number of non-blank lines in a text file? I have the program already reading characters, words, and total lines.
              BufferedReader FileIn = new BufferedReader( new FileReader( selectedFile ) );
                   Scanner scanWords = new Scanner (selectedFile);
                             String thisToken = "";
                             int numWords = 0;
                             while (scanWords.hasNext())
                             thisToken = scanWords.next();
                             numWords++;
         System.out.println("Total number of words: " + numWords);
         Scanner scanLines = new Scanner (selectedFile).useDelimiter("\n");
                             String thisToken2 = "";
                             int numLines = 0;
                             while (scanLines.hasNext())
                             thisToken2 = scanLines.next();
                             numLines++;
         System.out.println("Total number of lines: " + numLines);
         Scanner scanChars = new Scanner (selectedFile).useDelimiter("");
                             String thisToken3 = "";
                             int numChars = 0;
                             while (scanChars.hasNext())
                             thisToken2 = scanChars.next();
                             numChars++;
         System.out.println("Total number of characters: " + numChars);
                   FileIn.close();
              }

    Use BufferedReader#readLine() instead. Read the file once and process each line once.

  • How to handle blank line in File adapter

    Hi,
    I am using a file adapter with CSV as input file. If I have a blank line in CSV file, BPEL is failing read it, no instance is created and file is archieved.
    Please let me know how to handle this issue.
    Thanks

    Hi Yatan,
    I am already using rejectedMessageHandlers, I am on 10.1.3.3.
    Here's my bpel.xml
    ============
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BPELSuitcase>
    <BPELProcess id="EmpAddressUpdABCSImpl" src="EmpAddressUpdABCSImpl.bpel">
    <partnerLinkBindings>
    <partnerLinkBinding name="ReadFile">
    <property name="wsdlLocation">ReadFile.wsdl</property>
    <property name="rejectedMessageHandlers">file://E:/HRARCHIVE/BadData</property>
    </partnerLinkBinding>
    <partnerLinkBinding name="InsertAddressUpd">
    <property name="wsdlLocation">InsertAddressUpd.wsdl</property>
    <property name="retryInterval">60</property>
    </partnerLinkBinding>
    </partnerLinkBindings>
    <configurations>
    <property name="sensorLocation">sensor.xml</property>
    <property name="sensorActionLocation">sensorAction.xml</property>
    </configurations>
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="ReadFile">
    <property name="portType">Read_ptt</property>
    <property name="rejectedMessageHandlers">file://E:/HRARCHIVE/BadData</property>
    </activationAgent>
    </activationAgents>
    </BPELProcess>
    </BPELSuitcase>
    Someone told me that this can be achieved by changing the native schema, I tried many options but no result. Please suggest me.
    -- Shirish

  • How to skip blank line in FCC

    Hi,
    How to deal with blank rows in FCC for fixed width file?
    I want to ignore these records as they will fail the message in mapping.
    thanks,
    Anirudh.

    Hi
    Look this thread might help u
    Blank line in receiver file adapter content conversion

  • Extra blank lines in source code

    I have built a website in Dreamweaver CS4 and have a client editing pages in Contribute CS5. Both of us are working on Windows 7, and the site is hosted on Linux. When she makes edits to the page, something is introducing a GAZILLION blank lines in the source code. A typical page for this site is about 380 lines of code. The problem page is now more than 310,000 lines code with 100-200 blank lines between every "real" line of code. What the...?!
    I need to know how to stop this and how to remove the blank lines from the source code using Dreamweaver.
    The page in question lives here: http://www.alexandercitychamber.com/member-category.html
    HELP!!!
    Jeff

    Hello, Diane -
    We've got two separate issues here, but I think we have the solution to both.
    1. How to stop Contribute from adding blank lines in the code, and
    2. How to clean up a GAZILLION lines of blank code in a document.
    First, Number 1. I assume you're working in Dreamweaver. If not, I'm not sure how to guide you. But, when you define a Contribute Site, there is an area to specify administrative roles and permissions. Under each Role, at the bottom, you will see a popup for what kind of server the site is hosted on. The default is Windows. I had to change this to Unix (Linux) to match the hosting of our problem site. Find out what platform your host is using. You will have to specify this under each admistrative Role. After doing this, I had the client make some edits, then I opened the files in Dreamweaver. No new blank lines. I admit, I still have my fingers crossed somewhat.
    Okay, now how to clean up your source code and remove blank lines. A developer friend found this on some forum I had not seen. I don't know where, but I am grateful to the person who wrote it. It didn't get all the blank lines in my files, but I think some of the others, which I removed manually, were probably from the client pasting content in from Word. Here's what to do:
    1. Open the file in Dreamweaver
    2. Click CTRL + F, or go to EDIT > FIND AND REPLACE
    3. Select "Current document" in "Find In" (You can also select the folder if you have multiple files.
    4. Search in "Source Code"
    5. Check the box labeled "Use regular expression"
    6. Type "[\r\n]{2,}" (without quotes) in "Find"
    7. Type "\n" (without quotes) in "Replace"
    8. Press "Replace All"
    The operation chugged for a few minutes with my 301,000-line document. Yours may a take a little longer, but it did work. Good luck!
    Jeff
    [email protected]

  • Adding lastline in the output file

    hi
    i have attached my coding with this just i need to add a word in before of last line in output file
    please help out....
    import java.io.*;
    import java.io.FileReader;
    class Filenew
         public static void main(String args[]) throws IOException
              FileReader in = new FileReader("e:/rag.txt");
              FileWriter out= new FileWriter("e:/out2.txt");
              BufferedReader br=new BufferedReader(in);
              String s;
              while((s=br.readLine())!=null)
                   out.write(s);
              out.close();
              in.close();
    }regards
    Raghavan

    hi,
    From your previous post
    http://forum.java.sun.com/thread.jspa?threadID=5226088you are trying to write in a file and add some text before last line in that file,
    if yes
    here is the modified code,
    try to even better;
    file.java
    import java.io.*;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Vector;
    import java.util.Enumeration;
    public class file
    public static void main(String args[]) throws IOException
    InputStream in = new FileInputStream("out2.txt");
    FileWriter fo=new FileWriter("out3.txt");
    Vector v = new Vector ();
    int c,pos,pos1;
    String s=new String();
    StringBuffer sb = new StringBuffer();
    while((c=in.read())!=-1)
    sb.insert(0,(char)c);
    sb = sb.reverse();
    s = sb.toString();
    pos = s.indexOf("verify scan_test",0);
    s=s.substring(pos+1);
    int linecount = 0;
    while (pos >= 0) {
                s = s.substring(pos + 1);
                pos = s.indexOf("_cpdp_=", pos);
                pos = s.indexOf("=", pos);
                pos1 = s.indexOf(';', pos);
                v.add(s.substring(pos + 1, pos1));
                   ++linecount;
    Enumeration e = v.elements ();
    String str = "";
    while ( e.hasMoreElements())
    {   --linecount;
         if( linecount == 0)
              str = "what code you to add here \n\r" + e.nextElement ();
         else
              str = e.nextElement().toString();
         fo.write( str +"\n\r" );
    fo.close();
    out2.txt
    verify scan_test  {
      Abb {* verify:0  Value:0  lifecycle:0 *}
      W tset_tp;
      S {  _cpdp_=YYYY10YYYYYYYYYYYYYYYYYYY;
      Abb {* Begin loop test *}
      S {  _cpdp_=YYYY10YYYYYYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY110YY1YYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY110YY1YYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY111YY1YYYYYYYYYYYYYYY;
      }i hope it will give you a clear cut idea

  • Inserting blank line

    Hi All,
    How can I insert a blank line at output, for example my output is:
    3 rows extracted.
    8 row extracted.
    but the result should be has below,
    3 rows extracted.
    8 row extracted.
    Thanking u,
    mahe

    The easiest solution is to use the "format wrapped" option of the SQL*Plus command "set serveroutput".
    Example:
    SQL> set serveroutput on size 10000 format wrapped
    SQL> begin
      2     dbms_output.put_line ('line 1') ;
      3     dbms_output.put_line (' ') ;
      4     dbms_output.put_line ('line 2') ;
      5  end ;
      6  /
    line 1
    line 2
    Proc&eacute;dure PL/SQL termin&eacute;e avec succ&egrave;s.
    SP2-0158: option SET inconnue "format"
    SQL> set serveroutput on size 10000 format word_wrapped
    SQL> begin
      2     dbms_output.put_line ('line 1') ;
      3     dbms_output.put_line ('') ;
      4     dbms_output.put_line ('line 2') ;
      5  end ;
      6  /
    line 1
    line 2

  • Sharepoint Designer 2010 inserting blank lines

    Sharepoint Designer (SP1) is intermittently inserting hundreds of thousands of rows as I am working with an .aspx document. This bug, which was first present in 2007, has been reported by many people over the years; it seems to remain in 2010.
    Does anyone have a solution for this issue? Is there something in my page, which contains a bunch of xsltlistviews, that could be blowing up this file?
    Thanks.

    All -- 
    FYI, here is a decent workaround to the problem of SPD 2013 (SharePoint Designer 2013) inserting blank lines into pages.
    Here are the steps.
    - Get CodeMaid (free) or similar coding-tool plugin/extension for Visual Studio 2013 (VS 2013) that can remove blank lines.
    - Check out the file in SPD.
    - From SPD, right click the file and choose open with, then choose VS.
    - Run CodeMaid clean processing in VS, which will remove multiple consecutive blank lines.
    - Save file in VS.
    - Close file in VS.
    - Check in file with SPD.
    - Done.
    It may seem like a lot of steps, and it is, and it odd the MS does not simply use the same code editor base for both VS and SPD, but using this workaround is actually pretty quick and easy, and easier still if you use the VS editor to code the files (instead
    of the SPD editor) because the VS has way better code-folding and code-completion and code-digging anyway.
    Just thought I would mention a (fairly) quick and easy way to workaround this SPD shortcoming.
    HTH.
    Thanks.
    -- Mark Kamoski

  • Output csv file with blank line

    Hi Fellow PI friend,
    I encountered 1 problem where my output csv file always come with 2 blank lines after data line record. Can someone give me some advise or tip how to solve it?
    Thanks in advance.

    Hi ,
       Check if this link throws some light on your issue:
    Junk character at end of file from sender adapter creating a blank record
    Regards,
    Ravi

Maybe you are looking for

  • How do I see Thumbnail view in Safari? iOS6

    I've just watched a video on icons for iPad, and the guy switches between the screens via Thumbnails.  So you can see at a glance, what's what.  Very useful if you have various pages open that are from the same site, and the <title> of the page is mo

  • IPad photo issues with third party apps

    Up until recently I've had no problem with the issue I'm about to describe. When I download my raw format photos from my camera using the SD card reader I cannot view full photos in any third party apps such as the Photoshop app or any other I've tri

  • Oracle's XML Publisher in JDeveloper and XSQL Servlet

    A While ago, in this thread JDeveloper 10g, XSQL and FOP , was mentioned an ongoing effort for the "integration of Oracle's XML Publisher in JDeveloper and XSQL Servlet", Is this still happening ?, will this be something will be able to use without h

  • DW: Diff tools for Windows Users?

    Hi, I was making some changes to a few pages and saw the option to compare files. Then it said I needed a third-party diff tool in order to use this function. I went to preferences and saw where I could add this and started looking through the help f

  • Hotkey Command S not working.

    My hotkey Command S no longer works. Could I have (I may have) accidentally overrode it by assigning it to another task in another (unknown) application? How do I get it back? Driving me nuts.