inner printing messages descending order of loop for

Hi all

Declare

slider c_sender;

slider c_receiver1;

slider c_receiver2;

Begin

For c_rec in c_sender loop

....

.....

For c_rec1 in the c_receiver1loop (c_rec.param)

dbms_output.put_line ('Entere1');

End loop;

For c_rec2 in the c_receiver2loop (c_rec.param)

dbms_output.put_line ('Entered2');

End loop;

End loop;

End;

output

Entere2

Entere1

Why printing messages like descending order

and I need values such as

Entere1

and it's values related o/p


Entere2

and it's values related o/p


How to do this? can you help me please?


Please see my post update #9 (Test cases)

Post edited by: Rajesh123 added on POST #9 Test cases

If you need something like below

SET SERVEROUTPUT ON

DECLARE

CURSOR c_1

IS

SELECT CODE_ID,

HEADER_ID,

ACC_DATE,

ACC_CODE

OF xxc_sender

ORDER OF HEADER_ID, CODE_ID, acc_date;

CURSOR c_2 (NUMBER, v_header_id NUMBER v_code_id)

IS

SELECT CODE_ID,

HEADER_ID,

po_id,

ACC_CODE

OF xxc_receiver_1

WHERE CODE_ID = v_code_id

AND HEADER_ID = v_header_id

HEADER_ID ORDER, CODE_ID;

CURSOR c_3 (v_code_id1, NUMBER v_header_id1)

IS

SELECT HEADER_ID, ACC_CODE, CODE_ID

OF xxc_receiver_2

WHERE CODE_ID = v_code_id1

AND HEADER_ID = v_header_id1

ORDER OF HEADER_ID, CODE_ID, trx_date;

BEGIN

