XSQL query output as parameter for next xsql query

Hi,
Is it possible to use the output of one xsql query as input parameter for the next xsql query in the same file. I am trying to retreive an id from the query and use it in the next one. I cannot combine all the queries into one, since I intend to make the first query a database function that returns the id I am looking for. I am looking for something like this
<xsql:query>
select '1000' as myid
from dual
</xsql:query>
<xsql:query>
select add1,ro1
from table1
where id = {@myid}
</xsql>
I need the id returned by the first query to be used in the second one. Eventually my first query will be a stored procedure that validates the users rights and on sucess return the following tag <myid> 1000 <myid>.
Please let me know , how I can achieve my goal of validating a user's priveleges and then executing the second query.
Thanks
Padmaja

Hi ,
Thanks for the response.This works if the first query is a select .
If the first query was a call to a db procedure that returned the <myid>100<myid> would this still work?
<xsql:set-page-param name="myid">
<xsql:include-owa>
xyz;
</xsql:include-owa>
</xsql:set-page-param>
<xsql:include-param name="myid"/>
<xsql:query>
select name from mytable where id={@myid}
</xsql:query>
I have to use include-owa as the db procedure xyz does some cookie validations and then returns an id based on that. The procedure xyz returns an xml tag of form <myid>100<myid>
This does not work as the value of myid is not available to the second query.
Thanks
Padmaja

