Number of line exceeds in source file by 999 then create another IDOC

Hi
I am working on a scernario
There 3 source files and each file should may have more than 999 lines.
I need to create idoc only for 999 lines so when lines exceeds then new idoc should be created.
Can anyone tell me the resolution for the same.
Regards
Ria

Hello,
Change the FCC configuration.. as described in below.
Record set Strcture : *,999
Record Sets per message as : 1
To eliminate header : Document offset : 1
Try this by putting message protocol as file content convertion.
Thx
Subbu

Similar Messages

  • How can I find out the number of lines in a text file?

    How can I find out the number of lines in a text file?

    java.io.BufferedReader in = new java.io.BufferedReader( new java.io.FileReader( "YourFile.txt" ) );
    int lineCount = 0;
    while( in.readLine() != null )
    lineCount ++;
    System.out.println( "Line Count = " + lineCount );

  • How to find number of lines in an input file.

    Hi,
    Can someone tell me, if there is a way to find out the number of lines in an input file. I do not want to read line by line and then count the number of lines read.

    Then how do you think a program could determine the amount of lines in an input file? How does a human know how many lines are on a page? You're going to have to count the items that separate two lines to know how many lines are in your file.
    Either read line by line and count the amount or read char by char and count the number of '\n' occurences instead.
    If you have control over writing the input files, however, you can make this better. Write a header in the file that specifies the amount of lines in it. The first line of your file will then hold a number that represents the amount of lines in the file, so you need only read the first line to know how many lines are in your file.

  • Count the number of lines in a txt file

    I need to count the number of lines in a txt file, but I can't do it using readLine(). This is because the txt file is double spaced. readLine() returns null even if it is not the end of the file. thanks for the help

    I need to count the number of lines in a txt file,
    but I can't do it using readLine(). Then just compare each single byte or char to the newline (code 10).
    This is because the txt file is double spaced. readLine() returns
    null even if it is not the end of the file.Errm what? What do you mean by "double spaced"? Method readLine() should only return null if there's nothing more to read.

  • How to recognize empty lines in a source file

    Hi to all
    I want to count he empty lines in a source file. I've been using the methods provided by String such as "contains" ecc but for example
    String line = new String();
    line.startsWith(\r); in order to trace the carrage return in order to consider this as an empty line didn't work
    I cut and paste here my code any hint is apreciable!
    import java.io.*;
    public class Filereader {
    public Filereader() {
    public static void main(String argv[]) {
    File temp = new File("LOC.txt");
    File list = new File("mylist.txt");
    String line = new String();
    String lineinternal = new String();
    int linecounter = 0;
    int sourcelines = 0;
    int commentlines = 0;
    int complexlines = 0;
    boolean commentflag = false;
    try {
    FileReader fileinput = new FileReader(list);
    BufferedReader buffinput = new BufferedReader(fileinput);
    FileWriter fileout = new FileWriter(temp);
    BufferedWriter out = new BufferedWriter(fileout);
    out.append("NOME");
    out.append(" \t");
    out.append("LOC");
    out.append(" \t");
    out.append("LCom");
    out.append(" \t");
    out.append("Ltot");
    out.newLine();
    boolean eof = false;
    boolean eofinternal;
    while ( !eof ) {
    eofinternal = false;
    line = buffinput.readLine();
    if ( line != null ) {
    linecounter = 0;
    sourcelines = 0;
    commentlines = 0;
    complexlines = 0;
    FileReader fileinternal = new FileReader(line);
    BufferedReader buffinternal = new BufferedReader(fileinternal);
    while ( !eofinternal ) {
    lineinternal = buffinternal.readLine();
    if ( lineinternal != null ) {
    linecounter++;
    if ( lineinternal.contains("//") && (!commentflag) )
    commentlines++;
    if ( lineinternal.contains("/*") )
    commentflag = true;
    if ( commentflag )
    commentlines++;
    if ( lineinternal.contains("*/") )
    commentflag = false;
    if ( !commentflag ) {
    if ( (lineinternal.contains(";")) && (lineinternal.contains("//")) && (!lineinternal.startsWith("//")) )
    complexlines++;
    else
    if ( (lineinternal.contains(";")) && (lineinternal.contains("/*")) && (!lineinternal.startsWith("/*")) )
    complexlines++;
    else
    if ( (lineinternal.contains(")")) && (lineinternal.contains("//")) && (!lineinternal.startsWith("//")) )
    complexlines++;
    else
    if ( (lineinternal.contains(")")) && (lineinternal.contains("/*")) && (!lineinternal.startsWith("/*")) )
    complexlines++;
    else
    if ( (lineinternal.contains("}")) && (lineinternal.contains("//")) && (!lineinternal.startsWith("//")) )
    complexlines++;
    else
    if ( (lineinternal.contains("}")) && (lineinternal.contains("/*")) && (!lineinternal.startsWith("/*")) )
    complexlines++;
    else
    eofinternal = true;
    buffinternal.close();
    sourcelines = (linecounter - commentlines) + complexlines;
    Integer data1 = new Integer(sourcelines);
    Integer data2 = new Integer(commentlines);
    Integer data3 = new Integer(linecounter);
    String f = data1.toString();
    out.append(line);
    out.append(" \t");
    out.append(data1.toString());
    out.append(" \t");
    out.append(data2.toString());
    out.append(" \t");
    out.append(data3.toString());
    out.newLine();
    else {
    eof = true;
    buffinput.close();
    out.close();
    System.out.println("...end of try catch ");
    catch (IOException e) {
    System.out.println("Error..." + e.toString());
    catch (Exception e) {
    System.out.println("Error..." + e.toString());
    Thanks in advance to all
    Mandy

    Try this:
    String trimmedLine = lineFromFile.trim();
    if ("".equals(trimmedLine))
        // logic for trimmed line
    }That's some ugly procedural code. Long "if/else if/else" is a very bad sign.
    I'd advise that you at least move this mess out of main() and into a method that you could just call. I don't know if this will be reusable or not, but you won't have a chance of it being callable in another context if you leave it all in main().
    %

  • How many number of lines of code Java File can have?

    Hi ALL
    Is there any limit on java source file code length?
    does more code (say more than 4000 line) impact on performace?
    Is there any recomendation on code length and file size?
    Thanks

    Hi ALL
    Is there any limit on java source file code length? There are some (VM) limitations but I have only hit that one when I had some generated code.
    does more code (say more than 4000 line) impact on
    performace?No, but you probably have a stupid design if you have 4000 lines in one file.
    Is there any recomendation on code length and file
    size?You should usually only have one top level clas per file, and you should try to have less than 1000 lines in one class.
    Kaj

  • Error 1311 Source file not found? Plus another error. I need help bad!

    Error 1311. Source file not found. S:\Documents and Settings\Owner\Local Settings\Temparary Internet Files\content.IE5\45UJKXYZ\ja150000[ 1 ].cab. Verify that the file exists and that you can access it.
    That appears when trying to install Java 5 update. What can I do to fix that?
    This is another error I've got.
    hs_err_pid424 error
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x64DAD49
    Function=Java_sun_awt_windows_WToolkit_printWindowsVersion+0x1CB9
    Library=C:\Program Files\Java\j2re1.4.2_08\bin\awt.dll
    What's those mean and how can I fix them? Plus after installing J2re1.4.2_08 I get a fuzzy looking screen and lines look doubled or outlined some.

    hello folks,
    I have Windows XP home Firefox v1.0.6.
    removed old java in Add/Remove programs.
    cleared the "Temporary Internet Files" folder that contained C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5.
    tried to load jre-1_5_0_04-windows-i586-p-iftw.exe for the third time, and the install still hangs up.
    J2SE Runtime Environment 5.0 Update Installer Information : Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\2XFKL4VY\je150000[1].cab. Verify that the file exists and that you can access it.
    and,
    Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\EEIDPHGA\jp150040[1].cab. Verify that the file exists and that you can access it.
    here's the thing, I cannot surf to "Content.IE5" folder in my "Local Settings\Temporary Internet Files" folder, but I can plug in the directory in the address bar of Windows Explorer & see the "Content.IE5" folder.
    I do not see "je150000[1].cab" or "je150000[1].cab" in there.
    Am I using the wrong program to fresh install Java for Firefox in XP?
    Is there something wrong with my operating system?
    monitoring this thread.....
    thanx.

  • How can I put more than one source file when I am creating my installer from LV 7 Express

    Hi,
    I am creating my installer for my application and I would want to add more than one source file at once, how could I do it?
    Thanks,
    ToNi.

    Hi,
    I'm referring to the first executable. In other words, I have my application and I want to build and executable of it. Then I go to "Tools->Build application..." and then in the source files tab I can add my vi files but I want to add more than vi at the same time (at once) and not one by one. How can I do it?
    And my second question is: When I make the installer for my application I save the configuration in a build Script file (.bld) in order to use it whenever I want. Then If from another computer different from the one where I generate the .bld file, I load it, LV tells me that something is wrong (LV says there are some errors in some VIs but It doesn't tell me what files are). Why?
    Thanks in advance,
    ToNi.

  • Jsp+Tomcat: Is there a max number of lines in a html file generated?

    Hi, I write a jsp page that does a lot of queries on a database and, for each query, views a table with the records return by the query. I have a problem: if the number of queries is low the page work well; if the number of queries is high the page has been truncated. If a watch at the html file of the browser it's like truncated. Are there any parameters that i have to modify? thaks very much

    Truncation usually indicates that an exception occurred after the response had already been committed (due to the output buffer becoming full which will cause it to be flushed).
    check out the logfiles of your webserver if there are any unexpected exceptions in there.

  • Deleting a line from a text file & opening a project from another project

    hi
    im doing project on linux redhat 8.0 using java (jbuilder 8). I need to
    open a project2 from behind a menu item in project1. I tried importing
    the package of project2 and then initializing a constructor of main
    class of project2 in project1(behind the "open project2" menu item) but
    i dont know where to place the class files of project2 so im getting a
    compilation error(when compiling project1) that unable to locate
    imported package files.
    is there any other way of doing this
    like making an .exe file of project2??? if so, then pls tell me how.
    Another problem is i want to delete a line of selected text from a text
    file
    using java. is there a method for that or any other way?
    Anybodyyyy have any ideasss?
    Alisha

    Cross- and double-posted: http://forum.java.sun.com/thread.jspa?threadID=645244

  • Create a file in illustrator - then create hyperlinks in Acrobat Pro - if need to re-edit in illustrator loose hyperlinks

    Hi, i have created a very detailed map in illustrator CS4 (PDF file). Then i wanted to add hyperlinks, so i opened the pdf file in Adobe Acrobat Pro 9 to put the links on. everything worked perfectly. Then i had to change something on my map - so i opened the PDF file in Illustrator and all the hyperlinks are gone. HELP. what am i doing wrong? how do i keep the links. (it is not the sort of edit that i could do in adobe acrobat pro - it is a design and move things around type edit)
    thank you.

    You would be best off replacing pdf pages in your existing linked pdf.
    Edit your original Illustrator file and creating a pdf of that. Replace (don't delete!) pages in your existing linked pdf with your updated pdf. The links will remain and you'll have the updated image you need. It is also a better work flow to maintain your Illustrator file.

  • Connecting TC to Wireless Internet source(no ethernet ports) to create another WLAN to use that internet.

    Hello,
    I have a Telstra Turbo Elite wireless mobile boroadband device (see link) this device has no ethernet ports, it only connects to a mobile BB signal and then provides a WLAN that you can access wirelesly.
    I want to connect my TC to this device wirlessly and then create a separate WLAN network that my household devices can connect to and use the internet connection provided by the Telstra device. So that I can use the TC to store my digital media and backup my laptop aswell.
    How do I do this?
    I tried turning the TC into a WLAN bridge but then i could not access the 2TB HDD in it and thus could not use Time Machine either.
    Please Help.
    Simon

    I want to connect my TC to this device wirlessly and then create a separate WLAN network that my household devices can connect to and use the internet connection provided by the Telstra device
    Unfortunately, this is not possible.
    The TC needs a wired Ethernet connection at its WAN port to be able to create a wireless network.
    The only way that this might work would be to add a wireless to Ethernet bridge, then feed that signal to the WAN port on the TC. 

  • "Acceptable" source file size...

    Hi all!
    I know that there is no standard for this, but what does good and practical programming suggests as a good number of lines in a source file, keeping in mind good design and simplicity of code?

    looking at my current project.....
    The smallest file is 209bytes or 13 lines.
    But lines probably isn't the best way to judge the size of the class..... Especially since the actual body of the code contains nothing! (All 13 lines are overhead: package, import, javadoc) Its an interface to hold a key.
    The largest file is 43.1kb or 1374. The class represents a modified version of java.security.Signature. (And if I removed the unecessary code [currently commented out] I could probably knock 300lines out.
    The average file is ~4kb which equates to ~70-80lines.
    However, whether you can actually compare a University (final year) project to a real world project is open to discussion.
    Personally I don't think lines of code is a good metric. Especially as different programmers adopt different coding styles, which will affect line count (making it impossible to compare work of different programmers)

  • How to get the number of lines of a file?

    Folks:
    Is there a way to get the number of lines of a text file? I don't know if there is an existing method to do that.
    Thanks a lot.

    HI
    I found some solution
    other than increment loop and all
    here is the code it might helpful to u
    //returns the number of lines in a file
    //author : Ravindra S
    //Symphony software Hyderabad
    try
    RandomAccessFile randFile = new RandomAccessFile(csvFile,"r");
    long lastRec=randFile.length();
    randFile.close();
    FileReader fileRead = new FileReader(csvFile);
    LineNumberReader lineRead = new LineNumberReader(fileRead);
    lineRead.skip(lastRec);
    countRec=lineRead.getLineNumber()-1;
    fileRead.close();
    lineRead.close();
    catch(IOException e)

  • Number of lines in a file

    Is there a method that returns the number of lines in a text file? I'm trying to make an array of arrays, with each inner array holding 4 strings from 4 consecutive lines from a file, and the outer array holding every one of those arrays that are possible in the file. I can't anticipate the amount of 4-line blocks im going to have tho, so i need something that returns the number of lines available and divides that by four. I'll then populate the outer array by looping that many times. If any of that made sense...

    Is there a method that returns the number of lines in
    a text file? I'm trying to make an array of arrays,
    with each inner array holding 4 strings from 4
    consecutive lines from a file, and the outer array
    holding every one of those arrays that are possible
    in the file. I can't anticipate the amount of 4-line
    blocks im going to have tho, so i need something that
    returns the number of lines available and divides
    that by four. I'll then populate the outer array by
    looping that many times. If any of that made sense...You would do better to use java.util.List implementations such as ArrayList and LinkedList then you don't need to know the number of lines.

Maybe you are looking for

  • Print Multiple Report

    <p>Hi,</p><p> </p><p>I have some questions regarding the printing of multiple reportat one time. Here goes the description:-</p><p> </p><p>Right now, I have jsp page to pass in the required parameter togenerate the brio report in pdf format.If i have

  • How to create hyperlink on column.

    Hi all, its very urgent. I have two pages first page like header level and secound page like lines level. in first page having requestid lov,find,create buttons and advance table region. secound page having only advance table region with add another

  • Regarding thirdparty returns

    hi sd gurus pls explin  steps in third party credit pross and send to my mail id [email protected] thanks

  • Whilst editing a photo, i have now found the picture is stuck. I

    My photo has become stuck, whilst editing it, I can't get back to,the rest of my photos ? Any ideas ?

  • Buggy tools even after preference reset

    Before I was complaining about the text tool pulling out to a marquee type box.  I know I didn't drag when I did it so I decided to trash preferences.  I didn't know how to do that (thanks guys in the forum that helped).  This didn't fix the problem