Dbms_output.put_line ('enter the loop of the sender");

DBMS_OUTPUT.put_line ('--------------------------------------------------------------');

FOR c_rec IN c_1

LOOP

IF c_1% ROWCOUNT > 1 THEN

DBMS_OUTPUT.put_line ('----------------------------------------------------------------');

END IF;

dbms_output.put_line ('Code Id is :'|| c_rec. CODE_ID |) » '||' AccCode :'|| c_rec. ACC_CODE);

FOR c_rec1 IN c_2 (c_rec.code_id, c_rec.header_id)

LOOP

Dbms_output.put_line ('entered in the loop of Receiver1");

dbms_output.put_line ('Code Id is =' | c_rec1.) CODE_ID | » '||' AccCode =' | c_rec1. ACC_CODE);

END LOOP;

FOR c_rec2 IN c_3 (c_rec.code_id, c_rec.header_id)

LOOP

Dbms_output.put_line ('entered in the loop of the receptor 2');

dbms_output.put_line ('Code Id is =' | c_rec2.) CODE_ID | » '||' The header ID is :'|| c_rec2. HEADER_ID | »  '||' AccCode' | c_rec2. ACC_CODE | »  '||' AccCode123 :'|| c_rec2. ACC_CODE);

END LOOP;

-DBMS_OUTPUT.put_line (' ');

END LOOP;

END;

OUTPUT:-

=======

anonymous block filled

Enter the loop of the sender

--------------------------------------------------------------

Code Id is: AccCode:CGE 50

Entered in the loop of Receiver1

Code Id is = 50 AccCode = CGE

----------------------------------------------------------------

Code Id is: 104 AccCode:ABSORPTION

Entered in the loop of Receiver1

Code Id is = 104 AccCode = ABSORPTION

----------------------------------------------------------------

Code Id is: 395 AccCode: VALUE

Entered in the loop of the receptor 2

Code Id is = Header 395 id is: 126 AccCodeVALUE AccCode123: VALUE

----------------------------------------------------------------

Code Id is: AccCode:RECE 105

Entered in the loop of the receptor 2

Code Id is = 105 Header id is: 128 AccCodeRECE AccCode123:RECE

----------------------------------------------------------------

Code Id is: 395 AccCode:CGE

Entered in the loop of the receptor 2

Code Id is = Header 395 id is: 128 AccCodeCGE AccCode123:CGE

Thank you

Ann

Tags: Database

Similar Questions

  • How to print messages on the page of the OPS for debugging?

    Hi friends,

    I am very new to OA Framework,

    How print debugging messages using diagnostics on page OFA custom Extensions?

    as I am unable to print messages in my extended... CO code is like this

    SerializableAttribute public class ViewOrderControlsCOExt extends ViewOrderControlsCO {}

    public ViewOrderControlsCOExt() {}

    }

    ' public void processRequest (OAPageContext oaPageContext, OAWebBean oaWebBean)

    {

    OAApplicationModule am = oaPageContext.getApplicationModule (oaWebBean);

    OAViewObject vo = (OAViewObject) am.findViewObject ("PosViewShipmentsVO");

    super.processRequest (oaPageContext, oaWebBean);

    oaPageContext.writeDiagnostics (oaPageContext, "custom scope PFR Begin", 1 ");

    String Trigerevent = oaPageContext.getParameter ("event");

    OASubmitButtonBean oASubmitButtonBean2 = (OASubmitButtonBean) oaWebBean.findIndexedChildRecursive ("ChangeOrder");

    If (oASubmitButtonBean2! = null) {}

    oaPageContext.writeDiagnostics (oaPageContext, "Extended personalized PR", 1 ");

    }

    OAMessageDateFieldBean orgNameBean = (OAMessageDateFieldBean) oaWebBean.findChildRecursive ("NewShipDate");

    OAMessageDateFieldBean orgNameBean1 = (OAMessageDateFieldBean) oaWebBean.findChildRecursive ("OldPromisedDate");

    OAMessageDateFieldBean orgNameBean2 = (OAMessageDateFieldBean) oaWebBean.findChildRecursive ("NewSplitPromisedDateVal");

    }

    }

    Hello

    This link below will help you:

    Advice from the Oracle Johny: OAF: how to add logging / debug messages in Oracle Application Framework

    See you soon,.

    Olivier

  • Sort the list of open windows in descending order when windows are combined in the taskbar

    Sort the list of open windows in descending order when windows are combined in the taskbar

    I like to combine windows in order to access all my programs in the taskbar. I have tons of open Outlook messages that I need to respond to the last open order to open older. The problem is that the list of the oldest opened open again, and I have to constantly scroll to the bottom of this list to access the most recent message. Is there a way view the list by e-mail open newest to oldest?

    It would be a time saving of huge productivity for me, and I saw that many of my colleagues would benefit as well.

    Thanks in advance for your help.

    Sorry there is no function like that.

    You can consider using Outlook flags instead.  Arrival of emails, you will need to respond to, click the red flag on them.  They will appear in your Outlook ' to do' list so you can keep track of those you will have to answer to and check the power off when you are finished.

  • Find all entries in address books and order in descending order

    I have an address book called Christmas. I don't seem to see the list of all my address books. When I find them I wish to see the names in descending order from a - z, please

    Open your address book.
    VIEW - put page to ensure that the two component directory and contact component is checked.

    Then select your address book, mode - SORT BY, and then select descending or ascending your preference.

    If this does not work, maybe download a picture of what it looks like to (smudge addresses for privacy).

  • New loops for 10.1.1 even as new loops of logic?

    I have all the additional content for Logic Pro and with the exception of the fabric of Alchemy, are the new Apple Loops for Garageband 10.1.1 identical to what I already under Logic Pro?

    GarageBand gives me the option to download the entire library, which I don't want I don't have to.

    I suspect these new loops for GarageBand 10.1.1 are already in my folders of loops when I updated Logic Pro a few months ago?

    Thank you

    Robert

    T

    The App Store shows the update like this:

    2600 new Apple Loops and sounds.

    I also installed Logic Pro X.

    There is no new loops installed after 10.11.1 GarageBand update.   The last loop in Library/Audio/Apple Loops is 80 return Beat.caf frommay 2015

    GarageBand must have installed something, because the absence of plug-ins error messages are gone, when I open iOS projects GarageBand, but I can't find any new items in the folder/library.

    I'm now trying to download all the available sounds. We'll see what happens.

  • Creating a table of automatic indexing of loop for

    Hello and greetings from a newbie to LabView,

    In my program, I want to write several orders via VISA and read them in order. I created a table of command and auto-indexé to a loop for.

    I want to receive a table of responses, in the order they were read of course. However, I'm not sure what is the best way to do it.

    I'm sure that the solution is simple but have been unable to find one. I have attached the vi for reference. (VISA vi reading is part of the LabView unit driver), which works, but looks like a unmodular approach and inelegant.

    Thank you!

    Simple, you can auto-index the output!

  • Create a table in a loop 'for' (reset the number of loops)

    Hello

    I try to incorporate a signal of acceleration from an analog input CRIO to get speed and then further integrate to get the moving of a vibration system.

    I understand that to achieve integration, a table must be fed in. My problem is that I could not buffer the signal in a buffer block, as I couldn't find buffer blocks. so I decided to create my data table by using a loop "for". The nests of the loop 'for' inside a timed loop. The problem that I'm stuck on is how to reset the loop 'for' in order to fill the buffer with each iteration of the outer loop timed.

    I enclose the code if that helps. Note that I use labview in 2013.

    If anyone who has encountered a similar problem before can help me, I would be gratefull.

    Concerning

    Ali

    You can use a shift register initialized as inputs to your curls, to build your table of one. However, you realize, don't you, that the execution of your program as written loops as soon as the computer can spit out responses, then the output array may contain several points that took place before the entry has updated? Assuming that your thing cRIO (I've not worked with these) has integrated into its routine acquisition of calendar data, I suggest you put that inside the loop to get a data point by reading.

    And do you really want your graph to distance for update only every thousand points (points of acceleration million) speed?

    Cameron

  • Automatic indexation 2D array in the loop For - what is happening?

    I found many sources dealing 1 d tables in a loop For or a While loop, using automatic indexing, but nothing on the tables of higher order.

    I work with a program that feeds a 2D array in a loop (see table).  From what I see, it looks like this the results of automatic indexing in a 1 d, the first column of table 2-D table.

    This is the expected behavior, and it would hold true for arrays of higher order, table 3D for example?

    Is it possible to refer to the second column rather than the first?

    wildcatherder wrote:

    I found many sources dealing 1 d tables in a loop For or a While loop, using automatic indexing, but nothing on the tables of higher order.

    I work with a program that feeds a 2D array in a loop (see table).  From what I see, it looks like this the results of automatic indexing in a 1 d, the first column of table 2-D table.

    N ° it auto-index through a line at a time table.  You will get a 1 d table which consists of all of the columns that make up each row in each iteration.

    This is the expected behavior, and it would hold true for arrays of higher order, table 3D for example?

    Yes.  Automatic indexing on a 3D Board will give you a table on each iteration of each page 2D.

    Is it possible to refer to the second column rather than the first?  This question applies once you understand the first response.

  • Facing problem in the recording of data without overlapping in loop for

    Hello

    I am facing problem in writing data withou overlap if I run the outer loop for the 2 times or more, and inside the loop, I make table in a way that I want to, but when I try to compile this table with record temperature I am not able to do. Please guide me through ths.

    Thank you

    Hnagpal

    Himanshu salvation,

    To start reading your matrix of the second line, you can use a table of Index function once you have loaded the table of your spreadsheet file. The function Array Index lie in the range of functions under functions > programming > Board Index. The help of LabView is very useful to explain how to use this function.

    With regard to the accuracy of the numbers when read you the spreadsheet file that you read is formatted in fractional chain, since form you it converted into a mixed string before saving. In order to recover all the precision, read the worksheet as a string and then convert it to a string using a string Fract/Exp to fractional numbers conversion function. This feature is on the range of functions for String > String/Number Conversion > Fract/Exp string in number. The help of LabView is also very useful for explaining the operation of this function.

    Best,

    Dan Nelson

    Technical sales engineer

  • HOW TO CREATE A STOP COMMAND IN LOOP FOR

    I have a problem. I can't put a stop to the VI attached here. I want to stop an iteration without support on cancel execution, because I want to connect this VI by a Subvi to control a motor continuous.

    Thank you

    Hello

    in order to stop your first vi, you can use a stop button for the while loop to 'or' with the release of your "equal" comparison function Then you can also use a local variable created the stop button to stop the loop for, configure it with a conditional expression (right click on the loop for > conditional expression).

    This way if you press "stop"button, you will stop the while loop and the loop together foor.

    Good bye

  • You can trigger through communication Modbus TCP/IP PLC data acquisition without using a loop for?

    Hello

    I am trying to contact a facility through a Modbus TCP/IP communication PLC. I'm new to this method, but the idea is that the installation will send the logical (Boolean) values 1 bit by ethernet to my workstation which read and then will begin data acquisition. Basically, I need a triger to come to my pc. I placed my vi inside a structure case T/F which will run according to the signal, it receives data acquisition. However, for it constantly waiting, I put this in a loop for. The works of vi, but playback signals sometimes lagging behind due to the loop for. If I take the loop out and just run labview permanently, it works perfectly, but I know that the option is only for debugging and should not be used. So my question is, is there a better way to wait for an incoming signal?

    Hello!

    Please note that the order of execution of the write operations on the shared variable 000002 is not determined.

    For example, nothing prevents this order of execution:

    (1) value false 000002

    (2) set to true 000002

    (3) execution of the loop

    In what concerns the delay, you might consider placing a waiting vi in the case of 'false', or the loop uses 100% of CPU if I'm not mistaken...

    Kind regards

    Marco

  • Control reference 1055 error when you use a loop for

    Hello

    I'm having a problem using control references to accomplish the following: I a VI that reads data from a text file, and then uses that automatically update the value of a control on front panel on two live different, then set the default values, and then save them. Comes from the array of control references, I tried looping on text labels until I have find the one corresponding to the order, I want to change and then update its value. The problem I have is that if I use a loop for, then 9times of LabVIEW 10 complains error 1055: "LabVIEW: object reference is not valid. If instead I the wiring to the index table and manually extract the reference, then it works every time and for each index of the reference of the order.

    Can someone take a look at my code and just see if its obvious what the problem is? In this case, I have a simple solution, but I would really like to understand what I did wrong. I have included as a code snippet, but also attached the files if that helps (Its Import_Colormap.vi, which is the problem). Persons with disabilities code fails, the active code works but I can't see what is really the difference between them - I can change the index of array 0,1,2, 3. and no mistake.

    Thank you.

    Your "Colormap.ctl" is a strict type def that contains a ring.  You define the elements programmatically, make the default values, and then save the "Colormap.ctl"?   I was never practicing this but here is a thread that covers this in detail. I do not understand what you expect reach by running.
    The next thing: at the same time (at the same time!), you open the Colormap.vi (this is what we see in yout PNG) that contains an instance of the Colormap.ctl on the front panel. I'm not pretty sure if LabVIEW can handle this correctly. This could be the reason why you sometimes get the error 1105.
    I prefer StringsAndValues and eventually the value of the ring running.  There is no need to do it with a def of strict type.

  • How to stop and start a loop for

    I got the code and a loop running in a while loop.  What I need to do, is simply to suspend the processing of the loop until a condition is met, but retains its position of iteration throughout each pause time (not necessarily time, just paused until the following condition is met).  I tried wiring of a Boolean value to "continue if true" terminal of the for loop, but the reboot of the iteration count to 0 when the loop is restarted.  Is there a way to stop the loop for and continue to the particular iteration, it is in?

    Breakpoints, conditional, or normal are intended just for debugging your code.  I had the sense of your question as you want make a break is part of the normal operation of your code.  I would NOT recommend using a breakpoint for this situation.  It would make it appear the diagram showing the breakpoint when it occurs.  A user not to mention that the programmer wouldn't know what to do in this case.

    Yes, both the inner and outer loops would shift registers.

    Implementation of a structure dealing with a small loop inside the "case of a break" is feasible.  Depends on what you are or wait while the operation of the program is "paused."

  • Value of the loop 'For' pass before the complete loop - FPGA

    Hello

    8.5 LV, LV FPGA, PCI 7831-R FPGA Board

    I got a cramp of brain on this one.  I have a function (Arb. GIS read) that Im using to generate an arbitrary signal which I created in memory.  I can't move to the value of data however.  I don't know why I can not, its because it is nested in a "loop For" who runs indefinetly and updates only the value whenever it loops back to 'zero '.  Ideas quick and dirty on how to use this value as it is being updated in the loop in my hand vi?

    I've seen messages on the use of local variable 'Files' and property nodes, but I can not just give a sense the.  Maybe because it's FPGA, something is different/no supported?

    * My principal is 'control MicroMirror Arb. SP", look in the #4 case and the condition of"false. "

    The 'Sub - VI' is called 'Arb Sig read RevB', and I'm trying to pass the variable 'Data' to hand while the loop For always runs.

    Thank you!


  • Why printer does not print messages?

    original title; y printer does not print messages?

    I plugged my printer. The computer said... Updated successfully. When I try to print, the printer is not redeiving the message to print?

    Hello

    ·                         try to uninstall and reinstall and use the latest printer drivers VISTA for your model of the manufacturer of the printer

    You can also track information to try to solve your problems of printer below

    read the printer correct that information the slot microsoft, including the 'fix - it' and the information of the links to the other

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    and read this microsoft tutorial too

    Introduction

    This tutorial is designed to help you identify and fix the problem printer common windows problems, including print errors, or errors, and other issues that could prevent you from printing. This tutorial does not cover printing problems related to specific programs. Printing problems can be caused by cables that are not properly connected, corrupt, drivers, incompatible drivers, the printer settings, missing updates and problems with your printer.

    How to use this tutorial

    For best results, complete each step before move you on to the next. Try to print after each step before moving on to the next step.

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