Similar Messages

  • Bash: Use command output as argument for next command in pipe

    I'm trying to do this:
    tail -f /var/logfile | grep -C 0 text | mail -s "OUTPUT OF GREP" [email protected]
    How can I do this?

    Haven't tested it but try
    mail -s $(tail -f /var/logfile | grep -C 0 text) [email protected]
    Edit: Are you sure it will work with 'tail -f'?
    Seems that the subject can't contain certain characters:
    [karol@black ~]$ mail -s $(tail /var/log/kernel.log | grep -C 0 detected) [email protected]
    18:05:11 contains invalid character ':'
    kernel: contains invalid character ':'
    [ contains invalid character '['
    8.433910] contains invalid character ']'
    4-0:1.0: contains invalid character ':'
    ^C
    How will you escape multiple newlines?
    Last edited by karol (2011-05-20 15:20:07)

  • How to define Export parameter as Import parameter in next test script.

    Hi Experts,
    We have defined Purchase order no. as export parameter in ME21N transaction test script.
    Test configuration for ME21N transaction executed succesfully and the Purchase order No. appeared in the last message
    is the export parameter for next test script i.e. MIGO transaction.
    However I am unable to define this export parameter as Import parameter in next test script for MIGO transaction.
    Please suggest me the method to define the same.
    Please Help...
    Thanks in Advance
    Vikas

    Vikas,
    You need to create super script which is nothing but having the both the steps (Po creation & MIGO ) in this eCatt script. This can be achieved by using the REF command as ex. below.
    Create PO
    REF ( Z_CREATE_PO , Z_CREATE_PO_1 ).
    Create MIGO
    REF ( Z_CREATE_MIGO , Z_CREATE_MIGO_1 ).
    Z_Create_PO is the actual eCatt script that you recorded to create the PO. Z_CREATE_QUOTE_1 is the interface created by SAP. Similarly you have use the REF command to call the MIGO script inside this super script.
    To pass the export parameter from PO step to MIGO, double click the Z_CREATE_PO_1and define the export variable for PO number. And do the same on the interface for MIGO step.
    Follow the instructions if you need in this help document posted by another user in this forum
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID0134775250DB00634934533836311611End?blog=/pub/wlg/3497
    Note : Cut & paste the entire link above to view the document.
    thanks
    Venkat

  • Parameter for Current Month and Previous Month

    I'm trying to create a parameter for current month and previous month based on the ex_date, but not sure what i'm doing wrong. 
    where ex_date = @SelectDate
    I created a second dataset below for the values in the parameters.
    SELECT Month(CURRENT_TIMESTAMP) AS 'Month', 'Current Month' as 'Current Month'
    union all
    SELECT Month(CURRENT_TIMESTAMP)-1 AS Month, 'Previous Month' as 'Previous Month'
    Results
    Month Current Month
    3 Current Month
    2 Previous Month
    Once I preview it I get "Conversion failed when converting date and/ or time from character string" I changed the data type to "date/Time" but that did not make a difference. The date is convert (varchar(10), ex_date, 101) so looks like
    11/12/2014. 
    I've also tried expressions like =month(now()) to pull current month with same error so i'm not sure what i'm doing wrong. Any ideas?

    i tired this real simple report
     in the first dataset - my main report query - select name from sysdatabases where month(crdate())=@month
    in the second dataset - select month(getdate()) as Month1
    in the parameters - choose int data type and available values - select the second data set
    in the first data set- add this parameter..( i am assumming you know this, since you have done)
    in the preview you should get the drop down with current month number - 3
    and if you run the report, it will display the database names that were created in march. remember we are no checking year, so will get all that were created in march across the years.
    Hope it Helps!!
    I'm looking to have the dropdown say "Previous Month" and "Current Month" as a option. I know how to get the information in SQL, but not sure how this translates or put into a parameter.
    Current Month
    list_date BETWEEN
    DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0)
    AND
    DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) + 1, 0)
    Previous Month
    list_date between
    CONVERT(varchar,dateadd(d,-(day(dateadd(m,-1,getdate()-2))),dateadd(m,-1,getdate()-1)),106) /* Last Month */
    and
    CONVERT(varchar,dateadd(d,-(day(getdate())),getdate()),106)

  • Problems when creating a new parameter for a parametric role

    I'm trying to create a new parameter for a parametric role, but it seems that it is never updated, because the BPM engine does not return any error.
    The scenario is: I have a process that has the role "Brands_Admin", the brands are populated by Web Service dynamically, then the parameters of the role would be those brands. In this case, if a new brand is registered (WS returns a new brand), I simply create a new parameter for the role through the "process administrator" of the BPM Enterprise.
    I'm trying to create the new parameter as follows:
    dirSession                 = DirectorySession.currentEngineSession;
    dirOrganizationalRole       = DirOrganizationalRole.fetch(session : dirSession, id : "Brands_Admin");
    String[] parametricRoles       = dirOrganizationalRole.parametricValues;
    parametricRolesCount      = parametricRoles.length();
    parametricRoles[parametricRolesCount]      = "NEW_BRAND";
    dirOrganizationalRole.parametricValues      = parametricRoles;
    dirOrganizationalRole.update();
    dirOrganizationalRole.refresh();
    for (int i=0; i<dirOrganizationalRole.parametricValues.length(); i++) {
         logMessage(dirOrganizationalRole.parametricValues);
    In the code above, the BPM Studio will print the new parameter correctly, but in next activity (like a Screenflow) when I try to get the parameters of that role again, there are only the parameters that were registered using the BPM Studio, the parameters that are created programmatically not appear.
    Anyone know the reason?
    An user with the same problem: http://forums.tangosol.com/forums/thread.jspa?threadID=839253&tstart=1

    When a project that contains this logic to create a new parameter for a parametric role programmatically is deployed in BPM Enterprise, some strange behaviours occurs.
    The first is that I cannot see through the process administrator the new parameter that was created for the parametric role.
    The second is that if I create this new parameter through process administrator and associate an user to the role that contains the new parameter I cannot access the deployment process. In workspace (authenticated with user that is associated with the role that contains the new parameter) I cannot see anything about the process.

  • SQL Statement as Parameter for Stored Proc

    This works fine in SQL script, but doesn't work when converting the script to a sp.  It doesn't like how I've defined the @PeriodEndDate parameter.  How do I set the variable to the results of a SQL statement?
    CREATE PROCEDURE usp_ARAging 
    -- Add the parameters for the stored procedure here
    @FiscalYear int = 2014, 
    @FiscalPeriod int = 5,
    @PeriodEndDate date = (SELECT MAX(JEDate) FROM ERPSQL01.EpicorNamg905.Accounting.Dim_JEDate
    WHERE FiscalYear = @FiscalYear
    AND FiscalMonth = @FiscalPeriod)
    Kirk P.

    Let's start over.  The default value of a procedure argument is a "suggestion" - a value to be used when it is not provided by the caller.  So is your goal to allow the user to supply any date, not just the one that coincides with the
    fiscal year and period values?  IF not, then it should not be a parameter and the value should be determined by the code inside the stored procedure. 
    However, if your goal is to allow any value, then you must follow the rules for specifying an appropriate default and those rules are very restrictive.  You cannot use a query nor can you refer to other parameters.  The typical approach is to use
    a "marker" value which the caller uses to indicate that it wants to use the true "default" value which you would then determine inside your stored procedure.  Often a value of NULL is used; in your procedure the code checks this parameter
    for a null value and, if found, assigns it the value you used in your query above.
    And while we're at it, you should code defensively and check that the set of values supplied as parameters are consistent with each other and with the logic that depends on them.  For example, presumably the period argument should be between 1 and 12
    (and not null).  I suggest you reconsider the use of integers since the domain of these values FAR EXCEEDS that allowed for years and months for most business purposes.

  • Give reason - Scheduled for next payment run in APP

    Dear All
    In APP > Parameter Tab > there is a field Next p/date is it for next payment run schedule date or base line date or what for?
    For example: I am running APP for the date 11.09.2008 my next p/date which i given is 12.09.2008.  Suppose if i run the second time on the 11.09.2008 for the same vendor itself it is running.  But it is not throwing error message : you need to run on 12.09.2008. Why?
    Regards
    Manikandan

    Hi
    The help for the field explains clearly why this field is given..
    This date is needed in order to check the due date of payables. If an item is already overdue on the date of the next payment run, or would lose cash discount, the system pays the item in this payment run.
    The general rule for receivables is that they cannot be paid until the baseline date for payment has been reached. Such items are paid on or after the baseline date for payment, regardless of when the next payment run is scheduled for.
    Hope it was helpful
    Karthik C P

  • How to create own Selection Parameter for ME2M list

    Dear Sir,
    We use ME2m tcode for getting list related to Purchase Order . We have been told that we can create our own "SELECTION PARAMETER" for ths report . Kindly guide us as what steps need to be done for this pl .
    With Thanks and Regards
    Sonia Mittal

    you can also set a variant for the existing / default ME2M screen
    fill all the required entries then click on GOTO >>Variants >Save as Variant
    next time when you run T code ME2M, you can select the variant and run the t code
    hope this will help you

  • How can we have transient variable value as a parameter for an attribute?

    Hi,
    I am using JDev 11.1.1.2 with ADF11g.
    I have a requirement where I have to display a table with many columns. One of the columns is a drop down whose values are fetched from DB. This is a non-DB item and so becomes a transient variable of the VO.
    There is another column/attribute of the VO that has to first pick the value of the transient variable and display values in the LOV.
    How can this be achieved? Do we have an example link for this?

    Hi simanta,
    According to your description that you are experiencing the issue with passing one textbox's values as parameter to another textbox, you got some errors, right?
    I have tested on my local environment and can reproduce your issue, your issue can be caused by the invalid expression you have added in the parameter for textbox1, you have mentioned that the textbox1 have just one value, for example, if you specify
    the default value and available value using this expression "=first(Fields!Yourfields.Value, "DataSet2")" you will get this kind of error.
    So, I suggest you not using the expression in the parameter, you can add condition in the query to get the proper value for textbox1, you said you also try to create an dataset for textbox1 but not getting the proper values of textbox1, please reference
    to details information below to check if you have done the right actions:
    Create an Dataset(Dateset2) to get the value for textbox1:
    I suppose you want to get the first values from the table, you can use query below instead of the using expression:
    Select Top 1 amount from tablename2
    Add the parameter(Param1) for textbox1, specify both the available values and default values by select the "Get values from a query" (DataSet2)
    In the main dataset(Dataset1), add the filter like below to display the textbox2's values which are  greater than Textbox1:
    You can also filter the data by modify the query of Dataset1:
    SELECT  * FROM   TableName1
    where  SalesAmount >(@Param1)
    If you problem still exists, please try to provide information below to help us more effective to provide an solution:
    How did you get the value for textbox1(Please provide all the expressions or the dataset query you are currently using)
    How did you add the filter to filter the Textbox2 which greater than textbox1?
    Any problem, please free to ask.
    Regards
    Vicky Liu

  • Production Order   : OUTPUT Type Configuration for Production Order  as EDI

    Dear SDN All ,
      OUTPUT Type Configuration for Production Order.
    <b>Doubt in third Point</b>
    We have found the IDoc " LOIPRO01 " for Production Order
    (Please confirm that this IDoc can be used for outbound IDoc for Production Order)
    And foloowing
    <b>1. Defining the Output Type for Particular Application.
       T-Code: “NACE”</b>
      A. Output type have created upder application "ME" description : "Inventory Management"
      B.  " ZEDI "  created for getting output as EDI type
         ZEDI is copied from "WF01" output type. and
         Transmision mediam as "EDI"          
         Program : RSNASTED
         Form Routine :  EDI_PROCESSING
              (Please confirm is this for IDoc creation)
    <b>2. Partner profile creation:</b>
      A. Partner profile created under logical system and
      B. and In outbound parameter declared as "LOIPRO"(This is for sending the IDoc "LOIPRO01" to XI system).
    <b>3. Customization for output type for Proction Order -- (For CO02,CO08)</b>   ---
       A. But only one functional customization is remaining to do, for getting the IDoc while saving the Production Order in T-Code "CO02" and "CO08"
            <i>For Example:
                in sales order transaction va02 (in DBI 450 client) and select any Sales order.
                & select following menu path.
                 Extras --- > Output -
    > Header -
    > output
               Here we can set our output type "that U defined in NACE Transaction-Code"</i>
    <b> Like the same way I want to set output type  for CO02, CO08 transaction.</b>
    But I couldn't find the menu Item in Co02 and Co08 for setting the output.(like VA03)
    Please help me out for setting the output type for Production Order Creation.
    Thanks in advance,
    Dhanabal T
    Message was edited by: Dhanabal T

    Hello.
    I have a similar requirement. Did you guys find the solution?

  • Output of system_privilege_map for version 10g needed

    Hello everyone.
    I need the output of system_privilege_map for Oracle DB version 10g because i've no access to a 10g db at the moment but i need the complete list of the system privileges with 173 entries.
    Hope someone of you will be such nice and post it here for me :-)
    Thanks in advance.
    Jim

    Hi,
    In 10.2.0.3 i get 166 entries - confirmed with what exists in sql.bsq
    grep SYSTEM_PRIVILEGE_MAP sql.bsq |grep -i insert |grep -v rem |wc -l
    =166
    SQL> /
    -3 ALTER SYSTEM 0
    -4 AUDIT SYSTEM 0
    -5 CREATE SESSION 0
    -6 ALTER SESSION 0
    -7 RESTRICTED SESSION 0
    -10 CREATE TABLESPACE 0
    -11 ALTER TABLESPACE 0
    -12 MANAGE TABLESPACE 0
    -13 DROP TABLESPACE 0
    -15 UNLIMITED TABLESPACE 0
    -20 CREATE USER 0
    -21 BECOME USER 0
    -22 ALTER USER 0
    -23 DROP USER 0
    -30 CREATE ROLLBACK SEGMENT 0
    -31 ALTER ROLLBACK SEGMENT 0
    -32 DROP ROLLBACK SEGMENT 0
    -40 CREATE TABLE 0
    -41 CREATE ANY TABLE 0
    -42 ALTER ANY TABLE 0
    -43 BACKUP ANY TABLE 0
    -44 DROP ANY TABLE 0
    -45 LOCK ANY TABLE 0
    -46 COMMENT ANY TABLE 0
    -47 SELECT ANY TABLE 0
    -48 INSERT ANY TABLE 0
    -49 UPDATE ANY TABLE 0
    -50 DELETE ANY TABLE 0
    -60 CREATE CLUSTER 0
    -61 CREATE ANY CLUSTER 0
    -62 ALTER ANY CLUSTER 0
    -63 DROP ANY CLUSTER 0
    -71 CREATE ANY INDEX 0
    -72 ALTER ANY INDEX 0
    -73 DROP ANY INDEX 0
    -80 CREATE SYNONYM 0
    -81 CREATE ANY SYNONYM 0
    -82 DROP ANY SYNONYM 0
    -83 SYSDBA 0
    -84 SYSOPER 0
    -85 CREATE PUBLIC SYNONYM 0
    -86 DROP PUBLIC SYNONYM 0
    -90 CREATE VIEW 0
    -91 CREATE ANY VIEW 0
    -92 DROP ANY VIEW 0
    -105 CREATE SEQUENCE 0
    -106 CREATE ANY SEQUENCE 0
    -107 ALTER ANY SEQUENCE 0
    -108 DROP ANY SEQUENCE 0
    -109 SELECT ANY SEQUENCE 0
    -115 CREATE DATABASE LINK 0
    -120 CREATE PUBLIC DATABASE LINK 0
    -121 DROP PUBLIC DATABASE LINK 0
    -125 CREATE ROLE 0
    -126 DROP ANY ROLE 0
    -127 GRANT ANY ROLE 0
    -128 ALTER ANY ROLE 0
    -130 AUDIT ANY 0
    -135 ALTER DATABASE 0
    -138 FORCE TRANSACTION 0
    -139 FORCE ANY TRANSACTION 0
    -140 CREATE PROCEDURE 0
    -141 CREATE ANY PROCEDURE 0
    -142 ALTER ANY PROCEDURE 0
    -143 DROP ANY PROCEDURE 0
    -144 EXECUTE ANY PROCEDURE 0
    -151 CREATE TRIGGER 0
    -152 CREATE ANY TRIGGER 0
    -153 ALTER ANY TRIGGER 0
    -154 DROP ANY TRIGGER 0
    -160 CREATE PROFILE 0
    -161 ALTER PROFILE 0
    -162 DROP PROFILE 0
    -163 ALTER RESOURCE COST 0
    -165 ANALYZE ANY 0
    -167 GRANT ANY PRIVILEGE 0
    -172 CREATE MATERIALIZED VIEW 0
    -173 CREATE ANY MATERIALIZED VIEW 0
    -174 ALTER ANY MATERIALIZED VIEW 0
    -175 DROP ANY MATERIALIZED VIEW 0
    -177 CREATE ANY DIRECTORY 0
    -178 DROP ANY DIRECTORY 0
    -180 CREATE TYPE 0
    -181 CREATE ANY TYPE 0
    -182 ALTER ANY TYPE 0
    -183 DROP ANY TYPE 0
    -184 EXECUTE ANY TYPE 0
    -186 UNDER ANY TYPE 0
    -188 CREATE LIBRARY 0
    -189 CREATE ANY LIBRARY 0
    -190 ALTER ANY LIBRARY 0
    -191 DROP ANY LIBRARY 0
    -192 EXECUTE ANY LIBRARY 0
    -200 CREATE OPERATOR 0
    -201 CREATE ANY OPERATOR 0
    -202 ALTER ANY OPERATOR 0
    -203 DROP ANY OPERATOR 0
    -204 EXECUTE ANY OPERATOR 0
    -205 CREATE INDEXTYPE 0
    -206 CREATE ANY INDEXTYPE 0
    -207 ALTER ANY INDEXTYPE 0
    -208 DROP ANY INDEXTYPE 0
    -209 UNDER ANY VIEW 0
    -210 QUERY REWRITE 0
    -211 GLOBAL QUERY REWRITE 0
    -212 EXECUTE ANY INDEXTYPE 0
    -213 UNDER ANY TABLE 0
    -214 CREATE DIMENSION 0
    -215 CREATE ANY DIMENSION 0
    -216 ALTER ANY DIMENSION 0
    -217 DROP ANY DIMENSION 0
    -218 MANAGE ANY QUEUE 1
    -219 ENQUEUE ANY QUEUE 1
    -220 DEQUEUE ANY QUEUE 1
    -222 CREATE ANY CONTEXT 0
    -223 DROP ANY CONTEXT 0
    -224 CREATE ANY OUTLINE 0
    -225 ALTER ANY OUTLINE 0
    -226 DROP ANY OUTLINE 0
    -227 ADMINISTER RESOURCE MANAGER 1
    -228 ADMINISTER DATABASE TRIGGER 0
    -233 MERGE ANY VIEW 0
    -234 ON COMMIT REFRESH 0
    -235 EXEMPT ACCESS POLICY 0
    -236 RESUMABLE 0
    -237 SELECT ANY DICTIONARY 0
    -238 DEBUG CONNECT SESSION 0
    -241 DEBUG ANY PROCEDURE 0
    -243 FLASHBACK ANY TABLE 0
    -244 GRANT ANY OBJECT PRIVILEGE 0
    -245 CREATE EVALUATION CONTEXT 1
    -246 CREATE ANY EVALUATION CONTEXT 1
    -247 ALTER ANY EVALUATION CONTEXT 1
    -248 DROP ANY EVALUATION CONTEXT 1
    -249 EXECUTE ANY EVALUATION CONTEXT 1
    -250 CREATE RULE SET 1
    -251 CREATE ANY RULE SET 1
    -252 ALTER ANY RULE SET 1
    -253 DROP ANY RULE SET 1
    -254 EXECUTE ANY RULE SET 1
    -255 EXPORT FULL DATABASE 0
    -256 IMPORT FULL DATABASE 0
    -257 CREATE RULE 1
    -258 CREATE ANY RULE 1
    -259 ALTER ANY RULE 1
    -260 DROP ANY RULE 1
    -261 EXECUTE ANY RULE 1
    -262 ANALYZE ANY DICTIONARY 0
    -263 ADVISOR 0
    -264 CREATE JOB 0
    -265 CREATE ANY JOB 0
    -266 EXECUTE ANY PROGRAM 0
    -267 EXECUTE ANY CLASS 0
    -268 MANAGE SCHEDULER 0
    -269 SELECT ANY TRANSACTION 0
    -270 DROP ANY SQL PROFILE 0
    -271 ALTER ANY SQL PROFILE 0
    -272 ADMINISTER SQL TUNING SET 0
    -273 ADMINISTER ANY SQL TUNING SET 0
    -274 CREATE ANY SQL PROFILE 0
    -275 EXEMPT IDENTITY POLICY 0
    -276 MANAGE FILE GROUP 1
    -277 MANAGE ANY FILE GROUP 1
    -278 READ ANY FILE GROUP 1
    -279 CHANGE NOTIFICATION 0
    -280 CREATE EXTERNAL JOB 0
    166 rows selected.
    In theory 10.2.0.4/10.2.0.5 could have altered this and 10.2.0.1 base version could be different from 10.2.0.3......
    Cheers,
    Harry

  • LOGARCHMETH1 parameter for logging

    Hi
    The SAP application is not getting started after i have switched the LOGARCHMETH1 parameter for logging .When i switch back the parameter to OFF the SAP application is working .Please help me in setting this parameter so that online backup is possible.
    This is the log of it .
    cgqadm 9> startsap
    Checking db6 db Database
    ABAP Database is not available via R3trans
    Starting SAP-Collector Daemon
    13:15:56 12.03.2008   LOG: Effective User Id is root
    This is Saposcol Version COLL 20.94 700 - AIX v10.35 5L-64 bit 070123
    Usage:  saposcol -l: Start OS Collector
            saposcol -k: Stop  OS Collector
            saposcol -d: OS Collector Dialog Mode
            saposcol -s: OS Collector Status
    The OS Collector (PID 368778) is already running .....
    saposcol already running
    Running /usr/sap/CGQ/SYS/exe/run/startdb
    03/12/2008 13:16:00     0   0   SQL1063N  DB2START processing was successful.
    SQL1063N  DB2START processing was successful.
    Activate database failed
    R3trans connect failed
    DB startup failed
    db2 update db cfg for CGQ using LOGARCHMETH1 OFF
    cgslsvr1:cgqadm 3> su - db2cgq
    db2cgq's Password:
    cgslsvr1:db2cgq 1> db2 update db cfg for CGQ using LOGARCHMETH1 OFF
    DB20000I  The UPDATE DATABASE CONFIGURATION command completed successfully.
    cgslsvr1:db2cgq 3> db2 list applications
    SQL1611W  No data was returned by Database System Monitor.
    cgslsvr1:db2cgq 4> db2stop
    03/12/2008 13:06:45     0   0   SQL1064N  DB2STOP processing was successful.
    SQL1064N  DB2STOP processing was successful.
    cgslsvr1:db2cgq 5> db2start
    03/12/2008 13:06:53     0   0   SQL1063N  DB2START processing was successful.
    SQL1063N  DB2START processing was successful.
    Regards,
    Vinay.

    Hi Vinay,
    1)Use LIST HISTORY BACKUP ALL FOR DATABASE <sid> and check the backup image file and the the current log file.
    2)restore your database using the backup image db2 restore database <database_name> taken at <timestamp>
    3)Check the status of the database , it will be in rollforwad pending db2 rollforward database <database_name> query status
            It will give you the log file need to be applied.
    4) use db2 restore database <database_name> to end of logs
    5) When you are complete use db2 "rollforward database <db_name> stop/complete"
    Regards,
    sam

  • Configure string parameter for LabView dll

    Hi,
    I have created a simple LV 2010 vi (Starting vi) that reads the identification of an oscilloscope. I then take this vi and build it to a LabView dll. I test the dll by calling it from LabView (RunFrom dll). It essentially seems to work but len and ReadBuffer come back blank. It has to be in the way I am configuring the parameter setup for Readbuffer (Parameter Setup) in the dll configuration. I have tried several different configurations but nothing seems to work. Any help is appreciated!
    Jim Haas
    Solved!
    Go to Solution.
    Attachments:
    Starting vi.png ‏43 KB
    RunFrom dll.png ‏29 KB
    Parameter Setup.png ‏20 KB

    What's the len parameter for?  Normally you would set that as the length of the string, but it appears you haven't done that.  Also, you're passing len by value, not by reference, so the function expects it to be an input and you'll never get back a value other than whatever value you provide.
    Don't use a local variable of ReadBuffer for the "readbuffer" input.  You need to pass an initialized string long enough to hold the expected amount of data.  The easiest way to do this is to use Initialize Array to create an array of U8, then use byte array to string.  Set the "minimum size" parameter to "len" and pass in the length of the initialized string (this isn't required but is good practice).  If you need the resulting length output, add another indicator and parameter for that value.  There might be a way to do it with a single parameter by passing len by reference, you'd have to experiment (it's definitely doable in C but I don't know if LabVIEW allows it).

  • How to set value for Next Auto Restart for components

    Hi All
    When I checked my SPS13 portal in component monitoring area, I found that one of file server repository  etc is not running. To get rid of the problem, we had to restart the portal.
    On the same page there is a column for Next Auto Restart which was empty. Any idea where do we set it so that we do not have to restart entire portal for such kind of error.
    Any help will be appreciated.
    Regards
    Prabhakar Lal

    Quoting a mail by Akhilesh:
    "Until EP6 SP2 you could have done this via
    System Administration  -> System Configuration -> Monitoring Configuration,
    but this iView was deleted in SP3 and now this configuration needs to be done using the VA
    In the VA navigate to Server -> Services -> Monitoring
    In the Monitor Tree navigate to Root -> Applications -> KMC - > Repository Framework -> Components -> Repository Manager
    You can set the "next auto restart" parameter for managers individually."
    Regards, Karsten

  • Creating a function which you can execute with a parameter for date range

    Hi Everyone,
    Hope you can help me.
    I have specific data that I am looking at that I require to query from a function. This function will require that I specify a parameter for a specific date which will only list the date criteria f my choosing.
    Here is the data..
    StudentID
    FirstName
    LastName
    ClassName
    ClassStartDate
    ClassEndDate
    GPA
    1
    John      
    Davids    
    Soft Dev  
    11/1/2013 9:00
    11/30/2013 12:00
    3.25
    2
    John      
    Davids    
    Database  
    10/1/2013 9:00
    10/30/2013 12:00
    3.5
    3
    John      
    Davids    
    Web Design
    10/1/2013 9:00
    10/30/2013 12:00
    4
    4
    John      
    Davids    
    Psychology
    10/1/2013 9:00
    10/30/2013 12:00
    3.25
    So here is an example function which will need to be altered. I am hoping someone could help me figure this out. I thought the below may have been correct, but it just errors out.
    SET
    ANSI_NULLSON
    GO
    SET
    QUOTED_IDENTIFIERON
    GO
    -- =============================================
    -- Author: <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    CREATE
    FUNCTIONStudentGPATimePeriod
    @startdate
    AS
    BEGIN
    selectFirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
    fromdbo.Students
    whereClassStartDate
    =@startdate
    END
    GO

    Hi Saravana,
    If I would to execute this function, how would the parameter be entered?
    exec dbo.StudentGPATimePeriod
    i think what you need is PROCEDURE, try below
    --For a single date
    Create PROCEDURE StudentGPATimePeriod
    ( @startdate datetime )
    AS
    Begin
    select FirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
    from dbo.Students
    where ClassStartDate >=@startdate and ClassStartDate < dateadd(day,1,@startdate)
    End
    GO
    --for multiple dates
    CREATE PROCEDURE getStudentGPAMultipledate
    ( @startdate datetime,@enddate datetime )
    AS
    BEGIN
    select FirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
    from dbo.Students
    where ClassStartDate >=@startdate and ClassStartDate < dateadd(day,1,@enddate)
    END
    GO
    EXEC StudentGPATimePeriod @startdate='2014-11-12'
    GO
    EXEC getStudentGPAMultipledate @startdate='2014-11-12',@enddate='2014-11-13'

