SPLIT ... AT '#' INTO ?

Hi,
I'm reading values from a CSV file using GUI_UPLOAD. The CSV file uses spaces as separators. The spaces appear in the internal table that contains the lines of the CSV file as '#'-symbols. Now I want to fill the lines from the internal table into a text record using SPLIT AT INTO. The problem is that using '#' as the separator character in SPLIT ... AT '#' INTO doesn't work. The entire line is simply filled into the first field of the text record and the remaining fields remain empty.
Any ideas how this problem can be solved?
Thanx, Oliver Plohmann

Hi,
while using gui_upload use HAS_FIELD_SEPARATOR = 'X'.
if you still getting '#', then you need to use
<b>split ... at CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB into...</b>
regards
vijay
But i hope if you provide HAS_FIELD_SEPARATOR = 'X' will solve your problem.

Similar Messages

  • How to adjust splitted lines into one line in Text file?

    Hi Guys,
    I have a text file with 3 fields(comma separated): GLCode (Number), Desc1 (Char), Desc2(Char) and need to load it into BW.
    My Text file looks like:
    1011.00,"Mejor PC Infrastructure","This line is ok."
    1012.00,"Telephone Equipment $","This line ends in next line.   
    1)Need to change the equipment immediately.
    2)Take immediate action"
    1013.00,"V1 Computer Server Infrastructure # Equip","For purchases
    of components that make up the company's network, such as servers, hubs, routers etc."
    1014.00,"Flash Drive","Need to provide all IT Developer"
    This is how file looks like. Now I need the followings:
    1. Need to remove the space and need to adjust the splitted line into one. Say here
    line/record 2 is splitted into 3 lines and need to adjust in 1 line.
    2. In Line 5 (Record 3) data splitted into 2 lines and need to make 1 line.
    3. Need to remove bad characters.
    Could someone help me please how to proceed ?
    Regards,

    Not quite correct by my testing.  Try:
    $i=0
    Get-Content .\test.txt | ForEach {
    If ($i%2){
    ("$Keep $($_)").Trim()
    }Else{
    $keep=$_
    }$i++
    Good catch!
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • How To UPLOAD a DATA (.DAT) fiel from PC to internal table and then split it into the data different columns

    Hi all,
    I am new to ABAP Development. I need to upload a .DAT file (the file doesn#t have any proper structure-- Please find the .DAT file in the attachment). After uploading the DATA (.DAT) fiel I need to split in into different columns. Refering the attached .DAT fiel the fields in bracets like:
    [Arbeitstag],  [Pecunia], [Mita], [Kunde], [Auftrag] and  [Position] are different fields that need to be arranged in columns in an internal table. this .DAT fiel which I want to upload and then SPLIT it into various fields will will treated as MASTER DATA table for further programming. The program that I had written is as below. Also please refer the attached .DAT table.
    Please if any one could help me. i searched a lot in different forums but couldn't find me  a solution. Also note that the attached fiel is in text (.txt) format here but in real situation the same fiel is in DATA (.DAT) format.
    *& Report  ZDEMO_ZEITERFASSUNG9
    REPORT  ZDEMO_ZEITERFASSUNG9.
    Types: Begin of ttab,
            Rec(1000) type c,
           End of ttab.
    DATA: itab  type table of ttab.
    DATA: wa_tab type ttab.
    DATA: file_str type string.
    Parameters: p_file type localfile.
    At selection-screen on value-request for p_file.
                                           CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
                                            EXPORTING
    *                                          PROGRAM_NAME        = SYST-REPID
    *                                          DYNPRO_NUMBER       = SYST-DYNNR
    *                                          FIELD_NAME          = ' '
                                               STATIC              = 'X'
    *                                          MASK                = ' '
                                             CHANGING
                                               file_name           = p_file.
    *                                        EXCEPTIONS
    *                                          MASK_TOO_LONG       = 1
    *                                          OTHERS              = 2
    Start-of-Selection.
      file_str = P_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\BUP_ZEIT.DAT'   " This the file  source address
          FILETYPE                      = 'DAT'
          HAS_FIELD_SEPARATOR           = ';'
    *     HEADER_LENGTH                 = 0
    *     READ_BY_LINE                  = 'X'
    *     DAT_MODE                      = ' '
    *     CODEPAGE                      = ' '
    *     IGNORE_CERR                   = ABAP_TRUE
    *     REPLACEMENT                   = '#'
    *     CHECK_BOM                     = ' '
    *     VIRUS_SCAN_PROFILE            =
    *     NO_AUTH_CHECK                 = ' '
    *   IMPORTING
    *     FILELENGTH                    =
    *     HEADER                        =
        tables
          data_tab                      = itab
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP at itab into wa_tab.
            WRITE: / wa_tab.
      ENDLOOP.
    I will be grateful to all you experts for ur inputs
    regards
    Chandan Singh

    For every Auftrag, there are multiple Position entries.
    Rest of the blocks don't seems to have any relation.
    So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
    Try out this snippet.
    DATA lt_data TYPE TABLE OF string.
    DATA lv_data TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = 'C:\temp\test.txt'
      CHANGING
        data_tab = lt_data
      EXCEPTIONS
        OTHERS   = 19.
    CHECK sy-subrc EQ 0.
    TYPES:
    BEGIN OF ty_str,
      a1 TYPE string,
      a2 TYPE string,
      a3 TYPE string,
      p1 TYPE string,
      p2 TYPE string,
      p3 TYPE string,
    END OF ty_str.
    DATA: lt_str TYPE TABLE OF ty_str,
          ls_str TYPE ty_str,
          lv_block TYPE string,
          lv_flag TYPE boolean.
    LOOP AT lt_data INTO lv_data.
      CASE lv_data.
        WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
             OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
          lv_block = lv_data.
          lv_flag = abap_false.
        WHEN OTHERS.
          lv_flag = abap_true.
      ENDCASE.
      CHECK lv_flag EQ abap_true.
      CASE lv_block.
        WHEN '[Auftrag]'.
          SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
        WHEN '[Position]'.
          SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
          APPEND ls_str TO lt_str.
      ENDCASE.
    ENDLOOP.

  • Reading fixed length flatfile & splitting it into header and lineitem data

    Hi Friends,
    I am reading a fixed length flat file from application server into an Internal table.
    But problem is, data in flat file is in the below format with fixed start and end positions.
    1 - 78 -  control header
    1 - 581 - Invoice header data
    1 - 411 - Invoice Line item data
    1 - 45 -   trailer record
    There will be one control header and one trailer record per file and number of invoice headers and its line items can vary.
    There is unique identifiers to identify as below.
    Control header - starts with 'CHR'
    Invoice Header starts with - '000'
    Invoice Lineitem stats with - '001'
    trailer record - starts with 'TRL'
    So its like
    CHR.......control  data..(79)000.....header data...(660)001....lineitem1...(1481)001...lineitem2....multiples of 411 and 581 and ends with... TRL...trailer record..
    (position)
    I am first reading the data set and store in internal table with a field of 255char.
    by looping on above ITAB i have to split it into Header records and line item records.
    Did anyone face this kind of scenario before. If yes appreciate if you can throw some ideas on logic to split this data.
    Any help in splitting up the data is highly appreciated.
    Regards,
    Simha
    ITAB declaration
    DATA: BEGIN OF ITAB OCCURS 0,
                   FIELD(255),
               END OF ITAB,
                lt_header type table of ZTHDR,
                lt_lineitem type table of ZTLINITM.

    Hi,
    i am sending sample code which resembles your requiremeant.
    data: BEGIN OF it_input OCCURS 0, "used for store all the data in one line.
          line type string ,
          END OF it_input,
          it_header type TABLE OF string WITH HEADER LINE,"use to store all header with corresponding items
          it_item   type TABLE OF string WITH HEADER LINE.."used to store all item data
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'd:\test.txt'
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      = it_input
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT  it_input.
       write : it_input-line.
    ENDLOOP.
    before doing the below steps just takethe controle record and trail record cutt of from the table input based up on the length
      split it_input-line AT '000' INTO TABLE it_header IN CHARACTER MODE.
      LOOP AT  it_header.
        split it_header AT '0001' INTO TABLE it_item IN CHARACTER MODE.
        write :/ it_header.
      ENDLOOP.
    after this you need to cut the records in tocorresponding  fields in to respective tables by putting loop on item and header table as i decleared above.
    i think this may solve your problem you need to keep some minnor effort.
    Regaurds,
    Sree..

  • Split data into different fields in TR

    I have a flat file with space (multiple spaces between different fields) as a delimiter. The problem is, file is coming from 3rd party and they don't want to change the separator as comma or tab delimited CSV file. I have to load data in ODS (BW 3x).
    Now I am thinking to load line by line and then split data into different objects in Transfer rules.
    The Records looks like:
    *009785499 ssss BC sssss 2988 ssss 244 sss 772 sss  200
    *000000033 ssss AB ssss        0  ssss   0 ssss 0 ssss 0
    *000004533 ssss EE ssss        8  ssss   3 ssss 2 ssss 4
    s = space
    Now I want data to split like:
    Field1 = 009785499
    Field2 = BC
    Field3 = 2988
    Field4 = 244
    Field5 = 772
    Field6 = 200
    After 1st line load, go to 2nd line and split the data as above and so on. Could you help me with the code pleaseu2026?
    Is it a good design to load data? Any other idea?
    I appreciate your helps..

    Hi,
    Not sure how efficient this is, but you can try an approach on the lines of this link /people/sap.user72/blog/2006/05/27/long-texts-in-sap-bw-modeling
    Make your transfer structure in this format. Say the length of each line is 200 characters. Make the first field of the structure of length 200. That is, the length of Field1 in the Trans Struc will be 200.
    The second field can be the length of Field2 as you need in your ODS, and similarly for Field3 to Field6. Load it as a CSV file. Since there are no commas, the entire line will enter into the first field of the Trans Structure. This can be broken up into individual fields in the Transfer Rules.
    Now, in your Start Routine of transfer rules, write code like this (similar to the ex in the blog):
    Field-symbols <fs> type transfer-structure.
    Loop at Datapak assigning <fs>.
        split <fs>-Field1 at 'ssss' into <fs>-field1 <fs>-field2 <fs>-field3....
        modify datapak from <fs>
    endloop.
    Now you can assign Field1 of Trans Struc to Field1 of Comm Struc, Field2 of Trans Struc to Field2 of Comm Struc and so on.
    Hope it helps!
    Edited by: Suhas Karnik on Jun 17, 2008 10:28 PM

  • Split signal into XY components

    Hi,
    I am new to LabVIEW but have spend a huge amount of time (mainly going round in circles not getting anywhere) trying to get my VI design working.  All very frustrating since I know what I want the VI to do but cannot figure out how to implement it in LabVIEW (despite hours of searching in this LabVIEW forum and in the help files).
    I need to....
    Take a signal from DAQ Assistant, when the signal is at a particular threshold (user configurable via Front Panel) log the data to Measurement File and stop logging when the signal reaches a higher threshold (I tried using the 'Trigger and Gate' VI in Express but it doesn't allow user configurable values for thresholds (only integers)). 
    Then I need to read back the Measurement File and split it into its XY parts to display on an XY Graph (and keep it displayed on the front panel for user observation).
    Any help would be greatly appreciated but please explain in detail as I've already played with LabVIEW for hours and hours and haven't got anywhere.
    Regards,

    Hi bunnykins,
    I think you can try using normal greater than /less than comparison functions and log the data using the Write to measurement file with append to file option enable.I have attached the screenshot of the block diagram.Please have a look. Thanks and regards, srikrishnaNF
    Attachments:
    first.png.zip ‏21 KB

  • Split records into two files based on lookup table

    Hi,
    I'm new to ODI and want to know on how I could split records into two files based on a value in one of the columns in the table.
    Example:
    Table:
    my columns are
    account name country
    100 USA
    200 USA
    300 UK
    200 AUS
    So from the 4 records I maintain list of countries in a lookup file and split the records into 2 different files based on values in the file...
    Say I have records AUS and UK in my lookup file...
    So my ODI routine should send all records with country into file1 and rest to file2.
    So from above records
    File1:
    300 UK
    200 AUS
    File2:
    100 USA
    200 USA
    Can you help me how to achieve this?
    Thanks,
    Sam

    1. where and how do i create filter to restrict countries? In source or target? Should I include some kind of filter operator in interface.
    You need to have the Filter on the Source side so that we can filter records accordingly the capture the same in the File. To have a Filter . In the source data store click and drag the column outside the data store and you will have Cone shaped icon and now you can click and type the Filter.
    Please look into this link for ODI Documentation -http://www.oracle.com/technetwork/middleware/data-integrator/documentation/index.html
    Also look into this Getting started guide - http://download.oracle.com/docs/cd/E15985_01/doc.10136/getstart/GSETL.pdf . You can find information as how to create Filter in this guide.
    2. If I have include multipe countries like (USA,CANADA,UK) to go to one file and rest to another file; Can I use some kind of lookup file...? Instead of modifying filter inside interface...Can i Update entries in the file?
    there are two ways of handling your situation.
    Solution 1.
    1. Create Variable Country_Variable
    2. Create a Filter in the Source datastore in the First Interface ( SOURCE.COLUMN = #Country_Variable)
    3. Create a new Package Country File Unload
    4. Call the Variable in Country_Variable in Set Mode and provide the Country (USA )
    5. Next call the First Interface
    6. Next call the Second Interface where the Filter condition will be ( SOURCE.COLUMN ! = #Country_Variable )
    7. Now run the package .
    Solution 2.
    If you need a solution to handle through Filer.
    1. Use this Method (http://odiexperts.com/how-to-refresh-odi-variables-from-file-%E2%80%93-part-1-%E2%80%93-just-one-value ) to call the File where you wish to create store the country name into the variable Country_Variable
    2. Pretty much the same Create a Filter in the Source datastore in the First Interface ( SOURCE.COLUMN = #Country_Variable)
    3.Create a new Package Country File Unload
    4.Next call the Second Interface where the Filter condition will be ( SOURCE.COLUMN ! = #Country_Variable )
    5. Now run the package .
    Now through this way using File you can control the File.
    Please try and let us know , if you need any other help.

  • How to Split field  into multiple fields in  Import Manager without  delem

    Hi
      Is there any method to Split a record in MDM without using delimitter?
    I dont want to use any delemitter  My field content in Source is  PRODLABELPACK and I want to split it into 3 fields in destination  Field1= PROD
    Field2=LABEL   Field3=PACK
    I know how to split it if the content is PROD_LABEL_PACK .But we dont want to use delimiter in the firld and want to use some substring function
    Regards
    Prashant

    You Can use below FM  SWA_STRING_SPLIT -
    First Use READ_TEXT FM.
    then loop into
    loop at tline.
    Here use 'SWA_STRING_SPLIT' -> Pass tdline and append the text into other internal table.
    endloop
    Thank you
    Seshu

  • Splitting Application into separate projects

    I'd tried to split my domain layer (annotated EJB3) into separate project, from my service layer (EJB3 session beans) - that used to run together happily but I got the following error against each entity.
    Exception [TOPLINK-198] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DescriptorException
    Exception Description: In order to use ObjectChangeTrackingPolicy or AttributeChangeTrackingPolicy, class com.davinci.capital.domain.tran.Tran has to implement ChangeTracker interface.
    Descriptor: RelationalDescriptor(com.davinci.capital.domain.tran.Tran --> [DatabaseTable(TRAN)])
    When I put the projects back together I still got the problem. I think it might be related to the enhancement process and somehow picking the un-enhanced code.
    Is there someway to 'reset' a project/application? I tried removing the project (and leaving the source) and then creating a new one with the source still in place, but the error remains.
    Any ideas?
    Thanks
    Michael
    Message was edited by:
    mmcgovern

    Somewhat answered this myself.
    Appears that I had some unenhanced domain class files lying around in the DAO layer - these where getting picked up instead of the enhanced ones.
    However it appears I there is a problem having EJBs spread around different projects within the application. The above problem appears to be related to having two-way dependencies so I get two copies of classes file created - and it picks up the unenhanced one.
    The real problem is that I can't have EJB's in multiple projects - its appears to only create an ejb-jar.xml for EJBs in the "target" project (embedded OC4J) - the EJB's in the related projects are ignored.
    If could split EJBs into projects then I would not have two-way dependencies and the original problem goes away.
    Any ideas?
    null

  • HT1473 When downloading a CD album, if it contains different artists, the album is split up into separate albums/icons. How do I get all songs into one album (just like the original CD)?

    When downloading a CD album, if it contains different artists, the album is split up into separate albums/icons. How do I get all songs into one album (just like the original CD)?

    Generally, in iTunes, all you need to do is fill in an appropriate Album Artist to keep things together. For older iPods each track from the same album should have the same artist, or be marked as a compilation where appropriate. For iOS devices you may need to go to Settings > Music > Group By Album Artist > On.
    For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • [svn] 1384: Splitting DefineFont into the various DefineFont 1, 2, 3, etc SWF tag formats but retaining a common base DefineFont class so that embedded fonts are still retained as symbols for the SWF dictionary no matter what version of the SWF tag is us

    Revision: 1384
    Author: [email protected]
    Date: 2008-04-24 07:54:58 -0700 (Thu, 24 Apr 2008)
    Log Message:
    Splitting DefineFont into the various DefineFont 1, 2, 3, etc SWF tag formats but retaining a common base DefineFont class so that embedded fonts are still retained as symbols for the SWF dictionary no matter what version of the SWF tag is used.
    Also improving [Embed] so that it can recognize .TTC files as assets (previously these were only recognized through CSS @font-face rules).
    QE: Yes, please add a test case for using [Embed] to embed fonts from a TTC file in addition to our tests for @font-face. Note that the AFEFontManager must be configured for this scenario.
    Doc: No
    Checkintests: Pass
    Mxunit: AtEmbed Font suite: Pass
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/AbstractTranscoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/FontTranscoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/MimeMappings.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/CachedFontManager.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/Dictionary.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/MovieEncoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagDecoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagEncoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagHandler.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagValues.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/builder/tags/FontBuilder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFontAlignZones.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFontInfo.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tools/SwfxPrinter.java
    Added Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/DefineFont3Face.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont1.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont2.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont3.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont4.java
    Removed Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/DefineFontFace.java

    Running the script by python2 solves it for me:
    su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
    Best regards,
    Cedric

  • Splitting video into clips

    video downloaded from DVD will not split into clips for editing how can I split into clips. The DVD is from an old camerea not compatable with windows 7 so have to download from DVD . jules

    juliej44
    It sounds like whatever was put on disc was put on a DVD-R Intenso brand disc.
    Probably the tape content was put on that DVD-R disc in DVD-VIDEO format. It gets more complicated if it gets put on the DVD-RAM type disc (which does not seem to be the case).
    To verify the format of the material on your DVD disc, put the disc in the burn tray, go to computer, and Open the drive. You should see at least two folders, OpenDVD, VIDEO_TS, and maybe AUDIO_TS. Those folders are indicative of a DVD-VIDEO format.
    http://www.fileinfo.com/help/video_ts_folder
    Now back to Premiere Elements and the Video Importer. The video editor is not going to rip off clips from the DVD-VIDEO format. It is going to rip off VOB video files which contain a fixed number of files before it generates additional of its kind for additional video content.
    Once you have the video VOB files (typically starting with VTS_01_1.VOB...spot the larger file size ones), in the Video Importer, you bring them into the project where you split them into clips that you want. You can do that in the Preview Window with the Set In Set Out point.
    http://help.adobe.com/en_US/premiereelements/using/WSA27F29AF-97BB-4bdc-AF98-65113182EDF6. html
    http://www.atr935.blogspot.com/2013/06/pe11-project-assets-organization-for.html
    Please review the above and then let us know if any of it helped for the task that you want to perform with Premiere Elements.
    Thanks.
    ATR

  • Splitting file into equal sized subfiles

    My code is supposed to read in a file, and split it into 5 equal sized files. However, at the moment it is only splitting it by paragraphs, skipping a newline character, for example in the text below, the line after "...liked...mainly because it doesn't feel like a studio horror film.":
    "But it's a leaner, meaner animal than Wes Craven's original film. The characters are more believable, the mutants are scarier, and the whole thing is incredibly visceral! This is the first studio horror film in years that I've liked...mainly because it doesn't feel like a studio horror film.
    Funny side note: A girl next to me in the theater was silently weeping through the last half of the movie. Guess it made an impression."
    Here is my code:
    import java.io.*;
    import cs1ll4.*;
    import java.util.*;
    public class FileSplitter
    public static void main (String [] args)
    try
    File file = new File(Input.readString("Input Filename:"));
    FileReader fileReader = new FileReader(file);
    BufferedReader in = new BufferedReader(fileReader);
    final int numOutputFiles = 5;
    //final int numOutputFiles = Input.readInt("How many files?:");
    int loopCounter=0;
    Object currentOutputFile = null;
    String s = in.readLine();
    PrintWriter out0 = new PrintWriter(new FileOutputStream(Input.readString("Output Filename:")));
    PrintWriter out1 = new PrintWriter(new FileOutputStream(Input.readString("Output Filename:")));
    PrintWriter out2 = new PrintWriter(new FileOutputStream(Input.readString("Output Filename:")));
    PrintWriter out3 = new PrintWriter(new FileOutputStream(Input.readString("Output Filename:")));
    PrintWriter out4 = new PrintWriter(new FileOutputStream(Input.readString("Output Filename:")));
    PrintWriter [] fileHandles = {out0, out1, out2, out3, out4};
    while (s != null)
    loopCounter++;
    if (loopCounter == numOutputFiles)
    loopCounter=1;
    fileHandles[loopCounter-1].println(s);
    s = in.readLine(); //code
    out0.close();
    out1.close();
    out2.close();
    out3.close();
    out4.close();
    catch (Exception ex) { ex.printStackTrace(); }
    }I would also like to specify the number of files which I want to split a file into, without being limited to five files...after I solve my bigger problem above, if you have any suggestions...Thanks

    I have got new code which reads in a file character by character, and in it I calculate the size which I want each separate file to be. But I still dont know how to get it to print each chunk of the input file to 5 equally sized output files. (Or how to get it to print to any number of equally sized output files, specified by the program user)
    import java.io.*;
    import cs1ll4.*;
    import java.util.*;
    public class FileSplitter1
    public static void main (String [] args)
    try
    //open input stream
    File inputFile = new File(Input.readString("Input Filename:"));
    InputStream inStream = new FileInputStream(inputFile);
    InputStreamReader inreader = new InputStreamReader(inStream, "8859_1");
    BufferedReader reader = new BufferedReader(inreader);
    int numOutputFiles = 5;
    //final int numOutputFiles = Input.readInt("How many files?:");
    int loopCounter=0;
    Object currentOutputFile = null;
    //open output stream
    OutputStream fout= new FileOutputStream(Input.readString("Output Filename:"));
    OutputStream bout= new BufferedOutputStream(fout);
    OutputStreamWriter out = new OutputStreamWriter(bout, "8859_1");
    OutputStream fout1= new FileOutputStream(Input.readString("Output Filename:"));
    OutputStream bout1= new BufferedOutputStream(fout1);
    OutputStreamWriter out1 = new OutputStreamWriter(bout1, "8859_1");
    OutputStream fout2= new FileOutputStream(Input.readString("Output Filename:"));
    OutputStream bout2= new BufferedOutputStream(fout2);
    OutputStreamWriter out2 = new OutputStreamWriter(bout2, "8859_1");
    OutputStream fout3= new FileOutputStream(Input.readString("Output Filename:"));
    OutputStream bout3= new BufferedOutputStream(fout3);
    OutputStreamWriter out3 = new OutputStreamWriter(bout3, "8859_1");
    OutputStream fout4= new FileOutputStream(Input.readString("Output Filename:"));
    OutputStream bout4= new BufferedOutputStream(fout4);
    OutputStreamWriter out4 = new OutputStreamWriter(bout4, "8859_1");
    OutputStreamWriter [] fileHandles = {out, out1, out2, out3, out4};
    int fileLength = (int)inputFile.length();
    int newFileSize = fileLength/numOutputFiles;
    byte [] byteArray = new byte [fileLength];
    System.out.println(newFileSize);
    //read data in and display them
    inStream.read (byteArray);
    //initialise the array of bytes
    for (int a = 0; a < fileLength; a++)
            char c = ((char)byteArray[a]);
          //loopCounter++;
         //if (loopCounter == numOutputFiles)
         //loopCounter=1;
         //fileHandles[loopCounter-1].write(c);
    out.close();
    out1.close();
    out2.close();
    out3.close();
    out4.close();
    catch (Exception ex) { ex.printStackTrace(); }
    }

  • How to split image into smaller (same size) pieces?

    Hi all,
    My question is how to split image into smaller (same size) pieces, using Photoshop elements 13? Could anyone help me with this one?
    Thanks!

    Use the Expert tab in Editor (I think that is what it is called in PSEv.13)
    You may find the grid helpful. Go to View>Grid. It will not print, but will help to orient you. You can set up the gridlines to suit via Edit>Preferences>Guides and Grid. If you want to partition the picture in to 4 uniform pieces, it would be Gridline every 50%, Subdivision 1. Also, go to View>Snap to>Grid.
    Set up the Rectangular marquee tool: If the picture is 6" wide & 4" high, enter width=3in & height=2in.on the tool's option bar. This will be a fixed size.
    Click and select one quadrant, press CTRL+J to place this quadrant on a separate layer
    Repeat for the other 3 quadrants
    You should end up with 5 layers : Background, and layers 1, 2, 3, 4.

  • How can we split video into frames

    in jmf, can we split video into frames, how can we do that?
    thank you very much.

    hi!
    i'm also working on a system that requires the extraction of video frames.
    is this the example you were refering? http://java.sun.com/products/java-media/jmf/2.1.1/solutions/FrameAccess.html
    i tried the code and it always gives me a noProcessorException
    i run it as: java FrameAccess c:\1.mpg
    it says that "cannot find processor for c:\1.mpg"
    is it because it doesn't support mpg files? then what media files can it accept?
    or is it because my syntax for URL (c:\1.mpg) is wrong?

  • Split string into its number and alphabetic​al components

    I have a string constant "There are 100 pens and 200 pencils in the box".i want to split it into two parts one consisting of array of numbers i.e. 100 and 200,while the second part should display "There are pens and pencils in the box".
    How should i proceed?

    That looks like homework.
    What have you tried so far and where did you get stuck?
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Problems installing HP Color LaserJet 5550 on Airport network

    I've been trying to install my dad's HP CLJ 5550 on our home network for ages. *This is some background story, skip to the last bit if you don’t feel like reading* Some months ago, everything was fine and dandy. We had a network consisting of: The mo

  • Apply an effect to all video layers below it?

    Hey, all. Before I ask, let me say that I'm a professional Avid editor cutting on Premiere Pro CS3. The effect I'm trying to create is a distortion. Basically, I want to make it seem like I'm punching through from the back of the video. But the video

  • ITunes randomly quitting....

    The latest quit happen when the app was open, idle and in mini-window mode. So then when I click on the app, I get the set-up assistant. I have to reenter everything and reset my preferences. This is happening after every quit. I've had my machine fo

  • My drop-down bookmarks menu has vanished from the menu bar and I have no idea how to get it back. Help, please?

    I have no idea what I did, one minute I was browsing that particular menu, the next it was gone. I can still access the sidebar version and my bookmarks toolbar is still there, but the actual menu is gone. Closing and restarting Firefox hasn't worked

  • Personnel numbers under a given payroll area

    can anyone let me know any macros/ fm / utility that gets the personnel numbers given a payroll area , begin date and end date ? How to get the personnel numbers under a given payroll area , is it okay if  simply by looking in table PA0001 ? Thanks!