Multiple systems writing to single csv file

I am preparing to have two identical test systems that test a single product go into service side by side.  There has been one or the other of these in service for a number of years but due to volume, both must now operate in parallel.
The sticky point on this is that results are written to a CSV file and the file can only be opened by one caller at a time (whether one of the systems or a user).   My first approach is somewhat klunky but I think it may work.
When system 1 is ready to save, it creates a temp file based on it's stand ID.  It then looks for the comparable temp file from system 2. If it sees it, system 1 goes into a loop for what should be adequate time for system 2 to write and exit and then system 1 writes and at the end deletes it's tmp file.  If system 2 tmp file stays longer than the allowed for time, system 1 returns an error to the user that data was not saved and continues on. (same thing on other system with numbers switched)
As I say, it's klunky.
For this product, the csv format is preferred by production and because both machines will be running a single work order, they want the data to go into a single file.
Any alternative methods I should be considering ?
Thanks for any input.
Doug
"My only wish is that I am capable of learning each and every day until my last breath."

I fully agree with RavenFan's idea of making another application just for writing the file.  It greatly simplifies the process.  I would also recommend using the STM library to make the TCP/IP communications easier to understand.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

  • Writing multiple arrays to a single xml file at seperate times without overwriting the previous file?

    Hi my name is Dustin,
    I am new to labview and teststand... I am trying to right multiple arrays of data to a single xml file. I can do this with a cluster but I have to create a variable for each of those arrays (21 arrays) and I was hoping to use the same variable for each array. Meaning I obtain my array of data write it to an xml file then replace that array in that variable with a new array and then call up my VI that writes that array to an xml file and write it to the same xml file underneath the first array without overwriting it. Attached is my VI I created to write an array to an xml file. Again I am wondering if there is a way to write multiple arrays to a single xml file at different times without overwriting the previous xml file.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Write_to_XML_File.vi ‏11 KB

    Hi dlovell,
    Check the attached example. I think it may help you.
    Regards,
    Nitz
    (Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved) 
    Attachments:
    Write to XML.vi ‏17 KB

  • Submit quiz results to one single .csv file

    How can I submit quiz results (over 200 people will be taking
    my captivate quiz) to a single .csv file?
    Right now, the quizes are submitted to my email address and
    attached to the email as a POSTDATA.ATT file. I have to manually go
    into my Outlook and save attachment as "FnameLname.csv”. So
    each quiz taker will have an individual .csv file! So I will have
    over 100 emails and over 100 .csv files!!!!!
    How can I make the quiz results submit to a single
    Quiz_Results.csv file on my web server instead?

    The way I would do this is to submit the scores into a
    database. In between Captivate and the database you'll need
    middleware (.asp, asp.net, ColdFusion, etc.). This middleware
    receives your data from Captivate and processes it - submitting it
    into the database. You can then write another middleware page that
    produces a report (web page table, or exports .csv file) with the
    data stored the database.
    Another possibility is to use Captivate's built-in SCORM
    functionality and submit user scores into an LMS, then run reports
    and export .csv files from your LMS.
    Sorry - I don't think this functionality is built into
    Captivate to join multiple records into one .csv file.

  • KP06 mass planning through a single CSV file

    Hi All,
    I have created one Planning layout and assign it to a planner profile for KP06 upload. We are using CSV format file for this upload. Now i am able to upload Kp06 plan data for a single cost center for one period only.
                   But my client is asking for all cost centers plan for all periods through a single CSV file(mass planning). If its not possible for all periods plz guide me how to do for all cost centers for one period.
       it would be appreciated if any one help on this issue.
    Regards,
    Spandana

    Hi Nikolas
    Still - Does Excel upload allows you to upload multiple cost centers at a time??
    To upload by All periods in one go - One needs to define 12 Columns for the Key Figures.... But is multiple cost centers possible?? As far as I remember from SDN posts, its not possible
    @ Spandana - I personally Luv LSMW for the same reason... You can upload all in one go and per sec it uploads avg 6 records in KP06... That speed is decent enuf
    br, Ajay M

  • Report of Groups owned along with group memberships for each group, all in a single .csv file

    Hello all,
    What I'm trying to do is generate a report of all groups owned by a specific user, along with the group memberships, and output it all to a single .csv file. In the .csv file, I would like to have the group names as the column headers, and underneath
    the group name, list all the members of the group down through the column. So for example, if User1 owns 3 groups, the output would look like:
    What I'm having trouble with is outputting the objects to the .csv using New-Object psobject, and I'm starting to wonder if there is an easier way to do this and my brain is just fried.
    Any ideas?

    OK so I can try and give some code here, but I'm asking more of a concept question about how PowerShell builds objects so I'm not sure it will help....
    $User = "User1"
    get-adgroup -filter {managedby -eq $user} -pr member | %{
    $_.name
    $_.member
    OK so this is a simple script that outputs a group name followed by the membership, all in a single column. What I would like is for the group names to each be the header of a column, and have the membership listed underneath. For example:
    Is this possible in PowerShell?

  • Multiple smartform output to single pdf file

    HI,
    I am new to ABAP. I have a requirement to combine multiple smartfrom output to  single pdf file.  I searched in this site. I got material but i did not get the complete concept. Can anybody tell me the methodology and sample code to do that.
    Thanks & regards,
    Maha.

    Hi Mahalakshmi,
    Clik on the link to view document: <b>[Combining Multiple Smartform Outputs Into One PDF File|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?overridelayout=true]</b>
    Thanks
    Venkat.O

  • How can we save multiple IDocs as a single Flat file in R/3 system ?

    Hi,
    How can we save Multiple Idocs as a single Flat IDoc in R/3 (Not xmlized)
    Kulwinder

    Hi,
    Check this link for Mutiple IDOCs into single File.
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    Regards,
    phani
    Reward points if Helpful:)

  • To show the result of 2 grids in a single csv file

    Hi,
    i want to show 2 grids(seperately) in a csv file.i created a aggregate query that is giving me result of 2 grid seperately  but when i use a igrid template with aggregate query it is giving me result in a single row.i.e instead of giving 2 grids it is giving result with all the columns in a single row .I am using Applet.saveas CSV File();is there any way to have 2 seperate grid in a single Excel file.
    thanks in advance.

    Karthik
    Aggregate Query is mostly used to combine multiple queries which have at least one common column among those.
    For ur requirement, u can use direct BLS with the help of Action Block <b>WriteFile</b>.
    <b>Scenario :</b> u hv 2 queries - one with 4 columns A, B, C & D; another with 2 columns E & F
    U want to display those tables separately in one single Excel Sheet.
    <b>Solution :</b> Forget AggregateQuery and Take the following steps
    Step 1: Take those two Queries in one sequence
    Step 2: Define two Local variables - Text1 & Text2 with String Data Type
    Step 3: Use Repeater to loop one query's result and Assign the Looping results to the Local.Text1 using action <b>Assignment</b> as following expression in the Link Editor 
    <b>Local.Text1 &
    Repeater_0.Output{/Row/A} & tab &
    Repeater_0.Output{/Row/B} & tab &
    Repeater_0.Output{/Row/C} & tab &
    Repeater_0.Output{/Row/D} & crlf
    </b>
    Step 4: Use another Repeater outside the first Repeater to loop 2nd query's result and Assign the looping results to the Local.Text2 in similarly way as follows in the Link Editor
    <b>
    Local.Text2 &
    Repeater_1.Output{/Row/E} & tab &
    Repeater_1.Output{/Row/F} & crlf
    </b>
    Step 5: Use action <b>WriteFile</b> outside those above Repeaters and take the mode <b>APPEND</b> and FilePath <b>C:
    test
    TwoTables.xls</b> and Text as follows
    <b>
    "A" & tab & "B" & tab & "C" & tab & "D" & crlf & Local.Text1 & crlf & crlf &
    "E" & tab & "F" & crlf & Local.Text2
    </b>
    in the Link Editor
    Step 6: Hit F5/F6 and see the Excel File with two tables showing separately in the mentioned path above.
    Regards
    Som

  • Append or combine multiple IDOCs into a single IDOC file

    Hi All,
    We are implementing multiple new payment types that will generate IDOC files for us to send to the bank.  To keep the cost to the minimum, the requirement is to combine multiple IDOCs to a single file.
    I'd like to know the most efficient way to complete this task.  Also, I am new to this forum, please let me know if I need to include additional information.
    Your help will be deeply appreciated.
    Thank you,
    Joanne T.

    Hi Milind,
    One way you can do this is generate each report in PDF or Postscript, and then use Adobe Acrobat Distiller to combine the files into one PDF document.
    Regards,
    Stewart

  • Error while writing to a .CSV file

    hi,
    I am writing output from PL/SQL block to a .CSV file.
    CREATE OR REPLACE PROCEDURE wr_csv
    AS
    BEGIN
    DECLARE
    abc VARCHAR2(10);
    file_name VARCHAR2(30);
    output_file utl_file.file_type;
    BEGIN
    SELECT ename INTO abc FROM EMP;
    file_name :=('Testwriting.CSV');
    output_file :=utl_file.fopen('d:\test',Testwriting.CSV,'W');
    utl_file.put_line(output_file,'NAME: '||abc );
    utl_file.fclose(output_file);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLCODE||SQLERRM);
    END;
    END wr_csv;
    i am getting a error message:
    LINE/COL ERROR
    11/1 PL/SQL: Statement ignored
    11/40 PLS-00201: identifier 'TESTWRITING.CSV' must be declared
    Is it related to changes in the init.ora file ?
    Please Suggest..

    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLCODE||SQLERRM);
    ENDDont use like this..
    U never know if any error happens..
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "SCOTT.WR_CSV", line 7
    ORA-06512: at line 2
    Message was edited by:
    jeneesh

  • Building webservices from multiple ejbs in a single ejbjar file

    Hi,
    I have multiple ejbs packaged in a single ejbjar file. How to generate webservices for each ejb from this ejbjar file.
    I will really appriciate if anybody can give some guidance on this.
    Regards
    Rao Peddi
    email: [email protected]

    Assuming you are using servicegen ant task, you can firstly start by using a separate <service> element for each web service you are generating. And within each <service> element you would then specify ejbJar attribute to point at your single ejbjar alongwith includeEJBs attribute which points to the specific EJB in this ejbjar file (note you would specify the <ejb-name> value of the specific ejb present in ejb-jar.xml inside your ejbjar file).
    Note that the individual services would be referred to by their specific serviceUri.
    The following is a simple example using ejbJar inside a single <service> element.
    <servicegen destEar="ears/myWebService.ear" warName="myWAR.war" contextURI="web_services" > <service ejbJar="jars/myEJB.jar" targetNamespace="http://www.bea.com/examples/Trader" serviceName="TraderService" serviceURI="/TraderService" generateTypes="True" expandMethods="True" > </service> </servicegen>
    Thanks
    Shridhar

  • Need help combining multiple audiobook cds into single mpeg file for Ipod

    I have been unable to find an application that will let me combine multiple MPEG audio files into a single MPEG file. My goal is to combine several CDs from an audiobook into a single file so that I can listen to it on my Ipod. Also, it would take up a lot less space as an ITunes listing. Mediajoiner was recommended on some other forums, but I could not find a version that worked with OS X and Java 1.5.
    Any help is appreciated

    [MP3Trimmer|http://www.deepniner.net/mp3trimmer>

  • Multiple JSPs output into single PDF file

    Could anyone guide me on how do I combine output of multiple JSP files into a single PDF file? I have got 8 different reports and shall required to have single output of all of them in a PDF file. Its urgent. Please help.

    Hi Mahalakshmi,
    Clik on the link to view document: <b>[Combining Multiple Smartform Outputs Into One PDF File|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?overridelayout=true]</b>
    Thanks
    Venkat.O

  • How to save multiple forms to a single postscript file

    Hi All,
    We have a requirement where we have to print 10 to 20 forms as a batch print each day.
    What this means, is that at the end of the day, a single print operation will print all the forms.
    The Client is expecting us to create a single postscript file for all these forms.
    I need someone to explain to me the postscript functionality and how it is possible to save the information of 20 forms in a single postscript file.
    Thanks,
    Urmila

    HI,
        We can use more than one Form in a Driver Program. It's Possible to Print also. Use this Functional Modules
    Open_Form.
    Start_Form.
    Write_Form.
    End_form.
    Start_form
    Write_form
    Start_form.
    Close_form.
    Revert Back if u have any clarification.
    Regards,
    Saran

Maybe you are looking for

  • Apache not working  with FMS 4.5 on Windows 2008

    FMS 4.5.1 Windows 2008 SP2 (64bit). I've searched everywhere for a possible solution to this, so my apologies if this has been asked before and my thanks for any potential help that anyone can offer to help resolve this. We are deploying Adobe Flash

  • No batch session created for report RFUMSV50

    if i execute the report RFUMSV50 for batch session, in sm35 no session is created. when i first time ran, then batch was created. i have not changed anything in settings. after that i posted 5 end to end cases from po to payment. now if i run report

  • Error thread java : problem with the function "resume 0x***"  (forum sun)

    One problem with the function of jdb occured when I tried to use it to pilot the processor with differents threads. In fact, I use a simple example with 2 threads. I stop the two threads with two breakpoint, and I want to resume one or the other (wit

  • IDVD 5 unexpectedly Quits at "Process Movies"

    I also am having a problem with burning a DVD as some other have had. iDVD quits as soon as it hit the Process Movies part. My configuration is this: G4 OSX.3.9 1 gig RAM iDVD 5.0.1 Using Best Quality (over 60 minutes of stuff) I have slideshows and

  • Forward Referencing Shared Members and EIS

    I was wondering if there is a way to avoid the forward referencing shared members errors I get when creating an account hierarchy with EIS. I am creating the hierarchy automatically from a parent-child recursive table with no manual maintenance.Thank