Maybe you are looking for

  • Can I add a map to an appointment?

    I wish to add a map to some appointments but cannot figure out how to do that.  I can't get it to work on my iPhone, iPad, or Mac. I see a map on some of the ads that show iCal, so it must be an option. Suggestions? Thank you

  • MOV to Screen Caps??

    Is there a way that I can use QTP to produce screen caps (jpg, png or whatever image format) of a .mov file? Every so many frames. Or is there another program that will do a better job of this? Thanks for any help

  • Java Plug-in 1.4 Fatal Error

    The Dialog box further states that the Java Runtime Environment cannot be loaded from <D|e\bin\hotspot\jvm.dll. What do I need to set so that my Netscape 6 browser can find the jvm.dll which I have in the following locations and sizes: jvm.dll C:\jdk

  • Mail Merge error - ?

    I am getting an error when doing a mail merge. I have a FM database that has been exported to excel (Why ... FM is owned by Apple for goodness sake).  I have then opened the xls file in Numbers and I am getting the error "Please select a Numbers docu

  • User assignment with HR replication

    We are implementing SRM 7.02 and ECC 6.06. We have active HR replication of the Org. Structure form ERP system to SRM, but we are not using CUA. We are creating SRM users with SU01 in SRM. In the pre-productive systems the HR replication worked fine,