ResultSet "hangs" after every 10 records

Hi
Please could you somebody help me.
I have extracted a ResultSet from a database which contains between 100 and 200 records (5 field each).
If I call rset.next(), printing a count after each call my program hangs for about 2 minutes after every 10 records.
For example:
int count = 0;
while(rset.next()) {
System.out.println("" + ++count);
Prints:
1
2
3
4
5
6
7
8
9
10
Waits here for two minutes and then carries on
11
20
Waits again for 2 minutes etc.
Has anyone had this problem or does anyone know how to fix it?
FYI: prstat reports tiny CPU and memory usage so the hardware is not responsible.
Thanks a lot in advance

Hi All
It must be network - setFetchSize is unsupported in both Statement and ResultSet in the driver set I am using.
It is running through a 10baseT switch at the moment which may be the problem so I will stick it on the backbone and try again.
Thanks again for your help.

Similar Messages

  • Machine hangs after every 30 min

    I have lonovo notebook,and am facing strange problem. the keyboard ,tap pad and pointer becomes unresponsive after every 30 minutes and i have to restart it to start work again. Also, it takes more than 5 minutes to start.
    I called the lenovo the support people, but the support guy was extemely rude and un-coperative and  thrice cut the communication  without any reason, any help, and information. Twice he hanged the phone telling that my warrenty period is expired. ( i have purchased it just before just 6 months).
    I dont know now what to do, as am tired of the machine's hangs and restarts.
    and am too much unhappy with the kind of after-sales support division of lenovo.  Its very frustrating and i would never recommand anybody to buy lenovo.    

    Keep Activity Monitor open (or some other monitoring utility) and see what happens to your free memory while you're working in FCP.  If it is all being depleted you may want to get an app that frees up memory. I can't recommend one because I just use Terminal and find does an OK job. However, there have been several threads about this where users have recommended specific apps. They should be findable with a search.
    Russ

  • Urgent----OC4J Hanging After every 4-5 Hours

    Respected All Oracle ADF Users,
    I Have Developed very large ADF (ADF BC Swing) Application i.e. One ERP Product, It Contains 300 Application Modules (Forms). I deployed this Application as EJB Session Bean on standalone OC4J which is on Fedora Core 3. There is Very Huge Data Entry, Data Fetching through this Application. (Daily 100000 Records Insertions)
    Now problem is, when I start OC4J it goes fine for next 4-5 hours, but after 4-5 hours it get hang or my application get hang .if I restart my OC4J then it will run fine for next 4-5 hours and after 4-5 hours again it hanging ,so in a day I have to restart OC4J 4 times.
    So I can u tell me
    1) Is OC4J not support such kind of large application?
    2) Weather I have to go for Oracle Application Server?
    3) Is there any kind of setting needs for same problem?
    4) Is this an Operating System Problem?
    5) Is this a Server Compatibility Problem?
    Please guide me.
    Thanks

    Hello,
    I ran into a similar problem running an application server instance on a SLES 9 machine. My application was much smaller than yours and it turned out that I was forgetting to release a connection to an LDAP server from Java code. So, I suggest you have a look at all suspicious bits of code first.
    Regarding the going to Oracle IAS, I would certainly advice you to do so.
    Finally, a last piece of experience that I can share with you is that before getting SLES I used to run my application server on SuSE 8.2. While all the required packages were there the ias instance appeared to use all the available system memory. The issue was resolved until I finally installed the Oracle supported SLES.
    If you like the Red Hat "look and feel" but still don't want to get a Linux that requires subscription like Oracle EL, why not try CentOS (www.centos.org) which appears to be a very good Red Hat clone.
    Thanassis

  • Getting extra line after each record when opening a .txt file in excel

    Hi All,
    I have developed a program which downloads a file at application server.
    each record of file is 500 characters long & have CRLF at end.
    the file looks fine when opened in .txt format.
    however when i download it from application server to presentation server (using function "download to my computer"), & at presentation when i try to open it in excel format, it shows a blank line after every record.
    i don't want this blank line to appear if i download it & open it in excel.
    the file record is declared as char500 type.
    Please suggest how to deal with this.
    thanks in advance.
    Regards,
    Puja.

    Hi Puja,
    Check the file in the application server whether it has any gaps between the lines.
    Or else as you said if the file looks ok in .txt format, download the file in .txt and open the same file in excel (i.e. open with excel)
    Hope this sloves your problem.
    Regards,
    SB.

  • Am facing issue on my iphone 5s after updating to ios 7.1.1, every while the phone hang after lock it and cannot unlock and even cannot turn on the screen this is so annoying, kindly advice if i have to go back to the store as device still under warranty

    Am facing issue on my iphone 5s after updating to ios 7.1.1, every while the phone hang after lock it and cannot unlock and even cannot turn on the screen this is so annoying, kindly advice if i have to go back to the store as device still under warranty, and if its a hardware issue or software ??

    Hello HaithamOkeely,
    We've an article that provides the following troubleshooting steps that may help stabilize your iPhone.
    If the device is unresponsive or if certain controls aren't working as expected, restart your device.
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If there is no video or if the screen remains black, verify that the device has enough charge to turn on:
    If you are using an iPad, ensure that it's connected to the USB Power Adapter supplied with the device.
    Let it charge for at least twenty minutes, then see if it starts normally.
    If there is no image on the screen, press the Sleep/Wake button to attempt to wake the device.
    If the screen displays a red battery icon, continue charging the device until the battery is fully charged. Learn more about charging iPhone and iPod touch, or iPad.
    If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes:
    Connect the device to your computer and open iTunes.
    If the device appears in iTunes, select and click Restore on the Summary pane. Learn more aboutrestoring iOS software.
    If the device doesn't appear in iTunes, try to force the device into recovery mode, and then restore it.
    If the above steps do not resolve the issue, contact Apple.
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Cheers,
    Allen

  • Commit in procedures after every 100000 records possible?

    Hi All,
    I am using an ODI procedure to insert data into a table.
    I checked that in the ODI procedure there is an option of selecting transaction and setting the commit option as 'Commit after every 1000 records'.
    Since the record count to be inserted is 38489152, I would like to know is this option configurable.
    Can i ensure that commits are made at a logical step of 100000 instead of 1000 records?
    Thank You.
    Prerna

    recently added on this
    http://dwteam.in/commit-interval-in-odi/
    Thanks
    Bhabani
    http://dwteam.in

  • Database hangs after retrieving some records....

    hi,
    I create a two level B+-tree index, for the first level i'm using key as logical database name, for the second level B+-tree i'm using some other field in my data. I am retrieving the records based on logical database name. I am using C++ to implement my index.
    In the following code i'm retrieving records from database. Program is behaving differently for different logical database names. For example in my database i have around 4 lakhs records with logical database name 'A' and around 1 lakh of records with logical database name 'B'. The following code displays all B records but programs hangs after retrieving some A records.
    I'm using PAGE_SIZE=8192, numBuffers=2048, and runnig in Fedora Core3.
    DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         myEnv.set_data_dir("/home/raviov/new/database");
              try {
                   myEnv.open("./", DB_CREATE | DB_INIT_MPOOL, 0);
              catch (DbException &e) {
                   cerr << "Exception occurred: " << e.what() << endl;
                   exit(1);
              db=new Db(&myEnv,0);
              db->set_pagesize(PAGE_SIZE);     
              db->set_bt_compare(compare_int);
         dbname=itoa(p);
         try
         db->open(NULL,
                   "treedb.db",
                   dbname,
                   DB_BTREE,
                   0,
                   0);
         catch(DbException &e)
              cerr << "Failed to open DB object" << endl;
              exit(1);
         db->cursor(NULL,&cursorp,0);
         key=new Dbt();
         data=new Dbt();
         while(ret=(cursorp->get(key,data,DB_NEXT))==0)
              j=*((int*)key->get_data());
              q=(*((struct tuple*)data->get_data())).startPos;
              r=(*((struct tuple*)data->get_data())).endPos;
              s=(*((struct tuple*)data->get_data())).level;
              cout<<"position : "<<j<<"\t";
              cout<<"start : "<<q<<"\t";
              cout<<"end : "<<r<<"\t";
              cout<<"level : "<<s<<"\n";
         if(ret==DB_NOTFOUND)
              cout<<"no records";
              exit(1);
         if(cursorp!=NULL)
              cursorp->close();
         try
              db->close(0);
         catch(DbException &e)
              cerr << "Failed to close DB object" << endl;
              exit(1);
         myEnv.close(0);

    HI Andrei,
    thank you for giving reply, I'm not using any secondary indecies, subdatabases and not using any threads.
    the following code displays index...
    #include <stdio.h>
    #include <db_cxx.h>
    #include <iostream.h>
    #include <db.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    int PAGE_SIZE=8192;
    int numBuffers=2048;
    char *itoa(const int x)
          char buf[100];
          snprintf(buf, sizeof(buf), "%d", x);
           return strdup(buf);
    int compare_int(Db dbp, const Dbt a, const Dbt *b)
      int ai;
      int bi;
      memcpy(&ai,a->get_data(),sizeof(int));
      memcpy(&bi,b->get_data(),sizeof(int));
      return(ai-bi);
    struct tuple
           int startPos;
           int endPos;
           int level;
    main()
         FILE *fp;
         int i,j,k,l,m,n,total=0;
         char dbname[500],filename[500],str [500];
         tuple t;
         Db *db;
         Dbt key,data;
         DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         try {
                myEnv.open("/home/raviov/Desktop/example", DB_CREATE | DB_INIT_MPOOL, 0);
           catch (DbException &e) {
                  cerr << "Exception occurred: " << e.what() << endl;
                  exit(1);
         for(n=0;n<=84;n++)
              db = new Db(&myEnv, 0);     // Instantiate the Db object
                    db->set_bt_compare(compare_int);
               db->set_pagesize(PAGE_SIZE);
              strcpy(filename,"/home/raviov/Desktop/GTCReport/code/sequence/splitter/tree/");
              strcat(filename,itoa(n));
              fp=fopen(filename,"r");
              if(fp==NULL)
                   cout<<"error in opening the file";
                   exit(0);
              while(fgets (str , 500 , fp)!=NULL)
                   sscanf(str,"%d(%d,%d,%d,%d)",&i,&j,&k,&l,&m);
                   key=new Dbt(&i,sizeof(int));
                   if(total==0)
                        strcpy(dbname,itoa(j));
                   t.startPos=k;
                   t.endPos=l;
                   t.level=m;
                   data=new Dbt(&t,sizeof(t));     
                   if(total==0)
                        try
                             db->open(NULL,
                             "tree.db",
                                       dbname,
                              DB_BTREE,
                                DB_CREATE,
                                0);
                        catch(DbException &e)
                               cerr << "Failed to create DB object" << endl;
                             exit(1);
                        total=99;
                   int ret=db->put(NULL,key,data,DB_NOOVERWRITE);
                   if(ret==DB_KEYEXIST)
                        cout<<"key already exist\n";
                        exit(1);
                   delete key;
                   delete data;
              total=0;
              fclose(fp);
              try
                   db->close(0);
              catch(DbException &e)
                     cerr << "Failed to close DB object" << endl;
                   exit(1);
         myEnv.close(0);
    }The following code retrieves the records from database that we had built above...
    #include <stdio.h>
    #include <db_cxx.h>
    #include <iostream.h>
    #include <db.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    int PAGE_SIZE=8192;
    int numBuffers=2048;
    char *itoa(const int x)
          char buf[100];
          snprintf(buf, sizeof(buf), "%d", x);
           return strdup(buf);
    int compare_int(Db dbp, const Dbt a, const Dbt *b)
      int ai;
      int bi;
      memcpy(&ai,a->get_data(),sizeof(int));
      memcpy(&bi,b->get_data(),sizeof(int));
      return(ai-bi);
    struct tuple
           int startPos;
           int endPos;
           int level;
    main()
         FILE *fp;
         int i,j,k,l,m,n,total=0;
         char *dbname;
         char filename[200],str [100];
         tuple t;
         Db *db;
         Dbt key,data;
         Dbc *cursorp=NULL;
         int ret,x=4;
         char *ravi;
         int p=84763;
         int y=2134872;
         int r,s,q,count=0;
         DbEnv myEnv(0);
         myEnv.set_cachesize(0, PAGE_SIZE * numBuffers, 0);
         myEnv.set_data_dir("/home/raviov/new/database");
              try {
                      myEnv.open("./", DB_CREATE | DB_INIT_MPOOL, 0);
               catch (DbException &e) {
                      cerr << "Exception occurred: " << e.what() << endl;
                      exit(1);
              db=new Db(&myEnv,0);
              db->set_pagesize(PAGE_SIZE);     
              db->set_bt_compare(compare_int);
         dbname=itoa(p);
         try
              db->open(NULL,
                    "tree.db",
                     dbname,
                     DB_BTREE,
                     0,
                     0);
         catch(DbException &e)
                cerr << "Failed to open DB object" << endl;
              exit(1);
         db->cursor(NULL,&cursorp,0);
         key=new Dbt();
         data=new Dbt();
         while(ret=(cursorp->get(key,data,DB_NEXT))==0)
              j=*((int*)key->get_data());
              q=(*((struct tuple*)data->get_data())).startPos;
              r=(*((struct tuple*)data->get_data())).endPos;
              s=(*((struct tuple*)data->get_data())).level;
              cout<<"position   : "<<j<<"\t";
              cout<<"start : "<<q<<"\t";
              cout<<"end   : "<<r<<"\t";
              cout<<"level   : "<<s<<"\n";
              delete key;
              delete data;
         if(ret==DB_NOTFOUND)
              cout<<"no records";
              exit(1);
         if(cursorp!=NULL)
              cursorp->close();
         try
              db->close(0);
         catch(DbException &e)
                cerr << "Failed to close DB object" << endl;
              exit(1);
         myEnv.close(0);     
    }

  • Commit after every 1000 records

    Hi dears ,
    i have to update or insert arround 1 lakhs records every day incremental basis,
    while doing it , after completing all the records commit happens, In case some problem in between all my processed records are getting rollbacked,
    I need to commit it after every frequency of records say 1000 records.
    Any one know how to do it??
    Thanks in advance
    Regards
    Raja

    Raja,
    There is an option in the configuration of a mapping in which you can set the Commit Frequency. The Commit Frequency only applies to non-bulk mode mappings. Bulk mode mappings commit according the bulk size (which is also an configuration setting of the mapping).
    When you set the Default Operating Mode to row based and Bulk Processing Code to false, Warehouse Builder uses the Commit Frequency parameter when executing the package. Warehouse Builder commits data to the database after processing the number of rows specified in this parameter.
    If you set Bulk Processing Code to true, set the Commit Frequency equal to the Bulk Size. If the two values are different, Bulk Size overrides the commit frequency and Warehouse Builder implicitly performs a commit for every bulk size.
    Regards,
    Ilona

  • Need to commit after every 10 000 records inserted ?

    What would be the best way to Commit after every 10 000 records inserted from one table to the other using the following script :
    DECLARE
    l_max_repa_id x_received_p.repa_id%TYPE;
    l_max_rept_id x_received_p_trans.rept_id%TYPE;
    BEGIN
    SELECT MAX (repa_id)
    INTO l_max_repa_id
    FROM x_received_p
    WHERE repa_modifieddate <= ADD_MONTHS (SYSDATE, -6);
    SELECT MAX (rept_id)
    INTO l_max_rept_id
    FROM x_received_p_trans
    WHERE rept_repa_id = l_max_repa_id;
    INSERT INTO x_p_requests_arch
    SELECT *
    FROM x_p_requests
    WHERE pare_repa_id <= l_max_rept_id;
    DELETE FROM x__requests
    WHERE pare_repa_id <= l_max_rept_id;

    1006377 wrote:
    we are moving between 5 and 10 million records from the one table to the other table and it takes forever.
    Please could you provide me with a script just to commit after every x amount of records ? :)I concur with the other responses.
    Committing every N records will slow down the process, not speed it up.
    The fastest way to move your data (and 10 million rows is nothing, we do those sorts of volumes frequently ourselves) is to use a single SQL statement to do an INSERT ... SELECT ... statement (or a CREATE TABLE ... AS SELECT ... statement as appropriate).
    If those SQL statements are running slowly then you need to look at what's causing the performance issue of the SELECT statement, and tackle that issue, which may be a case of simply getting the database statistics up to date, or applying a new index to a table etc. or re-writing the select statement to tackle the query in a different way.
    So, deal with the cause of the performance issue, don't try and fudge your way around it, which will only create further problems.

  • Total after every 25 records

    Dear Friiends,
    I would like to write down query which also returns the total of some columns after every 25 records.
    like this
    ccno salary
    1 5000
    2 10000
    25 80000
    total       <total of above 25>
    26 25000
    27 10000
    50 13000
    total       <total of above 50>
    can we achieve this
    Waiting for reply .

    with tab as (
    select 1 ccno,100 salary from dual union all
    select 2 ccno,200 salary from dual union all
    select 3 ccno,300 salary from dual union all
    select 4 ccno,400 salary from dual union all
    select 5 ccno,500 salary from dual union all
    select 6 ccno,600 salary from dual union all
    select 7 ccno,700 salary from dual
    )--end of test data
    select ccno,
           salary,
           case when mod(row_number() over (order by ccno), 3) = 0 then sum(salary) over (order by ccno) else null end as sumsal
    from tab
    CCNO                   SALARY                 SUMSAL                
    1                      100                                          
    2                      200                                          
    3                      300                    600                   
    4                      400                                          
    5                      500                                          
    6                      600                    2100                  
    7                      700                                          
    7 rows selectedChange the 3 in the mod to 25 for your data

  • After I covered 250 miles I got the automated congratualtions, but now after every run I get the recorded message again saying I just covered another 250 miles. Can I reset or stop it without completly resetting everything?

    I run with the Nano and shoe sensor. After I covered 250 miles I got the automated congratualtions, but now after every run I get the recorded message again saying I just covered another 250 miles. Can I reset or stop it without completly resetting everything?

    Same issue here.  This is really disappointing.  I used to look forward to the milestone messages after each run, especially when I was surprised by a celebrity voice.  Now, it's the same thing every single time, "Congratulations on another 250 miles.  Way to go!" or something along those lines.  I was proud of the 250 mile mark, but please...I don't want to hear it every time! 
    I hope there's some movement on this issue.
    ~ Heather

  • Iphone 4s(ios 7) hangs after i reject calls by pressing the on/off button while it is in the lock screen.I restart the phone every time when i reject calls..what can i do ?

    iphone 4s(ios 7) hangs after i reject calls by pressing the on/off button while it is in the lock screen.I restart the phone every time when i reject calls..what can i do ?

    I've same problem in iPhone 5c. I was using iPhone 4, problem appears after updating to ios7. I changed my phone to iPhone 5c, looks like it's a bug in ios7. But I think you might not turn on or off your internet connection frequently to reduce this problem. My friend has a same iPhone she never gets such problem like this cause she uses iPhone 5c with Tata Docomo (India) 2g with no internet connection. May be this would be the best solve that you should not turn on or of your internet connection so frequently...
    Do any one have any better idea?

  • Add a row after every n records

    Hi
    I have a query that returns only one column
    Column1
    a
    b
    c
    d
    g
    e
    f
    g
    h
    I want to add 01 as the first row and then after 5 records i want to add 02 then 03 after another 5 records and so on i.e
    Column1
    01
    a
    b
    c
    d
    e
    02
    f
    g
    h
    How can this be done?

    Hi,
    Nice post.
    Regards salim.
    other solution.
    SELECT res
      FROM t
    model
    dimension by( row_number()over(partition by 1 order by rownum) rn)
    measures(col1,cast ( col1 as varchar2(20)) as res, count(1)over(partition by 1) cpt,trunc(rownum/5) diff)ignore nav
    (diff[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    case when diff[cv(rn)] is present then  diff[cv(rn)]
    else   case when mod(cv(rn),5)=0 then
           diff[cv(rn)-1]+1
           else diff[cv(rn)-1]end 
    end,
    res[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
      case when mod(cv(rn),5)=0 then 
           to_char((cv(rn)/5),'fm00')
      else  col1[cv(rn)-diff[cv(rn)]]end )
    SQL> WITH t AS
      2       (SELECT 'a' col1
      3          FROM DUAL
      4        UNION ALL
      5        SELECT 'b'
      6          FROM DUAL
      7        UNION ALL
      8        SELECT 'c'
      9          FROM DUAL
    10        UNION ALL
    11        SELECT 'd'
    12          FROM DUAL
    13        UNION ALL
    14        SELECT 'g'
    15          FROM DUAL
    16        UNION ALL
    17        SELECT 'e'
    18          FROM DUAL
    19        UNION ALL
    20        SELECT 'f'
    21          FROM DUAL
    22        UNION ALL
    23        SELECT 'g'
    24          FROM DUAL
    25        UNION ALL
    26        SELECT 'h'
    27          FROM DUAL
    28        UNION ALL
    29        SELECT 'i'
    30          FROM DUAL
    31        UNION ALL
    32        SELECT 'j'
    33          FROM DUAL
    34        UNION ALL
    35        SELECT 'k'
    36          FROM DUAL
    37          UNION ALL
    38        SELECT 'l'
    39          FROM DUAL
    40          UNION ALL
    41        SELECT 'm'
    42          FROM DUAL
    43          UNION ALL
    44        SELECT 'o'
    45          FROM DUAL
    46          UNION ALL
    47        SELECT 'p'
    48          FROM DUAL
    49          UNION ALL
    50        SELECT 'q'
    51          FROM DUAL
    52          UNION ALL
    53        SELECT 'z'
    54          FROM DUAL
    55          UNION ALL
    56        SELECT 'z'
    57          FROM DUAL
    58          UNION ALL
    59        SELECT 'z'
    60          FROM DUAL
    61          UNION ALL
    62        SELECT 'y'
    63          FROM DUAL)
    64  SELECT res
    65    FROM t
    66  model
    67  dimension by( row_number()over(partition by 1 order by rownum) rn)
    68  measures(col1,cast ( col1 as varchar2(20)) as res, count(1)over(partition by 1) cpt,trunc(rownu
    m/5) diff)ignore nav
    69  (diff[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    70  case when diff[cv(rn)] is present then  diff[cv(rn)]
    71  else   case when mod(cv(rn),5)=0 then
    72         diff[cv(rn)-1]+1
    73         else diff[cv(rn)-1]end 
    74  end,
    75   res[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    76    case when mod(cv(rn),5)=0 then 
    77         to_char((cv(rn)/5),'fm00')
    78    else  col1[cv(rn)-diff[cv(rn)]]end )
    79 
    SQL> /
    RES
    a
    b
    c
    d
    01
    g
    e
    f
    g
    02
    h
    i
    j
    k
    03
    l
    m
    o
    p
    04
    q
    z
    z
    z
    05
    y
    26 ligne(s) sélectionnée(s).
    SQL> Edited by: Salim Chelabi on 2009-04-15 13:35

  • Indesign CS5 hangs after start - every time

    My new CS5 Indesign hangs after start and I have to force quit the program. I've not been able to use this yet and wonders if anyone can help me?
    When I start Indesign I can start a new document, but as soon as I interact with the program i hangs and won't quit unless I force quit. I've tried to open an already existing file - which never opens. I also tried to open Indesign from Finder, not from the Dock.
    I hope anyone can help me with this.
    Best,
    R. Henriksen

    I am having the same problem! Brand new iMac i7...  installed CS5 from scratch (am not transferring over programs from the old machine; wanted this one to be super fresh & clean). Have used Photoshop and Illustrator so far fine.. but InDesign crashes as soon as I try to do something - I can create a new document, but as soon as I use the type tool, crash. Or, I can sometimes successfully open up an existing document (tried both CS4 & CS5 ones), but it crashes once loaded.
    I've uninstalled. Then reinstalled. no luck.
    I have not yet tried to disable Suitcase (Fusion 3).  Will try this eve...
    Hoping your problems have meanwhile been fixed. Any update?

  • Need a pipe delimiter after every field in the file on application server

    Hi ,
    i have to transport data in internal table to a file on application server.
    I have done this successfully. But the problem is i have to put a pipe
    delimiter after every field in the file on application server.
    Could yoe plz help in  this issue.
    Thanks & Regards
    Suresh kumar D

    Hi Should,
              I think the below code should solve your problem as i also had  a similar type of requirement and this was the code i had used in my program.
      FIELD-SYMBOLS: <FS> TYPE ANY.
      DATA: L_FLINE TYPE STRING.
    Open file for output
      M_CHECK_SELSCR_FNMS O1 O.
      LOOP AT I_TARGET.
    Write records to file
        DO.
          ASSIGN COMPONENT SY-INDEX OF STRUCTURE I_TARGET TO <FS>.
          IF SY-SUBRC EQ 0.
            IF SY-INDEX EQ 1.
              MOVE <FS> TO L_FLINE.
            ELSEIF <FS> NE C_PIPE.
              CONCATENATE L_FLINE C_PIPE <FS> INTO L_FLINE.
            ELSE.
              CONCATENATE L_FLINE <FS> INTO L_FLINE.
            ENDIF.
          ELSE.
            TRANSFER L_FLINE TO W_SRVR_NM_O_O1.
            EXIT.
          ENDIF.
        ENDDO.
      ENDLOOP.
    Close file
      CLOSE DATASET W_SRVR_NM_O_O1.
      IF SY-SUBRC EQ 0.
        MESSAGE S208(00) WITH TEXT-M02.
      ENDIF.
    Regards
    Sikha

Maybe you are looking for