To split channel into pieces(cycle)

hi
i dont know how i can split channel into pieces. in attachmeents i have piece of my data, i have there data which are use to axis X and axisY on my graph. In my data i have many cells where i have "novalue"(it is result from many calculation) and on graph it isnt curve but only many points, it look like curve but isnt, but it is not big problem. data from channel "axis X" show when new cycle is strated (one cycle= 0,25...as long as 719,75). I must in some way separate cycle(split channel into cycles) and calculation (receive) one average cycle. How i can do it ??
Attachments:
pieceaxelXY.xls ‏765 KB

Hi Elwis_85!
I am not sure what you want to accomplish but it seems you operate on channels and do some looping. For creating such applications you can use scripting.
I have prepared an example that for every value (not NOVALUE) from Channel3 (from 0.25 to 719.75) stores value from Channel2 in separate channel. I used VBS scripting to accomplish that.
Please remember to check channel names before running the script. I hope it will be useful!
Script:
'requirements:
' Channel3: values from 0.25 to719.75
' Channel2: if Channel3 is not NOVALUE, read from channel2 data
' ChannelOut: channel that will store values from channel2, set length to length of Channel2
Option Explicit 'Forces the explicit declaration of all the variables in a script.
dim ind
dim v
ind = 4 ' start indexing from 4th row
dim newind 'here we store index of newly created channel where we store values
newind = 1 'start indexing new channel from 1
v = 1 'init value
while (v <> 719.75) 'read as long as you don't reach maximum value
v = ChV(ind,"pieceaxelXY/Channel 3") 'read value
if IsNull(v) then 'compare it to NOVALE
v = 0.0 'if it is NOVALUE set to to 0, to work on Double data type
end if
if v<>0 then 'v<>0 means that we read some value, now we can read value from Channel 2 and store it in ChannelOut
CHV(newind,"pieceaxelXY/ChannelOut") = ChV(ind,"pieceaxelXY/Channel 2") 'read from Channel 2 and store it in ChannelOut
newind = newind + 1 'increase index in ChannelOut
end if
ind = ind + 1
wend
Best regards,
Koza

