Two cursor variable can match with each other

I have 2 cursor in one procedure
it is possible that cursor 1 variable do some calculation with cursor 2 variable.
for example cursor 1 is for inStock and cursor 2 for Out stock
Balance = Cursor1.inQTY - Cursor2.outQTY

Suppose
Cursor Cursor1 is
select Idate,Icode,IFcode,Iqty,IPrice from returnreport;
Cursor Cursor2 is
select Rdate,Rcode,Rfcode,Rqty,Rprice from TempRed;Cursor1 result is
IDATE      Icode Ifcode   Iqty        IPRICE        REDUNITS
28/06/2010   13    1     148375.7308  101.8004   
30/08/2010   13    1     100284.0398  101.7111  Cursor2 Result is
Rdate       RCODE  RFCODE    Rqty     Rprice
01/07/2010  13          1  2804.7464
31/08/2010  13          1 39315.8646
08/09/2010  13          1 24515.9089 
28/09/2010  13          1      80000 
30/09/2010  13          1 11693.4219  I want to update Cursor 1 table's Column REDUNIT with Cursor 2.
go_block('returnreport');
first_record;
check here IQTY of RETURNREPORT
Loop
Cursor1.Iqty - Cursor2.Rqty
it is like a first in first out basis
check balance = Iqty - Rqty
Update Redunits = Balance
if balance = 0 then
go 2nd row
and update remaining balance in 2ns row.
regards

