AS/400 Source query

Guys,
I had a query regarding taking count from AS/400 source table after Interface loads the data successfully.
Currently iam doing this through ODI Procedure with the following query and it works well.
select count(*) AS YYY1732WP_COUNT from XXX.DWHTSTDTA.YYYY1732WP
The only thing is iam hard coding 'servername.libraryname.table name'(XXX.DWHTSTDTA.YYYY1732WP) and because of that in production it wont work.
How to do same thing without hard coding,so that it works in all environments?
Cheers

if you are using AS/400 source table in your interface then create a step in your KM, with below queries
select count(*) AS YYY1732WP_COUNT from     <%=snpRef.getFrom()%>
If it is on target use
select count(*) AS YYY1732WP_COUNT <%=odiRef.getTable("L","TARG_NAME","A")%>

Similar Messages

  • In DBI , how to find out the Source Query used for the Report

    Hi All,
    How to find out the Source Query used to display the data in the DBI Reports or Dashboards. We can get it in Apps Front end by Going to Help and Record Histroty. But DBI Runs in Internet Explorer so i dont know how to get the source query ( SELECT Query ) Used.
    In IE we have View --> Source . But that does not help since it gives the HTML Coding and not the SELECT Query used.
    If anyone has ever worked on it...Please help me in finding it.
    Thanks,
    Neeraj Shrivastava

    Hi neeraj,
    You can see the query used to display reports.Follow these steps to get the query.
    1)Login to oracle apps
    2)Select "Daily Business Intelligence Administrator" responsiblity.
    3)Now click on "Enable/Disable Debugging" (Now u enabled debugging)
    4)now open the report which you want to see the query of
    5)In view source it displays query along with the bind varilables.
    Feel free to ping me if you have any doubts
    thanks
    kittu

  • Passing Source Query Variables to Target query in RRI

    Hello,
    I Creating Jump Queries.
    In the source query user is entering some variable(Dates), based on these varaibles I am creating formula variable in the source query.
    I wanted pass the same varible values(which are entered by user) to target values(RRI) and use the same formula varaible in the target query.
    Please advise me how can I do this.
    Thanks
    Venkat

    Hello Venkat,
    Please refer to note 1053310 for complete details about RRI and application rules.
    The variables are passed implicity but you can explicity defined the rules for varaibles as well.  You can define assignment details as required. I hope this will help.
    Thanks and Regards,
    Asit G Ramteke

  • In Procedure command, source query results not passed to target as # variables - why not?

    Hi all,
    I'm using ODI 11.1.1.6.0.
    Has anyone had issues with this version with this feature?
    I've just upgraded from 10.1.3.4.5.6_02 and feature doesn't work at all (not even in new procedures!) in my repository.
    I've even tried creating a brand new repository then creating a new data server, new physical schema, new logical schema, mapped physical schema to the logical schema, and created a new procedure that does:-
    Source tab (Oracle):          SELECT scen_name FROM snp_scen
    Target tab (ODI Tools):     OdiStartScen -SCEN_NAME=DUMMY -SESSION_NAME=#scen_name
    The session that's created has the name "#scen_name" and not the name from the result of the source query.
    The DUMMY scenario is just generated from another procedure that has a single OdiSleep command.
    Any ideas chaps?

    Yet another bug...
    Fixed in 11.1.1.6.4.

  • How to check the source query of tabular form ....

    Hi All ,
    is there any way to change the source query of tabular form ......
    ya ... i could see it in the source but it is normal sql query ....
    where as to generate the addrow functionality the sql query must be
    Select empno , ADD_ITEM.TEXT(1,empno), ename ,ADD_ITEM.TEXT(2,ename)................
    then where can i find this query .?
    i could see that ADD button is calling ADDROW process and which inreturn calling ADD function ....
    can any one tell me , where to see the code for this ADD function ....
    as i checked it in db ..... it is not there at all.

    You can have a look here for the manual tabular forms:
    http://apex.oracle.com/pls/otn/f?p=31517:170
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Logical Table source source query

    In OBIEE 10g we can have multiple logical table sources and we can also add multiple tables into a single logical table source(logical table source source). I wanted to know the difference between doing so and having multiple logical table sources for each logical source.
    Hope I made myself clear.
    Cheers
    Rem

    Hi Rem,
    When data is duplicated across different physical tables add them as separate LTS with column mapping pointing to most economical sources. Specifying the most economical source is about the idea that a single column exists in more than one table, based on the column mappings BI server picks up those LTS's which could satisfy the request with minimal joins.
    When the data is not duplicated add them in a single LTS source. When the physical sources are added in a single LTS, you have the flexibility of using outer joins. But specifying a join as outer join makes BI Server to include this source even if its not required otherwise when the join is inner, the sources will not be included if not required to satisfy the query.
    Hope this helps.
    Thanks!

  • How to handle comma separated values in OLE DB Source query for a parameter variable from XML file in SSIS

    Hi,
    I am using OLE DB Source to fetch the records with Data Access Mode as SQL COMMAND which is using the below query with a parameter,
    SELECT CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation, EMP.HireDate, EMP.BirthDate,CON.EmailAddress, CON.Phone
    from HumanResources.Employee EMP INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in (?) 
    In this query for the parameter I am passing the value from a variable and which is configured (XML Configuration). While passing value
    Buyer it works correctly. But while passing values Accountant,Buyer
    it is not working as expected.
    How to handle while passing such multiple values Or is it possible to pass such values or not in SSIS 2012 ?
    Kindly help me to find a solution.
    NOTE: I placed the whole query in a variable as a expression as below it is working fine.
    "select CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation,EMP.HireDate,EMP.BirthDate,CON.EmailAddress,CON.Phone from HumanResources.Employee EMP
    INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in ('" + REPLACE(@[User::temp],",","','")  +"')"
    Any other solution is there ? without placing the query in a variable. May be a variable can have some limitations for no. of characters stored not sure just a thought.
    Sridhar

    Putting the whole thing into a variable is certainly a valid solution.  The other involves putting the comma delimited list into a table valued variable.
    http://gallery.technet.microsoft.com/scriptcenter/T-SQL-Script-to-Split-a-308206f3
    For an odd ball approach: 
    http://www.sqlmovers.com/shredding_multiline_column_using_xml/ .
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • Bug: '--' in source query results in ORA-01008

    All,
    I got bit by a rather odd little bug this weekend. Apparently, APEX doesn't like it if you try to select a string containing two dashes (the SQL comment delimeter --) as the source of a page item, but only if your query includes a binding to another page item. I put a demonstration up at http://apex.oracle.com/pls/apex/f?p=16631:1. The value chosen in the select list doesn't matter; it's just there to be referenced in the queries used on pages 2 and 3.
    Took me a while to realize what was going on. So, if you need to include two dashes as part of your selected values, use '-'||'-' (or some similar work-around). You'll save yourself some confusion.
    -David

    Arie,
    Then both documents are seriously misleading. :-) From the document you linked:
    <b>Tip:</b>
    This section is current as of the writing of this document. To view the most current listing of known issues, go to the Known Issues page available off the Downloads page. See:
    http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
    And from the latest version of the known issues linked on that page (which I linked to above):
    Application Express 4.0.2 was released on November 19, 2010. It addressed most of the known issues with 4.0.1. Below are the remaining known issues and any new issues discovered.Combining those two statements leads to the clearly erroneous expectation that the four known issues on the 4.0.2 page are the only open ones.
    -David

  • Inventory data Source query

    Guys my client wants valuation class as characteristicsin stocks query.
    Is it possible to enhance data source 2lis_03_BX using user exit.
    I want to clarify that is it advisable to enhance 2lis_03_BX

    Hi Baljit,
    I think you should be able to enhance the datasource.
    For more info refer this:
    http://help.sap.com/saphelp_bw33/helpdata/en/ed/16c29a27db6e4d81a015be8673eb80/frameset.htm
    Bye
    Dinesh

  • LDAP Source Query IP (Cisco ISR G2 WebSecurity)

    Hi Cisco folks,
    Goal:
    I would like to implement Cisco ISR Connector with ScanSafe for the company.
    I have followed the ISR Solution Guide carefully (found here:
    http://www.cisco.com/en/US/docs/security/web_security/ISR_SS/ISR_ScanSafe_SolutionGuide.pdf)
    So far I have managed to get a basic configuration working.
    Problem:
    This configuration consists of the basic Web Security features and a VPN to our internal network.
    I would now like to implement authentication on the device with LDAP.
    As far as I can tell the configuration is correct. (I followed the solution guide precisely)
    The authentication though doesn't work.
    Here an output from the debug:
    *Feb 22 13:07:35.034: LDAP: LDAP: Queuing AAA request 52 for processing
    *Feb 22 13:07:35.034: LDAP: Received queue event, new AAA request
    *Feb 22 13:07:35.034: LDAP: LDAP authentication request
    *Feb 22 13:07:35.034: LDAP: Username sanity check failed
    *Feb 22 13:07:35.034: LDAP: Invalid hash index 512, nothing to remove
    *Feb 22 13:07:35.038: LDAP: New LDAP request
    *Feb 22 13:07:35.038: LDAP: Attempting first  next available LDAP server
    *Feb 22 13:07:35.038: LDAP: Got next LDAP server :scansafe-ldap-server
    *Feb 22 13:07:35.038: LDAP: Free connection not available. Open a new one.
    *Feb 22 13:07:35.038: LDAP: Opening ldap connection ( Internal IP of DC, 636 )ldap_open
    ldap_init libldap 4.5 18-FEB-2000
    open_ldap_connection
    ldap_connect_to_host: Internal IP of DC
    :636
    *Feb 22 13:07:35.038: LDAP: socket 5 - connecting to Internal IP of DC (636)
    *Feb 22 13:07:35.038: LDAP: socket 5 - connection in progress
    *Feb 22 13:07:35.038: LDAP: Connection on socket 5
    *Feb 22 13:07:35.038: LDAP: Connection to LDAP server (scansafe-ldap-server, Internal IP of DC) attempted
    *Feb 22 13:07:35.038: LDAP: Connection state: DOWN => CONNECTING
    *Feb 22 13:07:35.038: LDAP: LDAP request saved. Will be served after Root Bind is done.
    *Feb 22 13:07:35.038: LDAP: LDAP request successfully processed
    *Feb 22 13:08:05.038: LDAP: Received socket event
    *Feb 22 13:08:05.038: LDAP: Process socket event for socket = 5
    *Feb 22 13:08:05.038: LDAP: Server is not valid and non-TLS
    *Feb 22 13:08:05.038: LDAP: Socket read event socket=5
    *Feb 22 13:08:05.038: LDAP: Found socket ctx
    *Feb 22 13:08:05.038: LDAP: ldap tcp transport closing on socket 5
    *Feb 22 13:08:05.038: LDAP: Transport DOWN notification for scansafe-ldap-server/5
    *Feb 22 13:08:05.038: LDAP: Clearing all ldap transactions
    *Feb 22 13:08:05.038: LDAP: Triggering server failover for transit requet
    *Feb 22 13:08:05.038: LDAP: Connection state: CONNECTING => DOWNldap_unbind
    ldap_free_connection lc=0x8C5C14D4
    ldap_free_connection: actually freed
    As you can see the router can't contact our DC.
    Now I did some sniffing and noticed that the router sends the LDAP query with the source address of the external interface (Public IP).
    This results, that the queries are sent out into the internet with an internal destination IP. --> hence can't connect.
    Question:
    Now to my actual question.. How can I force the ISR to originate the LDAP queries from our internal interface ... which would then enter the VPN and connect to the DC?
    Thanks in advance, and if you need any additional information, please don't hesitate to ask
    Kind regards
    - Sam

    I recently went through this exact issue with Cisco TAC. The answers are quite unpleasant, but Cisco feels the LDAP protocol doesn't need a source-interface command because an LDAP server doesn't need a specific source IP. The "workaround" is to include your egress interface IP in the VPN tunnel so it will get encapsulated and be able to reach the LDAP server over the VPN. There is another even less desirable workaround to use a Virtual Tunnel Interface, but it is not practical for companies with more than 1 remote site or using the headend VPN concentrator for internet routing because of the requirement of the tunnel being ip any any.

  • Result Source Query Builder Filter for Content Sources

    I have several content sources that I want to add to a result source as a property filter. It works fine if I just have one but when I add multiple content sources it does not give me all the results. Is there a way to add more than one content source
    filter to one result source.

    Hi SpGurlz,
    How did you set the filter with content source in the query builder for the result source?
    I tested with more than one content source as filter in the query builder for the result source in my environment, and all the corresponding results were displayed fine.
    The query text for the result source was set like this: {searchTerms} contentsource:file1 contentsource:file2.
    Remember to add a space between the “{searchTerms}”, “contentsource:file1” and “contentsource:file2”.
    You can provide the query text of your result source here and I will help to check the logic.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • RRI target selections same as source query

    Hi BI Experts,
    As per my requirement the input of the target query should be same as the first query. i.e..,
    if A ,B,C,docnumber are the variables of two queres and if i fill Variable A in query one and in the result of the first query i right click on first docuemnt and goto target query then the slection citeria of the target query is Variable A and the document number as well.But the user doesnt want the docnumber to be carried to target query.
    Please let me know your views in achieving the issue
    Regards,
    Madhu

    Hi,
    Please check the requirements correctly. Usually users will jump from summary report to detail report.
    Confirm with the user if requirement is correct or not.
    If you dont want to provide the docnumber in the target query, ask user to click on the filed that is available in the target query, If he click on the document then user will not get any data in the target report.
    Thanks
    srikanth

  • SSAS source Query, Simple Query with never ending refresh time.

    Hello...
    A very simple query based on SSAS cube do not give answer. :-(
    I start a trace to see the exact mdx statement transmited to SSAS, run it in a query editor, the result is... immediate !
    Is there any clue to explain such a behavior ? cube meta data definition ?
    Any help is welcome
    ===========
    Version: 2.21.3974.242

    hello,
    find below the capture of the trace, cannot see any references to rowsets either cellsets...
    thank you for your help
    select{[Measures].[Fact Count]}on 0,nonempty(crossjoin([Invoice Attributes].[Scenario].[Scenario].allmembers,[Period Date].[Month].[Month].allmembers,[Period Date].[Quarter].[Quarter].allmembers,[Period Date].[Year].[Year].allmembers,[Product Line Techno].[Product
    Line Code].[Product Line Code].allmembers),{[Measures].[Fact Count]})properties member_caption,member_unique_name on 1 from(select([Invoice Attributes].[Scenario].&[ACTUALS],[Period Date].[Month].&[20150101],[Product Line Techno].[Product Line Code].&[EB])on
    0 from [Revenue Detailed])cell properties value
    <PropertyList xmlns="urn:schemas-microsoft-com:xml-analysis">
              <Catalog>OLAP12</Catalog>
              <SspropInitAppName>Microsoft SQL Server Management Studio - Query</SspropInitAppName>
              <LocaleIdentifier>1036</LocaleIdentifier>
              <ClientProcessID>5992</ClientProcessID>
              <Format>Native</Format>
              <AxisFormat>TupleFormat</AxisFormat>
              <Content>SchemaData</Content>
              <Timeout>0</Timeout>
              <DbpropMsmdActivityID>284bd120-34f1-4fac-83cb-e8cf443261ad</DbpropMsmdActivityID>
              <DbpropMsmdRequestID>f11764e9-b092-41ea-aae6-a91763960eae</DbpropMsmdRequestID>
            </PropertyList>

  • AS 400 Query

    Hi Guys ,
    I have a question concerning SQL Query. For the moment to do for example select *  from tableX thanks to XI, I'm doing the following :
    In the mapping I use this structure
    MT_Request
         >Statement
            > TableX
                 >   action
               >  access
                       field1
                       field2
                       fieldn
                >  key
                       field1
                       field2
    When I do the mapping, access equal the name of the table and action equal select, insert,..
    The problem with this is that I can only do a Insert, select,... but no Joint :S
    Do you have an Idea how to do it, do I absolutely need to create a function?
    Thanks in advance,
    Best regards,
    Muraii

    if you are using AS/400 source table in your interface then create a step in your KM, with below queries
    select count(*) AS YYY1732WP_COUNT from     <%=snpRef.getFrom()%>
    If it is on target use
    select count(*) AS YYY1732WP_COUNT <%=odiRef.getTable("L","TARG_NAME","A")%>

  • RRI - Jump query, unable to pass the variable value from source to target

    Hi,
        I've a source query which has a variable on 0vendor, from this query i jump to another query for which i want to pass the this variable value, in the target query i've vendor in free characteristics (no filter or variable in there), and in RSBBS i tried the assignment details options keeping vendor as generic, tried variable and the variable name but nothing seem to work.
    But when query is run i can jump into target query but the vendor variable value doesnt get passed thru the values i get in target query is for all rather than for the variable entered vendor value in the source.
    btw we're in NW2004s.
    any help appreciated with points.
    thanks
    Mayil

    Anyways, I read somewhere that a variable with replacement path in target query would work, tried it seem to work.
    let me know if there other way to do it without creating a variable in target query.
    thanks
    mayil

Maybe you are looking for

  • Different WT values in a single field in Payslip.

    Hi, 1. We need to group together 2 or 3 deduction wage types amount as a single field and bring into payslip, how to bring this value in a single field. 2. How to bring values of adjustment wage types in payslip if in case adjustments comes not a sta

  • Can't access movies on Apple TV after update

    I updated my Apple TV today and I can now no longer access the movies section.  As soon as I go into movies (or TV shows), the Apple TV re-sets and shows the home page again in 5-10 seconds.  Other apps on Apple tv like youtube and NBA are working fi

  • Using Custom Targets with Monaco Profiler??

    Does anyone know how to use custom RGB or CMYK profiling targets and import them into Monaco Profiler to build color profiles? I usually use Bill Atkinson's RGB targets and build RGB profiles with my driver using ProfileMaker, but want to build some

  • "Select sum(field)" not summing

    I have a PLSQL statement like: select sum(field1) sum1, sum (field2) sum2 into v_sum1, v_sum2 where something = somethingElse; How come my variable are being assigne a single row's (the first) field1 and field2 values rather than the actual sums? If

  • FTXP slow in Production, fast in QA environment

    Using FTXP we need to deactivate two account keys and then activate two different account keys on all tax rate records in our system (over 500).  In Q environment we can save a change to a tax jurisdiction and change the next jurisdiction immediately