Writing data to log file

Is it possible to write data to a log (text) file from within Crystal Reports, possibly in a UFL?  Is there a way that's already built in to CR?
Thanks.
Ron

Ido - thanks for the link.  This will help.
Don,
Not exporting a report to a text file.  More like logging report events. One of my report developers was thinking of maybe tracking the start/stop times of each publication per person as well as the full run time.
I hope I explained that correctly. 
Thanks.
Ron

Similar Messages

  • Steps to move Data and Log file for clustered SQL Server

    Hi guys 
    we have Active'passive SQL 2008R2 cluster environment.
    looking for steps to move Data and log files from user Database  and System Database for  SQL Server Clustered Instance. 
    Currently Data and log  files resides on same drive for user and system Databases..
    Thanks
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

    Try the below link
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/468de435-3432-45c2-a50b-23519cd2686e/moving-the-system-databases-in-a-sql-cluster?forum=sqldisasterrecovery
    -Prashanth

  • Display data in log file using PL/SQL procedure

    Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure?
    Please also mention the syntax too.

    Pl post details of OS, database and EBS versions.
    You will need to invoke the seeded FND_LOG procedure - see previous discussions on this topic
    Enable debug for pl/sql
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_LOG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Srini

  • Do we need to format data and log files with 64k cluster size for sql server 2012?

    Do we need to format data and log files with 64k cluster size for sql server 2012?
    Does this best practice still applies to sql server 2012 & 2014?

    Yes.  The extent size of SQL Server data files, and the max log block size have not changed with the new versions, so the guidance should remain the same.
    Microsoft SQL Server Storage Engine PM

  • Change the Data and Log file locations in livecache

    Hi
    We have installed livecache in unix systems in the /sapdb mount directory where the installer have created sapdata and sapdblog directories. But the unix team has already created two mount direcotries as follows:
    /sapdb/LC1/lvcdata and /sapdb/LC1/lvclog mount points.
    While installing livecache we had selected this locations for creating the DATA and LOG volumes. Now they are asking to move the DATA and LOG volumes created in sapdata and saplog directories to these mount points. How to move the data and log file and make the database consistent. Is there any procedure to move the files to the mount point directories and change the pointers of livecahce to these locations.
    regards
    bala

    Hi Lars
    Thanks for the link. I will try it and let u know.
    But this is livecache (even it uses MaxDB ) database which was created by
    sapinst and morover is there any thing to be adjusted in SCM and as well as
    any modification ot be done in db level.
    regards
    bala

  • Need to remove unwanted data in log file

    hai experts,
                    how to identify and remove the unwanted data from log file.plz help me.
    regards,
    pugazh.

    brarchive takes a backup of all offline redologs, then deleted them. this is done at OS level.
    if you do not need them and you do not need archiving, a permanent solution is to disable archiving:
    stop SAP first, then:
    sqlplus / as sysdba
    shutdown immediate;
    startup mount
    alter database noarchivelog;
    alter database open;
    exit
    after this, you will never be able to do a recovery point-in-time, and won't be able to start online backups.

  • Problem while writing data on xls file using jxl API

    Hi,
    I am getting problem while writing data on excel file using jxl api.
    When i write data on file and all handles associated to the file are closed, file size increases but when i open the file nothing is written in it and when file is closed manually from excel window, file size decreased to its original that was before writing data.
    here is code:
              FileOutputStream os = new FileOutputStream(this.dirPath + this.fileName, true);
              WritableWorkbook this.workbook = Workbook.createWorkbook(os);
    after writing data following handler are closed:
    this.os.flush();
                        this.workbook.write();
                        this.workbook.close();
                        this.os.close();
                        this.os = null;
    can any body help me.
    Thanks in advance

    Err, I did help you. I did understand your problem; and I solved it for you. What was missing was that you apparently made no effort to understand what you were being told. Or even consider it. You just argued about it, as though you were the one with the solution, instead of the one whose code didn't work.
    And the other thing that was missing was the part where you said 'thank you' to me for solving your problem. Somewhat more appropriate than biting the hand that fed you, frankly. I do this for nothing, on my own gas, and it's extremely irritating when people keep asking about problems I have already solved for them. I am entitled to discourage that. It's part of making them more efficient actually.
    But it happens often enough that it also makes me think I'm just wasting my time. Probably I am.

  • Writing data to a file in Server

    Hi all,
    In my application i would be writing data to a file which is located in the Server.
    when i tried writing data to a file in my local machine using a Java Application it worked fine .
    Now through the webdynpro application and providing the files path (in server ) ,i am getting file not found exception .
    I am using basic File and i/o operations .
    File abc = new File ("
    servernamer
    folder1
    subfolder1
    filename.dat");
    when i try accessing this path from the command prompt its opening fine.
    Could you please through some light on this .
    thanks,
    swetha .

    >
    KalluriVijay wrote:
    > Hi Swetha,
    > Do one think.
    > InputStream text = null;
    >                int temp = 0;
    >                //File file = new File(wdContext.currentContextElement().getResource().getResourceName().toString());
    >                //wdComponentAPI.getMessageManager().reportSuccess("filePath Vijay:::"+file);     
    > //wdComponentAPI.getMessageManager().reportSuccess("filePath Vijay:::");
    >                     try
    >                     {
    >                     String fileName = wdContext.currentContextElement().getResource().getResourceName().toString();               
    >                     if(fileName.equalsIgnoreCase("ASNCRT.dat"))
    >                     {     
    >                     File file = new File(fileName);                         
    >                     FileOutputStream op = new FileOutputStream(file);          
    >                     if (wdContext.currentContextElement().getResource()!= null)
    >                     {
    >                     text = wdContext.currentContextElement().getResource().read(false);
    >                     while((temp=text.read())!= -1)
    >                     {
    >                     op.write(temp);
    >                     }
    >                     }
    >                     op.flush();
    >                     op.close();
    >                     path = file.getAbsolutePath();
    >                     //wdComponentAPI.getMessageManager().reportSuccess(path);
    >                     }
    >                     else
    >                     {
    >                     wdComponentAPI.getMessageManager().raiseException("Please Check the Filename:Filename should be ASNCRT.dat ",true);     
    >                     }
    >                     }
    >                     catch(Exception ex)               
    >                     {
    >                     ex.printStackTrace();
    >                     }
    > By using this code u can put u r file in to Server Path, then u will get the that .dat file from server path and run the command prompt its opening fine
    > How to get the file from the Server Path:
    > Workbook wb = Workbook.getWorkbook(new File(path));     // For get the file from the Server path
    >
    >   Hope this is help full for u
    > Regards
    > Vijay Kalluri
    This won't work. First, like i said, File class is not for accessing remote files, it is only for local files.
    Second, Workbook class is a class from Java Excel API. He is not working with xls. Anyway that wouldn't work either.

  • Reading and Writing to a Log file

    Hello,
    I'm writing a class that will write a user id to a log file every time they click on a particular button. However, I don't want a new line every time a user clicks on the button, I'd like to be able to find their id in the log, increment a counter and write that back to the log in place of the previous entry.
    For example, User A clicks on the button for the first time so I write in the log:
    User A 1
    Next time they come along, I want to see if User A exists in the log - which they do - add 1 to the counter and replace User A 1 with User A 2. So the log will now say:
    User A 2
    I was thinking of writing to the log, reading the log back in to a HashMap and then writing the HashMap out every time. Seems like a rather inefficient solution. Is there anything else I can do?
    Thanks!

    Hi,
    counters are a standard topic. Many solutions are to be found in
    textbooks. Here is one of them (Hunter & Crawford Java Servlet
    Programming):
    String activeUser = ... ;
    try
      FileReader fileReader = new FileReader( "mylog" );
      BufferedReader bufferedReader = new BufferedReader(fileReader);
      FileWriter fileWriter = new FileWriter("mylog.new");
      BufferedWriter bufferedWriter = new BufferedWriter( fileWriter );
      String line;
      String user;
      String count;
      while((line = bufferedReader.readLine() != null )
        StringTokenizer tokenizer = new StringTokenizer( line );
        if( tokenizer.countTokens != 2 ) continue; // bogus line
        user = tokenizer.nextToken;
        if( activeUser.equals( user ) )
          count = tokenizer.nextToken;
          bufferedWriter.write(user+" "+(Integer.parseInt(count)+1)+"\n" );
        else
          bufferedWriter.write( line );
      bufferedWriter.close();
      fileWriter.close();
      bufferedReader.close();
      fileReader.close();
      File oldLog = new File("mylog");
      File newLog = new File("mylog.new");
      newLog.renameTo(oldLog);
    catch( Exception e )
        // do whatever appropriate
    }Have fun,
    Klaus

  • Visible login data in log file

    Hi all,
    when i use an import command via MaxL and log the process with "spool on" the SQL login data can be seen in the log file.
    -->
    MAXL> import database 'Sales'.'SalesDB' dimensions connect as 'essb_system' identified by 'SamplePW' using server rules_file 'BusinessUnit' on error write to 'Log\PrepareDim.err';
    When i set a spool off before that statement and a spool on afterwards i miss any information of the import process.
    Is there any way to hide or encrpt the login data?
    Thank you for your help,
    best regards
    bernd

    Have a read of - Encrypting passowrd in maxl
    or http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_invoke_encrypt.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Writing Data to Multiple Files

    Hi,
    I got a problem while writing the data to multiple files.
    Actually my requirement is,
    I want to read the data from multiple files and retrieve the required data from those and save that data into separate files.
    Meaning if i read the data from "D:\kiran\kk\123\kiran.txt" the retrieved data should be saved in "D:\kiran\kk\kiran.txt" the file name should be created with the input file name.
    here is my code,
    //here i am taking the files into loop
    for(int i=0;i<files.length;i++){
    try{                   
    //reading the files
    BufferedReader br=new BufferedReader(new FileReader(files));
    //creating a new file for writing the retrieved data
    pw=new PrintWriter("D:\\Kiran\\kk"+File.separator.concat(str[i]));
    String line=br.readLine();
    while(line!=null){
    line=br.readLine();
    //here i am matching the required data
    Matcher m = Pattern.compile("name(\\s*\\W*\\w*\\W*.\\w*.)|invoice (\\W*(\\d+))|amount(\\W*(\\d+),\\d*)|site(\\s*Rs\\.[\\d]*,[\\d]*/-)", Pattern.CASE_INSENSITIVE).matcher(line);
    while(m.find()){                           
    System.out.println(m.group());
    //here printing the retrieved data to a file
    pw.println(m.group());
    br.close();
    but i am ending up with some issues.
    Data is reading properly from all the files, but when i write that data into individual files the data which is retrieved from last file is only printing into the file which is created last.
    Please help me regarding this,
    Thanks,
    Kiran

    D:\kiran\kk\123\
    In this folder some files are there say,
    kk.txt,kiran.txt,praveen.txt and so on, i can read the entire data from those files and also retrieving the required data like name,data etc. from all the files. Now the retrieved data should be stored in individual files means, if the data is retrieved from kk.txt then that particular data should be stored in the file with the same file name but in different location likewise it should happen for all the files those are in that folder.
    Thanks,
    Kiran

  • How to store data into log file(.doc) using CVI

    The purpose is to store the capture data(from my cvi program) and store into the log file (.doc). so at the end of the program run I can retrieve the doc file where the data  store to do my analysing .
    Why do this: I wanted to create my program into .exe file that why I need this method or do u have other method to intro?
    Any ideal or note or example to share? Pls help

    If you are explicitly trying to create a Microsoft Word document, then CVI comes with Word Report instrument that can be used to generate such files. The instrument is located in toolslib\activex\word\wordreport.fp, while a sample program can be found in samples\activex\word\wordrpt.cws.
    I suggest you take a look at the example program that illustrates the fundamentals of this instrument, next you can start designing your own application using that instrument.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Data Manager log file deletion

    I belive this program (UJF_FILE_SERVICE_DLT_DM_FILES ) can be used to remove log files.  Couple of questions on this process
    1) Can the DM log be deleted from the front end rather than running the program?  Any issues with deleting the log file from the BPC front end?
    2) Is there a transaction code associated with this program?  If yes, do you know what is the transaction code?
    3) Can this be scheduled so that it deletes everyting except the logs that are created in the last 2 or 4 months?

    First the program you mentioned does not delete DM log files, it deletes only the DM data files.  There is no transaction code for that program and you can delete these files from the frontend with no problem.
    If you want to delete DM log files, you can use this program delivered with this how-to guide.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0e72699-6c32-2d10-5d97-a4db8321ef67
    THe only problem is that this program does not handle deleting the generated folders associated with log files.
    Cheers,
    RIch Heilman

  • SQLScript , writing messages to log file

    Hi,
    We're developing SQLScript and executing them directly on Unix via Unix command HDBSQL. We use the -o keyword with HDBSQL to write messages like comments, custom errors into a log file. The only way we know how to force custom messages into the log file is the SELECT "Text" FROM DUMMY.
    Now our SQL consists of multiple procedures that may be called in a nested fashion i.e Proc 1 calls Proc 2 which in turn calls Proc 3. We noticed that the SELECT FROM DUMMY way of writing comments into the log only works if the procedure is the first procedure in the line of nested calls(Proc 1). SELECT FROM DUMMY from a  sub/nested procedure does not make it to the log file.
    Is there any other way we can achieve this? Other DBs have options like DBMS.output which work well in such scenarios.
    I would like to thank this group for being ever so helpful in all the issues we have faced so far.
    Regards,
    Nehal

    Hello,
    I do not agree. have you taken a look at Oracle9i Supplied PL/SQL Packages and Types Reference?
    You can use UTL_FILE and DBMS_OUTPUT to achieve exactly what you want.
    Rgds
    Fidel

  • Recovering data when log files corrupt

    I am interested to understand if you can easily salvage the data files if the log files corrupt for some reason. Thus far I cannot see how this can be easilly achieved as db_backup requires a working environment, and since the log files may have vanished, the LSN of the data files will be greater than of the last log - and therefore refuse to create the environment.
    Ideally I guess, I am looking for a tool that can reset the LSN in place. It would be better to have access to your 100's of GB of data and accept a small amount of inconsistency or data loss than have nothing.
    Thanks

    Hi,
    Resetting LSNs can be done using db_load -r lsn or using the lsn_reset() method, and it is done in place.
    If your log files are corrupted, you would need to verify the database files (you can use the db_verify BDB utility or the verify() method). The actions you will further take depend on the result of verifying the database files:
    - if they verify correctly then you just need to reset the LSNs and the file IDs in the databases and start with a fresh environment,
    - if they do not verify correctly, you could restore the data from the most recent backup, or you can perform a salvage dump of the data in the database files using db_dump -r or db_dump -R and than reload the data using db_load; see the Dumping and Reloading Databases doc section in the Berkeley DB Programmer's Reference Guide.
    Regards,
    Andrei

Maybe you are looking for

  • ENT Linux on intel 965 chipset  based systems

    Hi I am unable to install ENT Linux on my new Box (intel core 2 duo / dg965whmkr MoB / 2 G RAM) . Issue is installer fails to detect CDROM. Anybody succeeded installing ENT linux on a similar config like mine. Please help Regards Reju

  • How to find last_query for oracle web form?

    I know that for standard forn we can navigate diagnostics-system-last_query How can we do it for web forms? Diagnostics menu contain only 5 items - Show log - Set trace lavel - Show Log on screen - Show pool monitor Thanks

  • Editing slideshows

    Would really like to add slides to my slideshow. Have exported the file to .wmv format and now when I bring the file back into the PSE6 'create slideshow' area I cannot find a way to storyboard the file. Only the opening slide is seen, would like to

  • Where's the documentation?

    I just installed iLife 06. When I ordered the Apple store said it included printed and electronic documentation in the box. I get that the electronic is on the Help menu. There was no printed version. Is there at least a PDF somewhere? I expected at

  • Should I bother learning Actionscript 2 since there's actionscript 3?

    I've been toying around with flash for years, making animations mostly. I want to start making games though, because I'm majoring in videogame animation and I know I'm going to have actionscripting classes. I just wanted to know if learning actionscr