Can column be repeated in ODI based on conditions

hi,
I have two queries :
1-can a field be repeated depending on some validation/ business condition while transforming data from a table or file??
2-can we execute any ODI scenario from command prompt also???
thanks in advance .......

ritika ,
you want to create column at the run time but what if half of the record are less than 18 and few more 18 then what will you do , sorry if i have misunderstood your question .
I would jsut keep the column created during creating table.
Next put a case condition
CASE WHEN  <SOURCE_TABLE.COLUMN_NAME> < 18 THEN 'MINOR'
ELSE NULL
END Hope that helps.

Similar Messages

  • Method_opt = 'FOR ALL COLUMNS SIZE REPEAT'

    Hi all Gurus,
    We have a script to take statitics (see below), it runs every day and All the tables has de "MONITORING" option in a 9.2.0.5 database.
    My question is concern to "method_opt =>'FOR ALL COLUMNS SIZE REPEAT',OPTIONS=>'GATHER EMPTY',estimate_percent =>5);
    So, for a new table with columnns and indexes (with "monitoring" option), will it create statistics or histograms statistics when the script run for the first time on the table??? and then, will continue with/without histograms???
    begin
    DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO();
    DBMS_STATS.GATHER_DATABASE_STATS(DEGREE=>4,GRANULARITY=>'ALL',CASCADE=>TRUE,method_opt =>'FOR ALL COLUMNS SIZE REPEAT',OPTIONS=>'GATHER EMPTY',estimate_percent =>5);
    DBMS_STATS.GATHER_DATABASE_STATS(estimate_percent =>5,OPTIONS=>'GATHER STALE',method_opt =>'FOR ALL COLUMNS SIZE REPEAT',degree => 4, cascade=>true,STATTAB=>'TABLA_ESTADISTICAS',STATID=>to_char(sysdate,'yymmdd'),STATOWN=>'OPER');
    end;
    Regards,

    Hi all Gurus,
    We have a script to take statitics (see below), it runs every day and All the tables has de "MONITORING" option in a 9.2.0.5 database.
    My question is concern to "method_opt =>'FOR ALL COLUMNS SIZE REPEAT',OPTIONS=>'GATHER EMPTY',estimate_percent =>5);
    So, for a new table with columnns and indexes (with "monitoring" option), will it create statistics or histograms statistics when the script run for the first time on the table??? and then, will continue with/without histograms???
    begin
    DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO();
    DBMS_STATS.GATHER_DATABASE_STATS(DEGREE=>4,GRANULARITY=>'ALL',CASCADE=>TRUE,method_opt =>'FOR ALL COLUMNS SIZE REPEAT',OPTIONS=>'GATHER EMPTY',estimate_percent =>5);
    DBMS_STATS.GATHER_DATABASE_STATS(estimate_percent =>5,OPTIONS=>'GATHER STALE',method_opt =>'FOR ALL COLUMNS SIZE REPEAT',degree => 4, cascade=>true,STATTAB=>'TABLA_ESTADISTICAS',STATID=>to_char(sysdate,'yymmdd'),STATOWN=>'OPER');
    end;
    Regards,
    {code}
    I have taken following explanation from documentation:
    {code}
    METHOD_OPT - The value controls column statistics collection and histogram creation. It accepts either of the following options, or both in combination:
    FOR ALL [INDEXED | HIDDEN] COLUMNS [size_clause]
    FOR COLUMNS [size clause] column|attribute [size_clause] [,column|attribute [size_clause]...]
    size_clause is defined as size_clause := SIZE {integer | REPEAT | AUTO | SKEWONLY}
    column is defined as column := column_name | (extension)
    - integer : Number of histogram buckets. Must be in the range [1,254].
    - REPEAT : Collects histograms only on the columns that already have histograms.
    - AUTO : Oracle determines the columns to collect histograms based on data distribution and the workload of the columns.
    - SKEWONLY : Oracle determines the columns to collect histograms based on the data distribution of the columns.
    - column_name : name of a column
    - extension : can be either a column group in the format of (column_name, colume_name [, ...]) or an expression
    The default is FOR ALL COLUMNS SIZE AUTO.
    {code}
    GATHER EMPTY: Gathers statistics on objects which currently have no statistics. Return a list of objects found to have no statistics.
    Reference: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_stats.htm
    Please go through the link, it will give you more clear picture on DBMS_STATS.
    Regards,
    S.K.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Repeating iCal Events Based on Other Events

    Basically, I'm working on something that involves a non-standard calendar that has repeating monthly events. My hope was if I could put in the first day of each "month", I could have the rest of the events populate themselves by repeating based on that first event.
    I'm guessing there's no way to have such a complex repeating scheme. I certainly can't see one in iCal. Does anyone else have any thoughts?

    I think any answer that works for rbdbk would probably work for me, too.
    In my case, the problem is monthly events based on a lunar calendar. I want to be able to put in the start of the lunar month, then have events - which may fall on the seventh day of the month, or second Saturday of the month, etc. - copy themselves for each month.
    Essentially, events that repeat their timing based on previously entered events.

  • Hide column based on condition on other column in table

    hi,
    am using BIP 10.1.3.2 to generate reports.In the template i need to hide one column based on condition on other.am using SQL query as my data source type.can anybody help me ?

    Use <?if:?> condition in the RTF, but its mainly for the rows not column. You can work around this by handeling in backend. Or take two separate tables, one with the column which you want to hide and another table without that column and before calling that table use IF condition.
    Regards,
    Amit D
    Persistent Systems Ltd.

  • How can I display a single indicator based on a percentage calculation?

    See... I have one column # of Activities. A second column is the # of activities with a condition (FILTER("Activity Metrics"."# of Activities" USING ((Activity.PICK_4 LIKE '%Cliente Contactado%' OR Activity.PICK_4 LIKE '%Cliente No Contactado%')))).
    Ok... so if an user has 2 activities and only one of those activities match that condition, I'm getting this table:
    # Activities | # Activities with condition
    1 | 0
    1 | 1
    The result number that I want to get is "50%" (2 = 100% , 1 being 50%). Whenever I add a new column to calculate this percentage, I get 2 rows with the percentage and I get 2 indicators showing the same percentage, instead of only 1. (if the user has 100 activities I'd get 100 indicators showing the same percentage).
    Any ideas?
    Thank you

    if you want to display the indicator only for those activities that match the condition then you can create a new column having a case when condition.
    It will be something like this:
    CASE WHEN (the filter condition matches) THEN 100*COUNT(# of 2nd column) / (# of 1st column) ELSE NULL END

  • Can I create a saturation mask based to a gradient map?

    Hi
    can i create a saturation mask based on a gradient map?
    for the example a gradient blue from 2441f6 to 6075f6
    and have a luminocity mask based of this gradient
    can i do it?
    how can i do it?
    thanks
    cheers

    The gradient maps are not use to sample color, but to recolor, so you cannot use it to create the selection, use the selection to limit the gradient map to the blue areas of the sky.
    You could MASK a gradient map using the saturation of the sky, to recolor based on the actual saturation of the sky.
    Select the sky with your favorite method, jump it to a new layer (CTRL+J)
    Use the technique in the linked tutorial to extract the luminosity, it should land on its own layer.
    Hide that layer, and delete the selective color one.
    Now add your gradient map adj layer, enter the two colors as desired.
    Show the layer with the saturation converted to a layer. Select all, copy.
    ALT+click the layer mask of your gradient map adj layer, and paste. You might need to paint in black the areas you do not want affected.
    I tried it here, and had semi satisfactory results given the very heavy compression of your file, and also because the colors are pretty unrealistic.
    Here is the image showing the saturation mask, and the results on the side:

  • I can sync icloud calender with pc based outlook calender.  But contacts do not sync.  Could anyone help me with this?

    I can sync icloud calender with pc based outlook calender.  Photos also sync.  But can not sync contacts.  Already checked contact boxes in icloud and and on my PC.  Also tried to reset Document & Data on icloud.  Could anyone help me on that?

    That's what I did... switching on iCloud calender in the panel leads to the following: The existing local Outlook calendar gets mved to an new iCloud calendar.Thus the local calendar is empty.
    Given that iTunes dows not allow my whife's phone to be synced with that iCloud calendar (only the local acalendar appears in the list of available calendars in iTunes; syncing all dioes not include the iCloud one) this leads to an empty alendar on my whife's phone.
    Hence the question how to
    a) get iTunes to include the iCloud calendar to sync with the iPhone 2g (preferred) or
    b) enable a local MS Outlook internal sync between the two calendars.  

  • How can i render one facet in panel splitter based on conditions?

    Jdeveloper Version - 11.1.1.5
    How can i render one facet in panel splitter based on conditions?
    Ex : In horizontal Panel splitter first facet - af table
    second facet - af table
    if any one table estimated row count is zero i nedd to render the respective facet?
    is it possible?
    Please help..
    Thanks
    sk

    Yes you can do it but not on facet you can apply rendered attribute to the any of the child component of the facet.
    Thanks
    Raghav

  • How can i define a boolean variable with the condition if i got a specific text on a selected column?

    How can i define a boolean variable with the condition if i got a specific text on a selected column?
    Example:
    my select results:
    [id = 102] [Company = 'Microsoft']
    If i got microsoft in 'Company' i want to my another table with the columnName "Microsoft" get "true".
    Can you help me?

    That is called 2-table UPDATE.
    Example:
    http://www.sqlusa.com/bestpractices2005/updatewithcorrelatedsubquery/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Column Head Repeating

    I am new to BI Publisher and using MS Word to create the templates. I have an issue with column headings repeating for each record. Here is a sample of the XML data:
    <CVIGREENPROEXPORTXML>
    <LIST_G_CS_SUM_OF_NULL_APPROVALS>
    <G_CS_SUM_OF_NULL_APPROVALS>
    <LIST_G_VENDOR_NAME>
    <G_VENDOR_NAME>
    <VENDOR_NAME>ABC CORPORATION</VENDOR_NAME>
    <VENDOR_SITE_CODE>Anywhere</VENDOR_SITE_CODE>
    <BUYER_INFO>Doe, John, 2345</BUYER_INFO>
    <MFGR_DISTR></MFGR_DISTR>
    <PURCH_AGENT>1234</PURCH_AGENT>
    <GP_RANT>B</GP_RANT>
    <LIST_G_TAG>
    <G_TAG>
    <TAG>1</TAG>
    <DOCUMENT_TYPE>Self-Evaluation</DOCUMENT_TYPE>
    <DOCUMENT_CODE_CHANGE>Self-Evaluation</DOCUMENT_CODE_CHANGE>
    <LIST_G_RENEW_DATE>
    <G_RENEW_DATE>
    <RENEW_DATE>2009</RENEW_DATE>
    <REVISION_APPROVAL_DATE>03-OCT-07</REVISION_APPROVAL_DATE>
    <DOCUMENT_REVISION>4.0</DOCUMENT_REVISION>
    <COMMENTS></COMMENTS>
    <CF_NULL_APPROVAL>1</CF_NULL_APPROVAL>
    </G_RENEW_DATE>
    </LIST_G_RENEW_DATE>
    </G_TAG>
    <G_TAG>
    <TAG>2</TAG>
    <DOCUMENT_TYPE>Questionnaire</DOCUMENT_TYPE>
    <DOCUMENT_CODE_CHANGE>Questionnaire</DOCUMENT_CODE_CHANGE>
    <LIST_G_RENEW_DATE>
    <G_RENEW_DATE>
    <RENEW_DATE></RENEW_DATE>
    <REVISION_APPROVAL_DATE>21-OCT-08</REVISION_APPROVAL_DATE>
    <DOCUMENT_REVISION>4.0</DOCUMENT_REVISION>
    <COMMENTS></COMMENTS>
    <CF_NULL_APPROVAL>1</CF_NULL_APPROVAL>
    </G_RENEW_DATE>
    </LIST_G_RENEW_DATE>
    </G_TAG>
    <G_TAG>
    <TAG>3</TAG>
    <DOCUMENT_TYPE>Survey Tool (JGP)</DOCUMENT_TYPE>
    <DOCUMENT_CODE_CHANGE>* Survey Tool (JGP)</DOCUMENT_CODE_CHANGE>
    <LIST_G_RENEW_DATE>
    <G_RENEW_DATE>
    <RENEW_DATE></RENEW_DATE>
    <REVISION_APPROVAL_DATE>28-SEP-07</REVISION_APPROVAL_DATE>
    <DOCUMENT_REVISION>3.0</DOCUMENT_REVISION>
    <COMMENTS></COMMENTS>
    <CF_NULL_APPROVAL>1</CF_NULL_APPROVAL>
    </G_RENEW_DATE>
    </LIST_G_RENEW_DATE>
    </G_TAG>
    <G_TAG>
    <TAG>4</TAG>
    <DOCUMENT_TYPE>Action Item List</DOCUMENT_TYPE>
    <DOCUMENT_CODE_CHANGE>Action Item List</DOCUMENT_CODE_CHANGE>
    <LIST_G_RENEW_DATE>
    </LIST_G_RENEW_DATE>
    </G_TAG>
    <G_TAG>
    <TAG>5</TAG>
    <DOCUMENT_TYPE>Final Check Sheet</DOCUMENT_TYPE>
    <DOCUMENT_CODE_CHANGE>Final Check Sheet</DOCUMENT_CODE_CHANGE>
    <LIST_G_RENEW_DATE>
    </LIST_G_RENEW_DATE>
    </G_TAG>
    <G_TAG>
    <TAG>6</TAG>
    <DOCUMENT_TYPE>Acknow Letter</DOCUMENT_TYPE>
    <DOCUMENT_CODE_CHANGE>Acknow Letter</DOCUMENT_CODE_CHANGE>
    <LIST_G_RENEW_DATE>
    </LIST_G_RENEW_DATE>
    </G_TAG>
    <G_TAG>
    <TAG></TAG>
    <DOCUMENT_TYPE></DOCUMENT_TYPE>
    <DOCUMENT_CODE_CHANGE></DOCUMENT_CODE_CHANGE>
    <LIST_G_RENEW_DATE>
    </LIST_G_RENEW_DATE>
    </G_TAG>
    </LIST_G_TAG>
    </G_VENDOR_NAME>
    I have 6 document types. I was able to get the data under the correct document using @column and @cell but unable to stop the columns headers for the document types to only print once. Where do I need to make the change? In the XML or in MS Word? Any suggestions would be helpful.

    pls email me ur rtf and xml file to
    [email protected]
    Thanks
    Rahul

  • How can i get repeating message tones

    How can I get repeating message tones when i recieve a sms?

    You can't (officially).
    You can only create your own ringtones.
    If your phone is jailbroken, you can search Cydia etc for apps that allow you to do so.

  • Aurgent: Can any body help of User-based sizing

    Hi Experts.
                 iam new to the implementation .can anybody help on Inital user based sizing.Do n't send the links of service market place.I want know abt wat type of  user has to consider for the A/s Ecc6.0 and how to consider their roles in the appli.server. And also give me the information of users Like low,medium,high in the Quizertool.
                  Replied  answer could be rewarded.
    Thanx.....

    Hi,
    Sizeing basically doesn't depends on users. It is based on active users only.
    Sit with y'r functional leads , and discuss roles and authorizations also.
    Roles will be parent and child etc.
    In the initial project blue print, we can find or estimation of no. of users and active users.
    Initially go with normal settings according to Installation guide.
    Read the Sizer well.
    Note: Points always encourage me to reply !!

  • How can we automate the Depreciation keys based on production for business

    How can we automate the Depreciation keys based on production for business u2013 this is currently not an optimised process if we expect business to manually change the keyu2019s on a monthly basis.
    The end user updates the table, transaction AO25, manually on month end after the production calculations are completed. The question is, is it possible when the PP is completed, that the system updates the Period Unit table for that period?
    Thanks.
    Regards,
    PS PS

    Hi,
    I am new at this, so I need a explanation on how will this help me, and how do I get about doing this?
    Thanks a lot.
    Regards,
    PS PS

  • Since upgrading to Mavericks, I can't set repeating reminders.

    Since upgrading to Mavericks, not only did i loose some reminders, but I can't set repeat on my reminders.

    I was reading solutions for Mountain Lion on this matter and I am trying one of those ideas, which was to simply copy a reminder that has the function available from before the upgrade and then overwrite the information I want as a "new" reminder. I wanted the "repeat" option, which I think only appears on the old reminders that have the "due date" option. Anyway, I tried it, and it works to get the "old reminders" back that have the "due date" and "repeat" option. WHAT A HASSLE! Note: I did start out with Lion in 2011, so apparently that's why I have the reminders that have both functions. I am irratated that I can't choose the "repeat" option like "every first Thurs. etc. that I had on my original "tasks" way back when. Grrrrrrrr!

  • Can column value included in boilerplate text?

    Field values can be included in boilerplate text, can column value be included also?
    If I embed html tag into boilerplate text, it generates correct format in HTML output. Anyone tried PDF output? Does format defined by html tag preserved in PDF output?
    Thanks.

    Hi,
    You can try out this : When you type lable in your boilerplate text item include & Symbol alongwith column name.
    For e.g. Emp Name &emp_name
    Enter above example in your boilerplate text item.
    Hope this would resolve your query.
    Thanks,
    M@yur
    [email protected]
    null

Maybe you are looking for

  • How do I get an app suggested on the lock screen when someone enters my place of business?

    Now with iOS 8 I am getting app suggestions on my lock screen which are relevant to where I am currently located. What do I need to do to get that functionality inside my place of business to suggest an app when people walk in?

  • Multiple instances of OC4J on the same machine

    Is there a way to cofigure OC4J to have a few processes on the same machine, all listening to the same ports? My purpose is to develope and deploy a few applications on the same machine, and each application should has its own process, so if onw fail

  • Problem while testing a ABAP Web Service

    Hello, I'm facing a problem while testing a webservice for the BAPI BUPA_CENTRAL_GET_DETAIL. I have opened the Web Service Home page, and I get no error. I fill in the input values and then when I send the request, I get back an error which says "Aut

  • Hyperlinks won't work in compiled file

    I have several hyperlinks in our online help file that are supposed to either open your email or go to our website. I have them set correctly from what i can tell.. and also have them set to open in a separate window.. when i select the hyperlinks in

  • How to develop Arrow & Bubbles in Design studio

    Hello All, Need your help to develop below two components which contains difference between two columns :- Currently using Design studio version - 1.2 1)How do I develop these "Arrows" in Design Studio ( I have inserted arrow as image component but i