Similar Messages

  • How do I enable two wireless clients to communicate with each other?

    I have a WRT54GL with the latest firmware.  I have two computers which are both connected to the router, with IP addresses assigned via DHCP.  Neither has a firewall running.  I cannot get them to communicate with each other -- even ping doesn't work.  I can ping the router itself using the IP address assigned to it on the WAN side by my ISP.   Both computers have no problem reaching the internet through the router.
    What settings on the router will enable the communication to occur?  I can't find anything in the router's user interface which appears to control this. 
    Thanks.
    Solved!
    Go to Solution.

    Hi annie25,
    I think it would be best to check on netgear or belkin technical forums how to make these two talk. 
    Yesterday is history. Tomorrow is mystery. Today is a gift.

  • Connecting two m-audio box's with each other?

    Hi Everyone. I've got two M-Audio Solo box's. Is there any way i connect those two with each other so i can use both at the same time in GB?
    Many thanks!!!

    Just plug them in and create an aggregate device that consists of them. You can open Audio MIDI Setup utility and search its help for "Aggregate" to find out how, or if you want a step by step, here's a tut:
    http://thegaragedoor.com/tutorials/agg.html

  • TS3367 Can more than two people chat on Facetime with each other at once?

    Want to Facetime with my two friends. One has a mac and the other an iphone. I have an ipad. Can the three of us Facetime together? Thanks!

    Only 1 to 1 communication is allowed on FaceTime.
    I haven't tried, but you can take a look at this app.
    http://www.oovoo.com/mobile.aspx?pname=mobileoverview

  • 2 J2EE RI servers which communicate with each other

    Hi all,
    I'm wondering whether the following scenario is possible, and if so, of course I would like to now how I have to achieve it.
    I want to run two j2ee ri application servers on two different machines. What I want, is that the applications on the two different servers can communicate with each other.
    Any help on this will be greatly appreciated.

    Greetings,
    that does the lookup, so I have the bean clasees in
    the classpath of the project (is that what you
    ment?).In addition to the bean classes, the client needs the stub files generated by deploytool - the reason for the ClassCastException is due to that the cast actually gets made against the server stub(s) which, in this case, isn't available to the client. The stubs are generated during deployment and have the same name as your interfaces with the suffix '_impl' (implementation). The first dialog of the deployment wizard has the option to "Return client jar" - select it (a checkbox) and add the resulting jar file (has the same name as your .ear file with the ending 'Client.jar'), to your client's CLASSPATH (just mount it as a filesystem in Forte4J ;). This file has the stubs along with the rest of your bean's associated classes.
    Can you help? I'm realy stuck.I hope this helps.
    Thanks.
    Oded "Shushu" HasidiRegards,
    Tony "Vee Schade" Cook

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • Migration between two environments which can't communicate with each other

    My customer is intending to do migration from test environment to production environment using CCM.
    But the two environments are not in the same network.
    The environments' setting is as blew.
    BO TEST Repository can communicate with Web BO Server.
    BO PRODUCTION Repository (Cluster environment) can communicate with Web BO Server.
    BO TEST Repository and BO PRODUCTION Repository (Cluster environment) are in the different network, they can't communicate with each other.
    Setting Target Repository manually in CCM.
    Questions are:
    1. In CCM, as long as both Source Repository and Target Repository can communicate with Web BO Server, the migration will be successful.
       Is that right?
    2. If 1 is not right, is there additional setting should I do?
       For example, If I need to open some firewall port?
    3. Is there other attentions should I notice?
    Thanks

    Questions are:
    1. In CCM, as long as both Source Repository and Target Repository can communicate with Web BO Server, the migration will be successful.
    Is that right?
    Yes that is correct
    2. If 1 is not right, is there additional setting should I do?
    For example, If I need to open some firewall port?
    You have another option which is to use the BIAR files. Export your objects to a BIAR file in source environment, and import them from BIAR into the target environment
    3. Is there other attentions should I notice?
    when using BIAR files as solution, Make sure that you keep them < 1GB size to avoid corruption
    you may have to increase or adjust timeouts on input and output repository servers as well

  • Can two apple devices registered to same apple ID face time with each other. My scenario is face time between IPAD and IPHONE both registered in my apple ID

    Can two apple devices registered to same apple ID face time with each other? My scenario is face time between IPAD and IPHONE both registered in my apple ID

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

  • Link two LRT224 with each other using VPN

    What's the best way to connect two LRT224 with each other, which are in two different citys?
    Open VPN or IPSec?
    I think Gateway to Gateway should be the right mode, but I am very unsure with the lot of settings ...
    Solved!
    Go to Solution.

    Try the EasyLink VPN feature of LRT214/LRT224, which simplifies the site-to-site VPN setup.
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=03cf456383fc4d958cf918110c7fcd42_How_to_configure_...
    EasyLink VPN works in the following way conceptually.
    1. At the primary site, enable EasyLink VPN Server (inbound tab on the Web GUI) and create an account (username/password) for each remote site.
    2. At a remote site, enable EasyLink VPN Client (outbound tab on the Web GUI), and enters the matching account credentials (username/password).
    3. The remote site will automatically reach out to the primary site to establish an IPsec tunnel.
    Note: LRT224 can support up to five EasyLink VPN peers in a star VPN topology.

  • How can I have threads communicate with each other?

    I'm working on a project that requires a group of classes communicating with each other. I decided on using a server and carrying out communication that way. However, my app only has communication between the client and server. I need the clients to be able to communicate with each other. Does anyone know how I can do this or point me to a good tutorial?

    Sorry, here's a bone stock example of my server and client:
    <SERVER>
    package testserver;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class TestServer
    static int portOpen;
    public static void main(String[] args)
    portOpen=4000;
    try
    ServerSocket portListener = new ServerSocket(portOpen);
    TestServer userThreads = new TestServer();
    while (1==1)
    Socket userConnection=portListener.accept();
    userThreads.new PortConnection(userConnection);
    catch (Exception e)
    System.out.println("The server encountered a serious error. Server shut down.");
    e.printStackTrace();
    System.exit(0);
    class PortConnection extends Thread
    //Declare variables to handle connections.
    Socket ourConnection;
    BufferedReader serverInput;
    PrintWriter serverOutput;
    PortConnection(Socket userConnection)
    try
    ourConnection=userConnection;
    serverInput=new BufferedReader(new InputStreamReader(userConnection.getInputStream()));
    serverOutput=new PrintWriter(userConnection.getOutputStream(),true);
    start();
    catch (Exception e)
    System.out.println("An error occurred when a user attempted a connection.");
    public void run()
    serverOutput.println("Welcome to the Server.");
    try
    serverOutput.close();
    serverInput.close();
    ourConnection.close();
    catch (Exception e)
    </SERVER>
    <CLIENT>
    package testclient;
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class TestClient {
    static BufferedReader userInput;
    static Socket quizServer;
    static BufferedReader serverInput;
    static PrintWriter serverOutput;
    static String serverData;
    public static void main(String[] args) {
    userInput = new BufferedReader(new InputStreamReader(System.in));
    try {
    quizServer=new Socket("localhost",4000);
    catch (Exception e) {}
    try
    serverInput=new BufferedReader(new InputStreamReader(quizServer.getInputStream()));
    serverOutput=new PrintWriter(quizServer.getOutputStream(),true);
    catch (Exception e) {}
    try {
    serverData=serverInput.readLine();
    catch (Exception e) {}
    System.out.println(serverData);
    </CLIENT>

  • Both can connect to test sites but not videochat with each other

    I am using a 2GHz PPC iMac on 10.4.6 with external iSight. I can see the Apple ad from one of the test sites. My wife is using a G4 PowerBook running the latest Panther OS with external iSight. She is in a hotel but can also see the Apple ad from the test site. When she was home, we could videochat over Bonjour.
    But, while she is in the hotel out of town, we couldn't videochat with each other. Whether one initiated or the other did, we both get the "XXX failed to respond" message even though we obviously did accept the videocall.
    If we both can videochat with the test sites, how come we cannot videochat with each other?
    Given the above, I hope some experts can rule out a bunch of stuff and let me know the finite (and small) set of potential reasons affecting our situation so that I can work on resolving this efficiently.
    What could be the likely problem?
    On my side, I use an Apple AEBS that uses DHCP and NAT but my iMac is manually set to 10.0.1.201. I have set the ports in Firewall but even when I turned off Firewall it did not work.
    Any help is much appreciated.

    Hi Heng-Yee Yong,
    The test sites are most likely set to have the ports open by UPnP which does not use NAT.
    If you modem is routing and is using Port Forwarding and the Airport is as well then you have two lots of NAT going on at your end.
    I would Open Airport Admin Utilty (Applications/Utilities) and log on to the Airport
    Go to the Network tab.
    Deselect Distributing Addresses which wll trun off NAT in the Airport and make it a Wireless access device.
    This means your computer will have to take an IP form the Modem.
    This may not be rquired if the modem id is Bridge mode itself as this measn it is not routing and all port will be open without the use of NAT.
    This App can help identify if NAT is a problem
    http://bleu.west.spy.net/~dustin/projects/natcheck.xtp
    Or at least whether you have Consistent NAT or not.
    8:50 PM Wednesday; April 26, 2006

  • I have two location one is Delhi(IP-192.168.100.*) and another is Mumbai(IP-192.168.1.*) and both are connected by MPLS line and ping with each other. We have one DC in Delhi location and domain name is CAPLDC and Delhi location all PC is member of this

    I have two location one is Delhi(IP-192.168.100.*) and another is Mumbai(IP-192.168.1.*) and both are connected by MPLS line and ping with each other.
    We have one DC in Delhi location and domain name is CAPLDC and Delhi location all PC is member of this domain and working properly.
    now i am trying join the Mumbai location PC with my Domain(CAPLDC) but they are not join with my DC and generate the error.
    I have chek the DNS and nslookup all are correct but this is generate error. 
     Is this possible Mumbai location join with this Domain(CAPLDC)???
    One more thing when i have created another DC with this name (papldc.com) then Mumbai location is joined properly.
    Pls find the error message below and also find the attachment.
    Note: This information is intended for a network administrator.  If you are not your network's administrator, notify the administrator that you received this information, which has been recorded in the file C:\Windows\debug\dcdiag.txt.
    The domain name "capldc" might be a NetBIOS domain name.  If this is the case, verify that the domain name is properly registered with WINS.
    If you are certain that the name is not a NetBIOS domain name, then the following information can help you troubleshoot your DNS configuration.
    DNS was successfully queried for the service location (SRV) resource record used to locate a domain controller for domain "capldc":
    The query was for the SRV record for _ldap._tcp.dc._msdcs.capldc
    The following domain controllers were identified by the query:
    capldcserver.capldc
    win-dyfq2poc88q.capldc
    However no domain controllers could be contacted.
    Common causes of this error include:
    - Host (A) or (AAAA) records that map the names of the domain controllers to their IP addresses are missing or contain incorrect addresses.
    - Domain controllers registered in DNS are not connected to the network or are not running.
    Pankaj Kumar

    Why are you using a single labeled domain? I would recommend renaming the domain name to be something like domain.com.
    Please refer to the articles below to fix your current issue:
    http://www.wincert.net/tips/networking/1614-cant-join-pc-to-a-domain-with-single-label.html
    http://www.itgeared.com/articles/1128-using-single-label-dns-names-for-active/
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Can aim users and .mac users video/audio chat with each other?

    today was a crazy day with ichat. two of my friends were able to video chat 1 on 1. my mac is qualified to handle 3-way or 4-way chats. when they invite me, the bubble pops up. i hit accept and the loading spindle keeps on spinning for minutes until it just denies me entrance. they get an error saying i never accepted, so as soon as they invite me, they don't get any other response back.
    could it be that i am on the AIM network and both of them are on the .mac network?
    iMac G5   Mac OS X (10.4.9)   1.8ghz, 1.5gig ram, 3rd party camcorder, latest iChat. router installed.

    can aim users and .mac users video/audio chat with each other?
    Yes. Apple does not have its own publicly available IM service; iChat uses the AIM network, and there are few functional differences between AIM and .Mac screen names. If they are using a client other than iChat, there may be interoperability issues with audio and video chats, or the other client may not support those types of chatting.
    (21228)

  • Two ear file communicating with each other

    HI,
    I have one doubt,
    I Have two ear files (two webservices actually) deployed succesfully in the same application server (Weblogic7.0). Let us say them a.ear and b.ear
    In a.ear there are class say A.class and B.class. In B.java file there is a staic HashMap which stores some object based on some id. Also in B.java there is static method which takes the id as a parameter and return the corrospojnding object stored in the static hasmap.
    In b.ear file there class say B.class and C.class. Note that this ear file has its own copy of B.class file. In C.java file i create an object (though i dont need create being it a static method) of B.java and calls the static object passing it the id and expecting it that it will return me the object stored in the Hashmap. it returns me null though it has the objects stored for that id.
    Is it because both ear files has their own copy of B.class. but i though that that they are running in the same jvm in application server so it should not be a problem. if this is the reason then my problem will be solved if i put them in same ear file.
    Can anybody put his insights into his experiences and lemme know what is the cause of problem and solution and for my knowledge why it is happening.
    Best Regards,
    Akhil Nagpal

    You're right that the two have different copies of the class. This is because the EJB container uses a different classloader for different applications, to prevent statics clashing with each other and other related security reasons.
    Usually if you want to communicate from one to the other, you would use the EJB mechanism itself. The JNDI names should be global (from simple tests I did in the past, this seems to be the case) so that one application can look up an EJB from the other.

  • Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help..

    Hi, I'd like to set alarms or reminders on my I phone or I pad so that it can update or sync automatically with each other. I don't know if this is possible or how to do it. I hope you can help.

    HI, if I did this, then I believe that I cloud would then hold my info which I don't want. Is that the case? The reason is that I'm an old git, therefore used to not giving out info. Would I be right?
    Thank-You so much for taking the time to answer.
    John.

Maybe you are looking for