I cant get the output,,pls solve this

declare
TYPE temp_table is varray(10000) OF employees%ROWTYPE;
a temp_table;
cursor c1 is
select * from employees;
begin
open c1;
fetch c1 bulk collect into a;
close c1;
for indx in a.first..a.last loop
dbms_output.put_line(a(indx));
end loop;
end;
Edited by: 794244 on Oct 7, 2010 12:25 AM

SQL> set serverout on
SQL> declare
  2    TYPE temp_table is varray(10000) OF employees%ROWTYPE;
  3    a temp_table;
  4    cursor c1 is
  5      select * from employees;
  6  begin
  7    open c1;
  8    fetch c1 bulk collect
  9      into a;
10    close c1;
11    for indx in a.first .. a.last loop
12      dbms_output.put_line(a(indx).first_name||'--'||a(indx).last_name);
13    end loop;
14  end;
15  /
My Name--King
NEENA--Kochhar
Lex--De Haan
Alexander--Hunold
Bruce--Ernst
David--Austin
Valli--Pataballa

Similar Messages

  • Hi, I have a late 2011 MacBook Pro but cant get the mirroring function to work with Apple TV.  I've got the most recent Software 10.7.5 but cant see the mirroring icon or turn this on.  I'm able to mirror from my Ipad but not my Mac, any thoughts?

    Hi, I have a late 2011 MacBook Pro but cant get the mirroring function to work with Apple TV.  I've got the most recent Software 10.7.5 but cant see the mirroring icon or turn this on.  I'm able to mirror from my Ipad but not my Mac, any thoughts?

    Welcome to the Apple Support Communities
    AirPlay Mirroring is supported on your Mac, but it needs OS X Mountain Lion (10.8). See > http://support.apple.com/kb/HT5404
    You have two possibilities:
    1. Make a backup, open App Store and purchase Mountain Lion to upgrade to this OS X. Then, you will find the AirPlay Mirroring icon at the top right of the display, on the menu bar, or on System Preferences > Displays.
    2. Keep OS X Lion and use AirParrot > http://www.airparrot.com
    Both options work properly, but I recommend AirPlay Mirroring as it doesn't need a third-party program

  • After getting an update from 10.6.8 many of my programs were no longer able to open. How can I undo the update or solve this problem another way?

    After getting an update from 10.6.8 many of my programs were no longer able to open. How can I undo the update or solve this problem another way?

    Do you have a bootable clone from prior to the update? If so, roll back with that.
    Are your apps that won't open PPC and do they need Rosetta? Do you need to activate Rosetta?
    Have you considered reinstalling 10.6 from your install disc and then coming forward with the 10.6.8 Combo Updater, then doing software update and not including whatever it was you installed that caused this propblem?
    By the way - what update was it that caused this problem?

  • I have an iMac4.1 and my iPhoto is very slow and the thumbnails correspond to the wrong pictures.  How do I fix this? Or is my iMac too old?  Will getting a new iMac solve this problem?.

    I have an iMac4.1 and my iPhoto is very slow and the thumbnails correspond to the wrong pictures.  How do I fix this? Or is my iMac too old?  Will getting a new iMac solve this problem? 
    I realize is only 512MB of memory but I want to make sure that a new iMac will solve this problem.  Can the new iPhoto handle 10GB or more of photos?  Or do I have to go to Picasa anyways in which case I can buy any computer to do that?

    The model of Mac is not partcularly relevant, it's the version of the OS and iPhoto that matter.
    iPhoto - since 2006 - is good for 250,000 images.
    Regards
    TD

  • I have iphone 3gs . that i erased all the contents , it going on process for more than 23 hours pls solve this

    iphone 3gs
    i erased all the contents .its going on process for more then 23 hours pls solve this
    pls pls pls pls
    thanks & regards
    ganesh

    Something has gone wrong. Force the phone into recovery mode, as described here, & restore it:
    http://support.apple.com/kb/ht1808

  • HT1688 i have an i phone 4s. i have tried everything i know to do but cant get the phone to ring out loud when i recieve a call or message. any ideas on how to fix this?

    I have an i phone 4s I have tried everything i know to do, but cant get the phone to ring out loud when i recieve a call or message. Any ideas on how to fix this?

    Flip the ring/silent switch on the left side of the phone from silent (red showing) to ring position.

  • I've been able to trick my ipod into letting me in but I still cant get the touchscreen to work. I've reset it 10 times and I dont have a computer at my house so I am unable to connect it to see whats wrong do I just need to get a new ipod or what this is

    I have been able to trick my ipod into letting me in but I still can't get the touchscreen to work this is extremely annoying and I was wondering if i should just get a new ipod or what?

    You need a computer with iTunes and an internet connection
    Try:
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                                              

  • Are You All Able to get the Output In EXCEL Format

    Hi All,
    I have one question. Are You All Able to get the Output In EXCEL Format?? I am working on Oracle Apllication 11.5.10.2 and my XML builder is 5.0.1. Problem which i m facing is this...... Whenever i am submitting a concurrent program with format type different from PDF i could not able to view the ouput in desired format. When i am pressing view output it gives me a file in XML and when i save that file with extention 'xls' or 'rtf' then i could able to see the saved file in desired format.
    Can anyone tell me where is the problem??? Is it a bug?
    I am using microsoft world 2000 sp-3.
    Please give your valuable comments. May be your comments can solve my problem..
    Thanks
    Ravi

    Hi I got Same issue
    When I change Format to EXCEL from
    Submit request>> Option>> Format = EXCEL
    In window I am getting something HTML code and
    when I try to copy it to Browser from Tools>> Copy File in to Browser I am getting following message
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End tag 'p' does not match the start tag 'a'. Error processing resource 'http://our url.com:8000/OA_CGI...
    <p class="c0"><a name="Text4" id="Text4"><a name="Text1_1" id="Text1_1"><span class="c1">Dept No <...
    But I can see the output when Format is PDF
    Pls suggest solution ,I am using EBS 11.5.10.2.
    Thanks
    Rahul
    Message was edited by: Rahul
    user576181

  • THE ONE WHO SOLVES THIS PROBLEM IS GREAT!

    I'm serious. I am so fed up I am with this problem. Ground rules: you must NOT just give me code. I need to be able to know why my problem is happening, and how to fix it myself. I'm a grad student and am bound by a code of conduct. I don't have any more time to spend investigating this. It could be something simple or complex...I am at a loss.
    Here is the situation: I'm developing this console java application on my Windows PC. When I run it on my pc, it runs in under a minute. However, when I transfer my program to the servers at my school (sun unix workstations) it takes a ridiculous amount of time to run the same program. I am told that 80% of the students in my class have their programs running in less than 5 minutes. Almost all of them didn't have to do any kind of optimizations. They just wrote it, and it worked. My program is averaging 10-15 min, but my prof runs it locally at school, and says it takes 40 min!
    The entire program is posted below. Please forgive me for not commenting so great. They were better at first, but when I started moving things around and changing everything, I threw comments out the window. Still, the existing comments should be helpful in understanding what I'm doing. NOTE: Below the code is the DTD that all the .xml files I'm parsing conforms to. Here are a few links to .xml files that represent part of the dataset. The actual dataset consists of 40 files totaling 30MB.
    http://www.geocities.com/c_t_r_11/items-1.xml
    http://www.geocities.com/c_t_r_11/items-10.xml
    http://www.geocities.com/c_t_r_11/items-20.xml
    the dtd is at:
    http://www.geocities.com/c_t_r_11/itemsdtd.txt
    And here is the code:
    /* Instructions:
    This program processes all files passed on the command line (to parse
    an entire diectory, type "java MyParser myFiles/*.xml" at the shell).
    At the point noted below, an individual XML file has been parsed into a
    DOM Document node. You should fill in code to process the node. Java's
    interface for the Document Object Model (DOM) is in package
    org.w3c.dom. The documentation is available online at
    http://java.sun.com/j2se/1.4/docs/api/index.html
    A tutorial of DOM can be found at:
    http://java.sun.com/webservices/docs/ea2/tutorial/doc/JAXPDOM.html#67581
    Some auxiliary methods have been written for you. You may find them
    useful.
    Modified by:
    Will
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.ErrorHandler;
    class MyParser{
        static DocumentBuilder builder;
        static final String[] typeName = {
            "none",
            "Element",
            "Attr",
            "Text",
            "CDATA",
            "EntityRef",
            "Entity",
            "ProcInstr",
            "Comment",
            "Document",
            "DocType",
            "DocFragment",
            "Notation",
        static final String[] itemTags = {
            "Number_of_Bids",
            "Started",
            "Ends"
        static class MyErrorHandler implements ErrorHandler {
            public void warning(SAXParseException exception)
                    throws SAXException {
                fatalError(exception);
            public void error(SAXParseException exception)
                    throws SAXException {
                fatalError(exception);
            public void fatalError(SAXParseException exception)
                    throws SAXException {
                exception.printStackTrace();
                System.out.println("There should be no errors " +
                        "in the supplied XML files.");
                System.exit(3);
        /* Non-recursive (NR) version of Node.getElementsByTagName(...) */
        static Element[] getElementsByTagNameNR(Element e, String tagName) {
            Vector elements = new Vector();
            Node child = e.getFirstChild();
            while (child != null) {
                if (child instanceof Element && child.getNodeName().equals(tagName))
                    elements.add(child);
                child = child.getNextSibling();
            Element[] result = new Element[elements.size()];
            elements.copyInto(result);
            return result;
        /* Returns the first subelement of e matching the given tagName, or
        * null if one does not exist. */
        static Element getElementByTagNameNR(Element e, String tagName) {
            Node child = e.getFirstChild();
            while (child != null) {
                if (child instanceof Element && child.getNodeName().equals(tagName))
                    return (Element) child;
                child = child.getNextSibling();
            return null;
        /* Returns the text associated with the given element (which must have
        * type #PCDATA) as child, or "" if it contains no text. */
        static String getElementText(Element e) {
            if (e.getChildNodes().getLength() == 1) {
                Text elementText = (Text) e.getFirstChild();
                return elementText.getNodeValue();
            else
                return "";
        /* Returns the text (#PCDATA) associated with the first subelement X
        * of e with the given tagName. If no such X exists or X contains no
        * text, "" is returned. */
        static String getElementTextByTagNameNR(Element e, String tagName) {
            Element elem = getElementByTagNameNR(e, tagName);
            if (elem != null)
                return getElementText(elem);
            else
                return "";
        /* Returns the amount (in XXXXX.xx format) denoted by a money-string
        * like $3,453.23. Returns the input if the input is an empty string. */
        static String strip(String money) {
            if (money.equals(""))
                return money;
            else {
                double am = 0.0;
                NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);
                try { am = nf.parse(money).doubleValue(); }
                catch (ParseException e) {
                    System.out.println("This method should work for all " +
                            "money values you find in our data.");
                    System.exit(20);
                nf.setGroupingUsed(false);
                return nf.format(am).substring(1);
        /* Process one items-???.xml file. */
        static void processFile(File xmlFile) {
            Document doc = null;
            try {
                doc = builder.parse(xmlFile);
            catch (IOException e) {
                e.printStackTrace();
                System.exit(3);
            catch (SAXException e) {
                System.out.println("Parsing error on file " + xmlFile);
                System.out.println("  (not supposed to happen with supplied XML files)");
                e.printStackTrace();
                System.exit(3);
            /* At this point 'doc' contains a DOM representation of an 'Items' XML
            * file. Use doc.getDocumentElement() to get the root Element. */
            System.out.println("Successfully parsed - " + xmlFile);
            /*Open the output files for each relation****************************/
            PrintWriter itemsFile = null, usersFile = null,
                    bidsFile = null, categoriesFile = null;
            /*Open files for writing each of the txt files******************/
            try{
                itemsFile = new PrintWriter(new BufferedOutputStream(new FileOutputStream("Items.dat", true)), true);
                usersFile = new PrintWriter(new BufferedOutputStream(new FileOutputStream("Users.dat", true)), true);
                bidsFile = new PrintWriter(new BufferedOutputStream(new FileOutputStream("Bids.dat", true)), true);
                categoriesFile = new PrintWriter(new BufferedOutputStream(new FileOutputStream("Categories.dat", true)), true);
            }catch(FileNotFoundException e){
                System.out.println("Error trying to open an output file: " + e.getMessage());
                System.exit(0);
            /*Parse content for each relation in turn********************/
            //Write to the Items.txt file
            NodeList itemNodes = doc.getDocumentElement().getElementsByTagName("Item");
            final String colSep = "|#|";
            String itemID = null;
            Element[] categories = null;
            NodeList bids = null;
            NodeList eBid = null;
            NodeList bidders = null;
            Element tempElement = null;
            Element itemElement = null;
            Element thisBid = null;
            String description = new String();
            for(int i=0; i<itemNodes.getLength(); i++){
                //Get the item Element for this iteration
                itemElement = (Element)itemNodes.item(i);
                /*Write out ItemID**************************************/
                itemID = itemElement.getAttribute("ItemID");
                itemsFile.print(itemID);
                itemsFile.print(colSep);
                /*Write out Name****************************************/
                itemsFile.print(getElementTextByTagNameNR(itemElement, "Name"));
                itemsFile.print(colSep);
                /*Write out the Currently element***********************/
                itemsFile.print(strip(getElementTextByTagNameNR(itemElement, "Currently")));
                itemsFile.print(colSep);
                /*Write out the Buy_Price element, if it exists*********/
                Element checkNode = null;
                if( (checkNode = getElementByTagNameNR(itemElement, "Buy_Price")) != null){
                    itemsFile.print(strip(checkNode.getFirstChild().getNodeValue()));
                itemsFile.print(colSep);
                /*Add the First_Bid element*****************************/
                itemsFile.print(strip(getElementTextByTagNameNR(itemElement, "First_Bid")));
                itemsFile.print(colSep);
                /*Now iterate over the next three elements, adding them in turn*/
                for(int j=0; j<itemTags.length;j++){
                    itemsFile.print(getElementTextByTagNameNR(itemElement, itemTags[j]));
                    itemsFile.print(colSep);
                /*Add the SellerID**************************************/
                itemsFile.print(getElementByTagNameNR(itemElement, "Seller").getAttribute("UserID")
                        + colSep);
                /*Finally, add the description.  Truncate, if necessary*/
                description = getElementTextByTagNameNR(itemElement, "Description");
                itemsFile.print(description.substring(0, Math.min(4000, description.length())));
                itemsFile.print(colSep);
                itemsFile.println();
                /*Locate all of the Categories******************************/
                categories = getElementsByTagNameNR(itemElement, "Category");
                /*For every category in this item, write a ItemID-Category pair*/
                for(int j=0; j<categories.length; j++){
                    categoriesFile.print(itemID + colSep);
                    categoriesFile.print(categories[j].getFirstChild().getNodeValue());
                    categoriesFile.println(colSep);
                if( (bids = itemElement.getElementsByTagName("Bid")) != null){
                    /*Go through the bids, writing the info***********/
                    for(int j=0; j<bids.getLength(); j++){
                        thisBid = (Element)bids.item(j);
                        bidsFile.print(getElementByTagNameNR(thisBid, "Bidder").getAttribute("UserID"));
                        bidsFile.print(colSep);
                        bidsFile.print(itemID);
                        bidsFile.print(colSep);
                        bidsFile.print(getElementTextByTagNameNR(thisBid, "Time"));
                        bidsFile.print(colSep);
                        bidsFile.print(strip(getElementTextByTagNameNR(thisBid, "Amount")));
                        bidsFile.println(colSep);
                /*write out userid and rating from any and all bidder nodes*/
                if( (bidders = itemElement.getElementsByTagName("Bidder")) != null){
                    for(int j=0; j<bidders.getLength(); j++){
                        usersFile.print(bidders.item(j).getAttributes().getNamedItem("UserID").getNodeValue());
                        usersFile.print(colSep);
                        usersFile.print(bidders.item(j).getAttributes().getNamedItem("Rating").getNodeValue());
                        usersFile.print(colSep);
                        //If there's a location node, write it
                        if( getElementByTagNameNR((Element)bidders.item(j), "Location") != null){
                            usersFile.print(getElementTextByTagNameNR((Element)bidders.item(j), "Location"));
                        usersFile.print(colSep);
                        //If there's a country node, write it
                        if( getElementByTagNameNR((Element)bidders.item(j), "Country") != null){
                            usersFile.print(getElementTextByTagNameNR((Element)bidders.item(j), "Country"));
                        usersFile.println(colSep);
                /*Now write out the Seller information*******************/
                usersFile.print(getElementByTagNameNR(itemElement, "Seller").getAttribute("UserID"));
                usersFile.print(colSep);
                usersFile.print(getElementByTagNameNR(itemElement, "Seller").getAttribute("Rating"));
                usersFile.print(colSep);
                usersFile.print(getElementTextByTagNameNR(itemElement, "Location"));
                usersFile.print(colSep);
                usersFile.print(getElementTextByTagNameNR(itemElement, "Country"));
                usersFile.println(colSep);
            itemsFile.close();
            usersFile.close();
            bidsFile.close();
            categoriesFile.close();
        public static void main (String[] args) {
            if (args.length == 0) {
                System.out.println("Usage: java MyParser [file] [file] ...");
                System.exit(1);
    /* Initialize parser. */
            try {
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                factory.setValidating(true);
                factory.setIgnoringElementContentWhitespace(true);
                builder = factory.newDocumentBuilder();
                builder.setErrorHandler(new MyErrorHandler());
            catch (FactoryConfigurationError e) {
                System.out.println("unable to get a document builder factory");
                System.exit(2);
            catch (ParserConfigurationException e) {
                System.out.println("parser was unable to be configured");
                System.exit(2);
    /* Process all files listed on command line. */
            for (int i = 0; i < args.length; i++) {
                File currentFile = new File(args);
    processFile(currentFile);
    REMEMBER: Please do not just post the correct code. This will violate my code of conduct. I need tutoring--consultation.

    If I was trying to get someone else to do my work,
    I wouldn't be posting this saying what I have said
    would I? I'm not unwilling to do the work myself.From what was stated in your OP, it seemed that you
    were.I'm sorry if it seemed that way. I don't want something for nothing. I've spent MANY hours, which I don't have, trying to work this out. I have hit a point where I don't think my expertise is going to solve the problem. That's why I've turned to some experts who might say something along the lines of, "Hey, I know what that is...you're compiling against... and on the Unix box, it's compiling against..." I was NOT looking for something like, "See the code below that fixes your problem."
    The only problem is that I don't have direct access
    to the sun unix machines I'm running the app on,
    so I can't run a profiler on it. Ah, okay. So the only knowledge you have of how it
    performs on those machines is from your instructor
    running it and then telling you how long it took?No. I can SSH into the servers and run the program from a command line. But I wouldn't be able to install any profiler programs.
    You could ask your prof to run it with -Xprof or
    -Xhprof or whatever. Or you could put in a bunch of
    timing statements to get a rough idea of which parts
    are making it take that extra 39 minute or whatever.is -Xprof a java command line option? If so, I will look into doing that. Maybe it's available on the machines at school. Thanks for that input.

  • Getting the Output to work

    Hi...,
    In the void Triangleoutput part of my code, im supposed to make it Pass to the method the coordinates of the vertices, the lengths of the sides of the triangle, the measure of the angles of the triangle, and the area of the triangle. But I cant get the system out println to come out in my program when i run it. I put a few outputs in for an example of what i was trying to do. Also at the end of my code, i need to be using the my triangle method, usually i would use that when printing out my methods, but my instructions want me to put it in the triangle output part of my code, plus if i tried something like myTriangle.computeArea(); it would give me an error, even after i made it public, and im not supposed to use the public variables for this code. Thanks
    import chn.util.*;
    class Triangle
       double computeDistance (int x1, int y1, int x2, int y2)
            return Math.sqrt(Math.pow((x1-x2),2)+Math.pow((y1-y2),2));
       double computeAngle (double side1, double side2, double sideOpposite)
           return Math.acos(((Math.pow(side1,2)+Math.pow(side2,2))-
           Math.pow(sideOpposite,2))/(2*side1*side2));
      double radianToDegrees (double radians)
           radians=180*radians/ Math.PI;
           return radians;
      double computeArea(double side1, double side2, double side3)
            double svar = (side1+side2+side3)/2;
            return Math.sqrt(svar*(svar-side1)*(svar-side2)*(svar-side3));
        void triangleOutput (int x1, int y1, int x2, int y2, int x3, int y3,
                             double a, double b, double c,
                             double angle1, double angle2, double angle3, double area)
            System.out.println("measure of side AB" + x1+x2);
            System.out.println("measure of angle ABC" + angle2);
    // End of Triangle class
    public class TriangleStats
        public static void main (String[ ] args)
            ConsoleIO keyboard = new ConsoleIO();
            Triangle myTriangle = new Triangle();
            int vertex;
            System.out.println("Enter the vertex (x, y) as two numbers with a space between them:");
            vertex= keyboard.readInt();
    }

    It depends on what kind of class you consider Triangle to be.
    If it's a class you want to create Triangle objects from then the class should hold the data necessary to define a triangle and the methods shouldn't be passed values. Insted the values should be held as private data of every object of Triangle. In that case you don't call,
    computeArea(double side1, double side2, double side3)
    you call
    computeArea()
    and side1, side2 and side3 are held internally to each Triangle object.
    Or you consider Triangle to be a class that holds a certain set of triangle related methods together. Basically it's a class like Math for example. Then you should, as has been said, declare the methods static.

  • Pls solve this tension

    my query is that i have to take input from 1 file & produce output
    the input file is in csv format we have some inputs in this file this input i have to give directly to any webpagewithout entering it manually.means once running the program it automatically
    takes input from that file & pass it into required web page after showing results we have to scrap that data & store that data into variables & have to generate scripts

    Hi Jagadish,
    first of all, as Detlev said in your last <a href="https://forums.sdn.sap.com/thread.jspa?threadID=94978">thread</a>, please be more specific when you asking questions here on SDN.
    Second, by using thread names like "pls solve this one", you will not attract more readers like you might think but either the contrary. And it would be also better for the search to use a "speaking" thread name.
    Now to your question: To integrate a website in your portal, create a new iView of type "URL iView" and specify the URL there. You could also capture parts of Websites on iViews. After you have created the iView(s), assign it to roles and those to users.
    For more information on creating Web-Based URL iViews check this <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/f5/eb51730e6a11d7b84900047582c9f7/frameset.htm">link</a>.
    Hope this is what you were asking.
    Best regards,
    Robert
    Last remark: If you ask questions here on SDN like in this  <a href="https://forums.sdn.sap.com/thread.jspa?threadID=94978">thread</a>, please return and answer your replies or at least validate them by assigning points. Thanks!

  • Cant get the font on PDF document and alignment

    I cant get the font on PDF document and alignment eventhough I have margins to 0 still getting some space from the top and left side.
    I have added fonts to CF Admin and restarted too still same issue. I am able to see fonts are added in CF Admin.

    I suspect there is a little bit of padding between the HTML content and the edge of the PDF page. You could solve the problem by specifying the fonts and margins using the HTML style property, like this, for example:
    <cfdocument format="PDF" pageType="A4" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0">
    <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style>
            body{font-family:arial,sans-serif;font-size:100%;margin-top: 0px; margin-left: 0px; padding: 0;}
            p{font-family:"Times New Roman", Times, serif;font-size:14px}
        </style>
    </head>
    <body>
    <!--- Content of your document --->
    </body>   
    </cfdocument>

  • How to get the output of a procedure in to a log file ?

    Hi, Everyone,
    Could you please tell me
    How do i write the output of a procedure to a log file ?
    Thanks in advance...

    Hi,
    could you please explain me more on how to use the UTL_file to get the output to a log file as in am new to PL/SQL
    my script file is
    EXEC pac_sav_cat_rfv.pro_cardbase (200910,'aaa',100,'test_tbl');
    i need the output of this statement in a log file.
    Could you please explain to me how it can be done.
    thanks in advance

  • NOOB Question - Cannot seem to get the output in a text or CSV file - Please help!!

    I was able to put together a script which finds members of a certain AD group, filters down the users, and then calculates the number of days till a password reset is needed.  I am able to get on screen exactly what i am looking for, but cannot seem
    to figure out how to get the same data to a file.  What i am doing wrong?  two goals here:
    1.  Create a spreadsheet with a list of users whose password is about to expire.
    2.  Down the line automate an email to users whose password is about to expire. 
    Here is my code:
    ## Get List Of Users in Password Change Lockout that do not have an expired password or a password that never expires
    $Names = (Get-ADGroupMember -Identity "Password Change Lockout" -Recursive |`
    Get-ADUser -Properties * |`
    Where-Object {$_.PasswordNeverExpires -eq $False -and $_.PasswordExpired -eq $False} |`
    Sort-Object name |Select-Object -ExpandProperty SamAccountName)
    ## Get Password last Set values for all
    Foreach ($Name in $Names)
    $VAR1 = (Get-ADUserResultantPasswordPolicy -Identity $Name).MaxPasswordAge
    $VAR2 = (Get-ADUser $Name -Properties *).passwordlastset
    $VAR3 = (Get-ADUser $Name -Properties *).name
    $DTPC = (New-TimeSpan -Start (Get-Date) -End ($VAR2 + $VAR1) | Select-Object -ExpandProperty Days)
    Filter users to those who need to change thier password in 15 days.
    If ($DTPC -lt 15)
    No matter what i try between the {} after the If statement, I cannot get the output to a file.  However, if I use a Write-Output I get exactly what i looking for.  I feel like i am forgetting some basic concept and could really use some help.  Thanks.
    Matt 
    Matt Dillon

    Hi Matt,
    I generally create an empty array (something like $out = @()) at the top of the script and then use $out += $desiredOutput inside of the foreach loop.
    Outside of the loop, you can then pipe $out to Out-File or Export-Csv, depending on your needs.
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • ABAP Program where iam not able to get the Output.

    Hi Team,
                   I have written the code for the following requirement but could not get the output
    Can you people please have a look at this.
    Create a Report with the following output.
    In the selection screen you should have KUNNR and Delivery date(VBEP-EDATU).
    When you select the Customer number and Date in the Selection the following output should be displayed.
    Sales order Number (VBAK-VBELN)
    Sales order Material (VBAP-MATNR)
    Quantity (VBAP-ZMENG)
    Ship-to-Party (VBAK-KUNNR)
    Delivery Number(LIKP-LFDAT).
    The key field used for fetching the values is VBELN.
    Here the values from table VBAK are not getting selected.
    Please check the Program and give your valuable suggestion.
    I checked in Debug mode but could not get the values
    Regards,
    Pradeep P.

    Hi Ramchand,
                           Plz find the Code.
    *Fetching  vbeln matnr zmeng kunnr from vbak and vbap
    select a~vbeln
           b~matnr
           b~zmeng
           a~kunnr
           into corresponding fields of table it_sales
           from vbak as a
           inner join vbap as b
           on avbeln = bvbeln
           where a~kunnr in s_kunnr.
      If sy-subrc = 0.
      sort it_sales by vbeln.
      endif.
    *Fetching vbeln edatu lfdat from vbep and likp
    select a~vbeln
           a~edatu
           b~lfdat
           into corresponding fields of table it_delivery
           from vbep as a
           inner join likp as b
           on avbeln = bvbeln
           for all entries in it_sales
           where a~vbeln = it_sales-vbeln
           and a~edatu in s_edatu.
    Regards,
    Pradeep P.

Maybe you are looking for

  • I upgraded to Yosemite and can no longer import photos from my camera

    I have a Canon Eos Rebel SLR Digital Camera (Model DS6041).  It has always worked perfectly with iPhoto on my iMac running Maverick.  I upgraded to Yosemite yesterday and now when I plug the camera in...iPhoto opens...and it shows the camera listed i

  • No drag&drop features in HTML5

    Hi community Do you know if the drag&drop feature that I know from the Silverlight version of C4C (may release) is available in the HTML5 version. It could be used for adding employees or products to objects like opportunities or leads. Right now it

  • Drag and Drop Functionality in BO

    HI All, I came to know there is an option to view a Bex Report in "Query View" where in the User can change the dimensions of the report to get a desired output dynamically and the Base report is not modified in the process... Is there a way that i c

  • Client connecting through a proxy

    hi i'm new to RMI programming, i need to clear some things up . is RMI a standalone protocol like http or does it require another protocol so it can run over it ? . how does an RMI connection get through a proxy server, ie. if the client is behind a

  • Accessing SharePoint from Captivate 5

    I'm building an interactive program in Captivate 5 in which I'd like for the learner to go out to a SharePoint discussion board and leave comments and then return to where they were in the Captivate program. Is there a way to do this?