How to split  the records into two parts

Hi experts,
I have a field with 75 char length, this field have records also, Now i want to split the field into two differnt fields. That means upto first 40 char goes to one field, from 41st char to 70 char goes to another field, for that how to split record into two parts.
Plz advice this,
Mohana

Hi,
Do the following:
f1 = fsource(40).
f2 = fsource+40(30).
where fsource is the 70 character original string and target strings are f1 (length 40) and f2 (length 30).
Cheers,
Aditya
Edited by: Aditya Laud on Feb 22, 2008 2:10 AM

Similar Messages

  • How to Split the Frames into two halfs

    Hi,
    In this program i used trees, to display ldif file.. and all the dn's and their properties are displaying but my need is if i click on Nodes then the properties of that node will be displayed seperately ie; the frame had to divided in to two halfs..the properties are displayed in second half
    please help me if anyone knows..
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Set;
    import java.util.StringTokenizer;
    import javax.swing.JPanel;
    import com.sun.org.apache.xpath.internal.patterns.NodeTest;
    import javax.swing.*;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreeNode;
    import javax.swing.tree.DefaultMutableTreeNode;
    import java.io.StringReader;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.FileReader;
    public class LDIFTree
    public LDIFTree() throws FileNotFoundException
    FileReader fr;
    fr = new FileReader("c://data.ldif");
    //FileReader fr= new FileReader("c://data.ldif");
    JFrame f = new JFrame("LDIFTree");
    BufferedReader reader = new BufferedReader(fr);
    JTree tree = new JTree(new DefaultTreeModel(buildModel(reader)));
    f.getContentPane().add(new JScrollPane(tree));
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setSize(400, 400);
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    private TreeNode buildModel(BufferedReader reader)
    DefaultMutableTreeNode root = new DefaultMutableTreeNode("root", true);
    DefaultMutableTreeNode currentChild = null;
    try
    String line = reader.readLine();
    while(line != null)
    line = line.trim();
    if (line.startsWith("dn"))
    // add the current dn to the root
    currentChild = new DefaultMutableTreeNode(line, true);
    root.add(currentChild);
    // else if (line.startsWith("-") || line.length() < 1)
    // { // skip it
    //} else
    // add the property to the current dn
    DefaultMutableTreeNode propertyNode = new DefaultMutableTreeNode(line, false);
    currentChild.add(propertyNode);
    line = reader.readLine();
    catch (IOException x)
    x.printStackTrace();
    return root;
    public static void main(String[] args) throws FileNotFoundException
    new LDIFTree();
    Thanks,
    Raga

    Use a JSplitPane to divide your JFrame
    // tree
    JTree tree = new JTree();
    createTree(tree);
    JScrollPane scrollPane = new JScrollPane(tree);
    // view panel
    JPanel viewPanel = new JPanel();
    // put th etree on th eright, and the view panel on the left
    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT , scrollPane, viewPanel);
    // create the frame and put the component together
    JFrame frame = new JFrame();
    Container c = frame.getContentPane();
    c.add(splitPane, BorderLayout.CENTER);
    check out the java tutorial on creating a tree. you add a TreeSelectionListener to listen to event generated when the use click on the node
    The Java alamac site has a simple tutorial .. you can start from there.

  • How to split invoice/document  into two venders?

    Can anyone please tell me how to split invoice/document into two vendors.  Like if I get an invoice for $1000 and it needs to be splitted between father and son, $500 to each.  How would I set that up in SAP?  I am not sure if this will be an invoice split or a document split.
    Thanks
    Monika

    If you are using an FI  entry F-43 to generate invoice this can be done by giving the same invoice ref. in the Inv. Ref. field  for two vendors. This is manual
    Document Split will split the document between two profit center and not between vendors.

  • Why is it when i update my status on facebook from iohone it splits the updates into two differents boxes with some funky symbol. I have uninstall facebook and installed it over and it still does it. only the facebook IPHONE app.

    why is it when i update my status on facebook from iphone it splits the updates into two differents boxes with some funky symbols at the beginning.. I have uninstall facebook and installed it over and it still does it. only the facebook IPHONE app where it says to update staus text to FBOOK  i have already update my phone too.
    if i go on the facebook site and update there through a brower on iphone it will work fine just cant us IPHONE mobile upload,  . But its a pain of not using my IPHONE APP for facebook cause it does that.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Splitting the Company into Two Entities

    Our company is currently using SAP ECC, SAP SCM and SAP CRM. We have planned to split the company into two to manage the existing two different businesses in separate landscape. (i.e business A & B are operated under one company code). In future state, business A and B will be operated in separate landscapes.
    Has anyone carried out similar company split activities in the past? What are the challenges encountered in such a large transformation program? What are the key points to be considered in such transformation?

    Hi,
    That is one of the approach but it is very time consuming activity. Other thing I can suggest you to do the archiving of the data that is not required in the new landscape and then delete the data based on business process and other scenarios.
    Check below 2 links:
    http://service.sap.com/slo
    SAP Demerger
    Thanks
    Sunny

  • How to split one monitor into two, differently configured desktops

    Hello,
    I have a 27" iMac. I would like to split the screen into two differently configured desktops or monitors. Apps like TwoUp or Divy don't exactly do this. I'll explain it with an example:
    Suppose I'm working on a document and I need to open many folders to retrieve files. One common problem is that opened folders overlap each other and sometimes they overlap with the document I'm working on, or they go underneath the document. I would like to split the screen vertically in, say, two virtual, independent desktops/monitors, like this:
    - one window/space on one side (say, on the left) of the screen would contain the document  from top to bottom, with no dock bar on the bottom
    - the other window/space (right) would behave as a regular, full desktop, with the entire dock on the bottom
    In this way, if I need to navigate to find a file to use in the document, I would move the cursor to the right. The Finder would work only in this window/space, thus windows or other applications would never overlap or clutter the left side of the screen. Drag-and-drop from right to left should be possible.
    One way to imagine it is as if the 16x9 monitor were comprised by two vertical, 8x9 independent monitors side by side, each with its own configuration.
    Is this possible? Can anyone recommend an application or type of setup?
    Thank you,
    -celso

    Looking for something like this?
    You can tell Display Maid to save the positions of your open windows across many apps and later restore those positions when things become a mess. With Display Maid you don’t have to restore windows one at a time, or even one app at a time. Display Maid restores all saved window positions across all apps with one command. It will also restore window positions automatically when it detects a workspace change.
    http://www.funk-isoft.com/index.php/display-maid

  • How to split a text in two parts?

    Hello everyone,
       I'm trying to make a text appearance, with a smilar effect as the one in this video (1 mn 43) :
    After Effects Template : 65 Title Animations - YouTube
       My problem is, I'd like to split my text in two parts, at the middle of a letter, so I can separate the text in two parts then gather it up at the end of the animation.
      I've tried to take a look at the text's animation tool, where you can make it spin, or rotate and this kind of stuff, but I can't find out how to make a letter really split at its middle.
    Thank you in advance and sorry for my english.

    Duplicate your text layer and mask.

  • How to split XML document into two

    I want to create new docuemnt by taking part of the existent XML document under the node document_text
    vNodeList := xmldom.getElementsByTagName(vdoc, 'document_text');
    vNode := xmldom.item(vNodeList, 0); -- The xmldom.getNodeName(vNode) of this node is exactly what i am
    -- looking for
    vdoc:= xmldom.makeDocument( vNode);
    insert into cltab values (empty_clob()) returning cl into cl;
    xmldom.writeToClob(vdoc_txt, cl);
    But after that i am still getting the whole document tree, - copy of the whole document.
    What am i doing wrong? What functions should i use for this kind of task? xmldom.clonenode?
    Could you recommend any good description of the xmldom package?
    Thanks,
    Roman

    If you are using an FI  entry F-43 to generate invoice this can be done by giving the same invoice ref. in the Inv. Ref. field  for two vendors. This is manual
    Document Split will split the document between two profit center and not between vendors.

  • How to split the report into different versions view 1 agent delivery

    Hello
    I have a scenario where I need to send a dashboard to multiple users. The user information are stored in the table like the following:
    USER    Day     Car                  Pay Type                    Cost   Email
    USER1
    -10
    -2
    Honda
    Customer Pay
    500
    [email protected]
    USER2
    -4
    -1
    AUDI
    Customer Pay + Warranty
    1000
    [email protected]
    USER2
    -4
    -1
    PORSCHE
    Customer Pay + Warranty
    1000
    [email protected]
    Now I have a dashboard call Car, on this dashboard I have prompts like Date, Car, Pay Type, Cost, pretty much the same name as the columns in the above table. I have also set up session variables to pick up users based on the log in.
    Now for user2, he is getting 1 email, which is the dashboard with both Audi and Porsche on there. Instead, he wants to 2 attachments, 1 for Audi and 1 more Porsche. Is there a way to achieve this using 1 agent?
    Please let me know how to split the result sets based on user records in the table
    Thank you

    Hello,
    Thank You very much for the useful hint.
    Regards
    Aloha

  • How to split a file into two small file

    Hi All,
              I want to raed a file from FTP server.Then i have to split a file into two small file.File format look like this.
             R01!service_order!item_guid!resource_guid!assignment_guid
             R02!Service_order!product_id!product_discription!quantity
             R02!Service_order!product_id!product_discription!quantity
             R02!Service_order!product_id!product_discription!quantity
    i want split file into 2 file,according to header and item details.one table containt header information (label R01) and second table containt (label R02).
    can anybody help me for this.how can i split into 2 file.
    Thanks
    Vishwas Sahu

    Create 2 internal tables. sat it_header, it_detail
    Check for 1st 3 characters and if it is R01 then send it into it_header and if it comes out to be R02 then send it to it_detail.
    Once done... You can either attach these tables into mail as two seperate files
    Or you can download each internal table using GUI_DOWNLOAD.
    Hope this helps!!
    Kanchan

  • PRE9: How to split one clip into two (or more) clips?

    I can't believe this is so hard to do... But HOW?

    You don't necessarily need to separate the file into individual clips.  When you do a cut on the timeline, this is a virtual cut, leaving the original file untouched but determining what will appear in the output.  You can split the clip into multiple pieces, delete the bits you don't want, add transitions, insert new bits, whatever you want, all without affecting the original file in any way.  Once you're happy, you output a new file using the Share options, and you get a new video file, with your original files still untouched.
    If you want to split your file into multiple individual files, you can use the sliders on the time scale, and export (Share) using the Share Work Area Only checkbox.  If you're doing this for purposes of reassembly, it would be better to save the individual clips in as lossless a format as possible, the default AVI format taking considerably more space but not losing quality.  Hint: the sliders can be positioned to the time marker using Alt-[ and Alt-].  Once you've done this, note that your original file will still be there, untouched.
    There is also VideoRedo Plus, a cheap program which gives frame-accurate selection and allows rapid subdivision of a piece of footage.  It doesn't re-render as PE9 would (this is where loss of image quality creeps in using compressed formats such as MPEG), copying the original frames.  You can then reassemble the bits using your video editor.

  • How To Split One Record  into 30 Records(Number of days in a Month)

    Hi Experts,
      we are getting the montly(yearmonth) Forecast data from flat file we need to generate the report which shows the daily Forecast data,
    For example for the month of June Forecast we have  150EA.
    Flat file data is like this
      0calday    Qty
      201006     150
    we need to show the report like datawise
       Calday                                     Forecast qty
    20100601                                          5
    20100602                                          5
    20100603                                          5
    20100604                                          5
    20100605                                          5
    20100606                                          5
    20100630                                           5
    its like month forecast / Number of days in a month.
    we can achive these  in two ways as per my knowledge
    1. At the time loading data
    2. Reporting level
    Which is the best way
    how can we achive this.
    Thanks
    Chandra

    Hey.  There was a similar posting I gave a suggestion on a while back.  Here is the link...
    Re: Spliting records into cube
    As far as the correct time of doing this, I would definitely do this at the time of data load and not time of reporting. 
    Hope you find it helpful.
    Thanks

  • Split the column into two based on conditions

    Hello,
    I have 2 tables Country and Continent.
    Continent has the data like this
    ID               Name
    1               Asia
    2              Africa
    3              North America
    4             South America
    Country has 
    ID                Name                 ContinentID            Population
    1                  China                  1                                 2000
    2                  India                   1                                 1500
    3                  Ethiopia              2                                 7500
    4                  United States       3                                5000
    I need the count of countries for each continent  break into two columns based on the population. One column showing the count of countries with population <= 2000 and the other column should show the count of countries with population >2000
    How can I achieve this?
    Please help.
    Thank you

    Here you go:
    DECLARE @continent TABLE (ID INT, Name VARCHAR(30))
    INSERT INTO @continent (ID, Name) VALUES (1, 'Asia' ),(2, 'Africa' ),(3, 'North America'),(4, 'South America')
    DECLARE @country TABLE (ID INT, Name VARCHAR(30), ContinentID INT, Population INT)
    INSERT INTO @country (ID, Name, ContinentID, Population) VALUES (1, 'China', 1, 2000),(2, 'India', 1, 1500),(3, 'Ethiopia', 2, 7500),(4, 'United States', 3, 5000)
    SELECT COUNT(*), ct.name
    FROM @country c
    INNER JOIN @continent ct
    ON c.ContinentID = ct.ID
    GROUP BY ct.name
    and for the high/low:
    DECLARE @continent TABLE (ID INT, Name VARCHAR(30))
    INSERT INTO @continent (ID, Name) VALUES (1, 'Asia' ),(2, 'Africa' ),(3, 'North America'),(4, 'South America')
    DECLARE @country TABLE (ID INT, Name VARCHAR(30), ContinentID INT, Population INT)
    INSERT INTO @country (ID, Name, ContinentID, Population) VALUES (1, 'China', 1, 2000),(2, 'India', 1, 1500),(3, 'Ethiopia', 2, 7500),(4, 'United States', 3, 5000)
    ;WITH popRank AS (
    SELECT ROW_NUMBER() OVER (PARTITION BY ct.ID ORDER BY POPULATION DESC) AS row, ct.name AS continentName, c.name AS countryName, c.population, c.ContinentID
    FROM @country c
    INNER JOIN @continent ct
    ON c.ContinentID = ct.ID
    SELECT r.countryName AS biggestPopCountry, r.population as biggestPopCount, r1.countryName AS lowestPopCountry, r1.population as lowestPopCount
    FROM popRank r
    INNER JOIN popRank r1
    ON r.ContinentID = r1.ContinentID
    AND r1.row = (SELECT MAX(row) FROM popRank WHERE ContinentID = r.ContinentID)
    AND r.row = 1

  • How Can insert the records into Excel_sheet by using SQL Task-SSIS ?

    As per requirement ,
    insert the records in excel sheet(DT)  by using SQL Task-SSIS .
    I used SQL query in SQL Task-SSIS:
    e.g.., INSERT INTO [DT$B1:B1] VALUES ('COMMM')
    but error:Executing the query "INSERT INTO [DT$B1:B1] VALUES ('COMMM') " failed with the following error: "This table contains cells that are outside the range of cells defined in this spreadsheet.". Possible failure reasons: Problems
    with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Please any suggestion  ...
    -MADHU

    then first create a table inside Excel sheet based on your source data. You can Execute sql task for that using excel connection. then use insert to populate it
    see an example here where I create a dynamic sheet using execute sql task
    http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Splitting the timeline into two scenes

    Let me explain, I spent the last week shooting a movie for an English project that's due on Tuesday. I gave myself two days for the editing, because it really shouldn't of been too hard. I still don't think it would've been hard at all if Canon hadn't ****** me over, and made it so i had to save a VRO file. So i spent half the night last night finding a program that could convert VRO into something i could import into after effects. I think I finally found something that converted it into a MPEG file.
    But! When it converted, it compressed all 77 scenes i'd shot into one giant scene. And i didn't shoot in order. So after a bunch of trouble trying to separate the scenes, after 4 hours of not even being able to get it into after effects, i just gave up and went to bed. I really need help, this is the only major grade of the six weeks and if i fail it, I could go to summer school. Plus, i have six other people counting on me.
    Also, i'd like to ask about audio. I think my problem is that Canon (I absolutely hate them after this) saved my audio as some sort of file that most programs cant read. And so, even though i got it into after effects, it cant read the audio. I've tried 0, and 'dot', and just about all the quickfixes i've seen. Does anyone have anything to say about this?
    I'm sorry i typed such a long question, but i'd really appreciate any help you can give me.

    The other problem I see here is that you may not be using the right tool. After Effects is a really great for postproduction / motion design / visual effects, but it's not an editing tool.
    You should really use an NLE (Non Linear Editing) software such as Premiere Pro. It will save you a lot of pain cutting / moving / editing / previewing your movie.
    I know what's done is done, but i put it here for general advice, because you're not the first, and won't be the last, but before shooting with a camera, read the official specs online, google it to see what other thinks about it, so you are sure to select a camera that will give you compatible files with your software.
    I bought the very first AVCHD Sony camera when it was released because i loved the idea of tapeless workflow. That was around the CS3 release. On the Avchd official site i saw an Adobe logo so i bought the camera without any further investigation. I had a hell of a time figuring out how to read/convert and finally import my files inside an NLE (even Sony Vegas wasn't support Avchd at that time...). So now i double check before buying a camera, because i don't want to go through that again. And i'm sure you will do that next time !
    But don't lose hope, there is always a solution.

Maybe you are looking for