Maybe you are looking for

  • Firefox.exe * 32 to 99% of the CPU is running and blocking WHY?

    so on two different PCs, we have problems with firefox as soon as launch you it, it goes back to 99% cpu ussage and freezes.I did a complete uninstall and reinstall as running revo and delete all entries from firefox on the registry. It does this eve

  • win 10 update - x 2 64 bit win 8.1 pavillion stalls

    Trying to reach 8.1 to win 10 level pushed Ms.   Installer downloads Win 10 (2845,9 MB) and then stops and says "preparing to install...." "Progress bar goes about 1/3 of the course.   If you press button Stop download x 2 will resume the low Win10 l

  • Can't access all files because of missing permissions

    OK, I made a mistake. I wanted to get rid of my old XP box and replace a computer Windows Vista laptop that I left another task.   I was lazy and used Carbonite to get my files from my old computer to the new computer without reading the instructions

  • my cd does not work, does not, I cannot burn the cd, please help, asta

    does not work with the cd, dvd, I can't burn files to cd, something does not work, but a few days ago was okey, please help, thanks

  • J4680 paper jam

    I've searched these forums and none of the suggestions has solved my problem. My HP Officejet j4680 continues to display a "Paper jam" error I did everything... removed all the covers, air breath where ever the air could reach, unplugged the machine,