Similar Messages

  • 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.

  • Script or operation to split a date and time channel into two channels

    Hi There,
    I have a channel that contains a range of dates and times.
    I would like to split that channel into two channels - one with date and one with time.
    Any suggestions?

    Sorry:    Here is the attachment......
     and Sample of the data
    Comment:
    Date
    Time
    AIR TEMP
    AIR TEMP SP
    TAC PTC
    Load Temp
    Channel 4
    UUT Front TC
    1/20/2015
    12:30:05
    80.3
    79.3
    59.4
    0
    0
    62.9
    1/20/2015
    12:30:11
    80.1
    79.3
    59.5
    0
    0
    63
    1/20/2015
    12:30:17
    80
    79.3
    59.6
    0
    0
    63
    1/20/2015
    12:30:23
    79.9
    79.3
    59.7
    0
    0
    63.1
    1/20/2015
    12:30:29
    79.7
    79.3
    59.7
    0
    0
    63.2
    1/20/2015
    12:30:35
    79.7
    79.3
    59.8
    0
    0
    63.4
    1/20/2015
    12:30:41
    79.6
    79.3
    59.9
    0
    0
    63.4
    1/20/2015
    12:30:47
    79.6
    79.3
    60
    0
    0
    63.5
    1/20/2015
    12:30:53
    79.5
    79.3
    60
    0
    0
    63.5
    1/20/2015
    12:30:59
    79.5
    79.3
    60.2
    0
    0
    63.6
    1/20/2015
    12:31:05
    79.6
    79.3
    60.3
    0
    0
    63.7
    1/20/2015
    12:31:11
    79.6
    79.3
    60.3
    0
    0
    63.7
    1/20/2015
    12:31:17
    79.6
    79.3
    60.5
    0
    0
    63.8
    1/20/2015
    12:31:23
    79.7
    79.3
    60.6
    0
    0
    63.9
    1/20/2015
    12:31:29
    79.7
    79.3
    60.7
    0
    0
    64
    1/20/2015
    12:31:35
    79.8
    79.3
    60.8
    0
    0
    64.1
    1/20/2015
    12:31:41
    79.8
    79.3
    60.9
    0
    0
    64.3
    1/20/2015
    12:31:47
    79.8
    79.3
    61
    0
    0
    64.4
    1/20/2015
    12:31:53
    79.7
    79.3
    61.1
    0
    0
    64.4
    1/20/2015
    12:31:59
    79.7
    79.3
    61.2
    0
    0
    64.5
    1/20/2015
    12:32:05
    79.7
    79.3
    61.3
    0
    0
    64.6
    1/20/2015
    12:32:11
    79.6
    79.3
    61.4
    0
    0
    64.7
    1/20/2015
    12:32:17
    79.6
    79.3
    61.5
    0
    0
    64.8
    1/20/2015
    12:32:23
    79.6
    79.3
    61.6
    0
    0
    64.8
    1/20/2015
    12:32:29
    79.5
    79.3
    61.6
    0
    0
    64.8
    1/20/2015
    12:32:35
    79.5
    79.3
    61.7
    0
    0
    64.8
    1/20/2015
    12:32:41
    79.5
    79.3
    61.8
    0
    0
    64.9

  • How to SPLIT ONE STEREO TRACK'S L & R CHANNELS INTO TWO MONO CHANNELS

    Does anyone know if this is possible: How to SPLIT ONE STEREO TRACK'S L & R CHANNELS INTO TWO MONO CHANNELS?  There's got to be a way, but I just can't find out how.
    I recorded a podcast -- me and a guest, with each mic going to its own mono channel. When I opened it in Audition it mixed them into one stereo channel. 
    Thanks in advance for any help.
    Best,
    Shawn 

    You're a big help! Thanks very much.  Simple yet I must be going blind because I didn't see that in the menu.
    Take care and THANKS AGAIN.
    Shawn

  • Weird audio behaviour from merged clips... 5 channels into 25?!

    hello helpful community,
    So, I have hand-synced quite a few clips for a project, and made sub clips by dragging everything into a bin.
    The original audio files were .wav with 5 mono tracks, according to the modify clip window…
    Now, after merging them, when I drag them into a new sequence to edit, the audio contains 25 channels, and the vast majority of them are blank… there is only audio on track 1,7,13,19 and 25.
    Anyone fathom why 5 tracks became 25? I thought maybe each original track was a 5.1 track or something, so it split it into 25 mono tracks, but it says in the modify window that they are mono.
    Any help would be great.

    thanks for then pointer.
    Seems others have had this problem.
    Does manually deleting the additional audio tracks cause problems to propagate forwards? Any idea when this issue might be rectified?

  • Split Stereo into Mono in Prelude

    Hi All,
    I'm just trying the CS6 demos out, basically as I'd like to transition from FCP here at University.  I run 4 edit rooms, and I really love the idea of a seperate program for ingesting when teaching students the basic concepts. I also enjoy the rough cut making, which to my mind would be great for getting the students to concentrate on that side of things first, before getting bogged down in full video editing.
    As I was playing through today, I noticed that the material when recorded onto the camera stereo file, can't be split in prelude.  On import to premier, if a rough cut, the clip has to be taken out of the sequence, then the tracks split to mono, then put back in the sequence.  This effectively makes the rough cutting a bit useless in many ways, unless just being used as a reference for the video editor. 
    I realise this is partly a premier issue, but as a newbie to the CS software perhaps I am missing something?  If material on a sequence could be split to mono at the click of a button this would be fine but it seems in premier it needs to be done at the clip level.

    Thanks for the quick replies.  I'm impressed with the responsiveness.
    Regarding mono tracks in my "one man shop" workflow:
    Frequently, I use the 2 discrete channels that my Sony PMW-EX3 records for different inputs.  For instance, when recording an important interview, a lavaliere mic on one channel and a shotgun mic on the other channel of the same camera.  Those are 2 distinctly different sources that I can work with that give me redundancy if something breaks or has an unacceptable rustle in it. 
    The applications of this discrete channel thought process are many. Perhaps I have 2 talking subjects that I need audio for, but need to control them independently in post production.  It makes my life much easier to have them each on a mono track.  Perhaps I want a concert board mix on one channel, and the live audience heard on the other.  The combinations are endless. 
    Forcing the combination of 2 audio channels into stereo effectively cuts the audio resources of my camera in half unless I split the stereo back out to dual mono.
    Also, Why would I want to combine these channels into stereo, only to split them out again for editing?  I want them in post production to be as close to the original, unmolested recording as I can get.   That allows me to have maximum control over them in post.  it's the same reason I wouldn't record the sources with reverb, or some other effect "baked in" to my recording.  I may not want it later, but at that point, it's too late.
    If I expect to have a stereo output, it seems to me that the best place to add that is in Audition, or similar.  That way, I can shape it the way I want for the desired stereo effect.
    Combining to stereo also creates a potential computer resource issue.  If I have to double a stereo track and pan one to the left, and one to the right in order to re mix them in post, I am effectively playing back 4 channels of audio data only to throw away 2 of them in the pan settings.
    Plus, it just needlessly complicates my already complicated workflow.  I mean, let's face it.  "Easy to use" is a relative term.  Professional level video editing programs are inherently complex.
    I'm willing to change my workflow if there's a better way to do it, but for what I do, a mono audio workflow seems FAR superior to a stereo workflow.
    Again, I really appreciate the reply.
    Todd

  • 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

  • Reg:Getting error text from a channel into a file or into a variable

    Hi,
    Can we get the error text such as u201Cjava.lang.NegativeArraySizeExceptionu201D  from a communication channel into a variable or in the form of an xml message so that based on kind of error further processing can be done.
    Regards,
    Rahul

    You can decide further processing based on the data available in the mapping. If the value comes in the source field for a list element as you expected do UDF and return error as string and decide the mapping as per business need. I talk about something like enhanced interface determination. That's one way. Reading the error message from the communication channel and decide does not seem to be better option.

  • 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

Maybe you are looking for