How do we print the error logs

hi friends , i want to print the error log file of a bdc session method ,can any one sugest me a answer

Check out this Sample Program
*& Report                                             *
*& This program is to transfer data from flat file to transaction 'FD01'
REPORT  zgopi_report
NO STANDARD PAGE HEADING
                        LINE-SIZE 255
                        MESSAGE-ID ZRASH.
*                 Internal Table Declarations                          *
*--Internal Table for Data Uploading.
DATA : BEGIN OF IT_FFCUST OCCURS 0,
         KUNNR(10),
         BUKRS(4),
         KTOKD(4),
         ANRED(15),
         NAME1(35),
         SORTL(10),
         STRAS(35),
         ORT01(35),
         PSTLZ(10),
         LAND1(3),
         SPRAS(2),
         AKONT(10),
       END OF IT_FFCUST.
*--Internal Table to Store Error Records.
DATA : BEGIN OF IT_ERRCUST OCCURS 0,
         KUNNR(10),
         EMSG(255),
       END OF IT_ERRCUST.
*--Internal Table to Store Successful Records.
DATA : BEGIN OF IT_SUCCUST OCCURS 0,
         KUNNR(10),
         SMSG(255),
       END OF IT_SUCCUST.
*--Internal Table for Storing the BDC data.
DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
*--Internal Table for storing the messages.
DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
DATA : V_FLAG1(1) VALUE ' ',
"Flag used for opening session.
       V_TLINES LIKE SY-TABIX,
       "For storing total records processed.
       V_ELINES LIKE SY-TABIX,
       "For storing the no of error records.
       V_SLINES LIKE SY-TABIX.
       "For storing the no of success records.
*          Selection screen                                            *
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
             V_SESNAM  LIKE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK B1.
*          Start-of-selection                                          *
START-OF-SELECTION.
*-- Form to upload flatfile data into the internal table.
  PERFORM FORM_UPLOADFF.
*        TOP-OF-PAGE                                                   *
TOP-OF-PAGE.
  WRITE:/ 'Details of the error and success records for the transaction'
  ULINE.
  SKIP.
*          End of Selection                                            *
END-OF-SELECTION.
*-- Form to Generate a BDC from the Uploaded Internal table
  PERFORM FORM_BDCGENERATE.
*--To write the totals and the session name.
  PERFORM FORM_WRITEOP.
*&      Form  form_uploadff
*     Form to upload flatfile data into the internal table.
FORM FORM_UPLOADFF .
*--Variable to change the type of the parameter file name.
  DATA : LV_FILE TYPE STRING.
  LV_FILE = V_FNAME.
*--Function to upload the flat file to the internal table.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME                      =  LV_FILE
*     FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = 'X'
*     HEADER_LENGTH                 = 0
*     READ_BY_LINE                  = 'X'
*     DAT_MODE                      = ' '
*   IMPORTING
*     FILELENGTH                    =
*     HEADER                        =
    TABLES
      DATA_TAB                      = IT_FFCUST
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
  IF SY-SUBRC = 0.
*--Deleting the headings from the internal table.
    DELETE IT_FFCUST INDEX 1.
*--Getting the total number of records uploaded.
    DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
  ENDIF.
ENDFORM.                    " form_uploadff
*&      Form  Form_bdcgenerate
*     Form to Generate a BDC from the Uploaded Internal table
FORM FORM_BDCGENERATE .
*--Generating the BDC table for the fields of the internal table.
  LOOP AT IT_FFCUST.
    PERFORM POPULATEBDC USING :
                                'X' 'SAPMF02D' '0105',
                                ' ' 'BDC_OKCODE'  '/00' ,
                                ' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
                                ' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
                                ' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
                                'X' 'SAPMF02D' '0110' ,
                                ' ' 'BDC_OKCODE'  '/00',
                                ' ' 'KNA1-ANRED'  IT_FFCUST-ANRED,
                                ' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
                                ' ' 'KNA1-SORTL'  IT_FFCUST-SORTL,
                                ' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
                                ' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
                                ' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
                                ' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
                                ' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
                                'X' 'SAPMFO2D' '0120',     
                                ' ' 'BDC_OKCODE'  '/00',
                                'X' 'SAPMF02D' '0125',     
                                ' ' 'BDC_OKCODE'  '/00',
                                'X' 'SAPMF02D' '0130',     
                                ' ' 'BDC_OKCODE'  '=ENTR',
                                'X' 'SAPMF02D' '0340',     
                                ' ' 'BDC_OKCODE'  '=ENTR',
                                'X' 'SAPMF02D' '0360',
                                ' ' 'BDC_OKCODE'  '=ENTR',
                                'X' 'SAPMF02D' '0210',     
                                ' ' 'KNB1-AKONT'  IT_FFCUST-AKONT,
                                ' ' 'BDC_OKCODE'  '/00',
                                'X' 'SAPMF02D' '0215',
                                ' ' 'BDC_OKCODE'  '/00',
                                'X' 'SAPMF02D' '0220',     
                                ' ' 'BDC_OKCODE'  '/00',
                                'X' 'SAPMF02D' '0230',     
                                ' ' 'BDC_OKCODE'  '=UPDA'.
*--Calling the transaction 'fd01'.
    CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
    MESSAGES INTO IT_CUSTMSG.
    IF SY-SUBRC <> 0.
*--Populating the error records internal table.
      IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
      APPEND IT_ERRCUST.
      CLEAR IT_ERRCUST.
*--Opening a session if there is an error record.
      IF V_FLAG1 = ' '.
        PERFORM FORM_OPENSESSION.
        V_FLAG1 = 'X'.
      ENDIF.
*--Inserting the error records into already open session.
      IF V_FLAG1 = 'X'.
        PERFORM FORM_INSERT.
      ENDIF.
*--Populating the Success records internal table.
    ELSE.
      IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
      APPEND IT_SUCCUST.
      CLEAR IT_SUCCUST.
    ENDIF.
*--Displaying the messages.
    IF NOT IT_CUSTMSG[] IS INITIAL.
      PERFORM FORM_FORMATMSG.
    ENDIF.
*--Clearing the message and bdc tables.
    CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
  ENDLOOP.
*--Getting the total no of error records.
  DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
*--Getting the total no of successful records.
  DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
*--Closing the session only if it is open.
  IF V_FLAG1 = 'X'.
    PERFORM FORM_CLOSESESS.
  ENDIF.
ENDFORM.                    " Form_bdcgenerate
*&      Form  populatebdc
*       FOrm to Populate the BDC table.
FORM POPULATEBDC  USING    VALUE(P_0178)
                           VALUE(P_0179)
                           VALUE(P_0180).
  IF P_0178 = 'X'.
    IT_CUSTBDC-PROGRAM = P_0179.
    IT_CUSTBDC-DYNPRO = P_0180.
    IT_CUSTBDC-DYNBEGIN = 'X'.
  ELSE.
    IT_CUSTBDC-FNAM = P_0179.
    IT_CUSTBDC-FVAL = P_0180.
  ENDIF.
  APPEND IT_CUSTBDC.
  CLEAR IT_CUSTBDC.
ENDFORM.                    " populatebdc
*&      Form  FORM_OPENSESSION
*       Form to Open a session.
FORM FORM_OPENSESSION .
*--Variable to convert the given session name into reqd type.
  DATA : LV_SESNAM(12).
  LV_SESNAM = V_SESNAM.
*--Opening a session.
  CALL FUNCTION 'BDC_OPEN_GROUP'
   EXPORTING
     CLIENT                    = SY-MANDT
     GROUP                     = LV_SESNAM
     HOLDDATE                  = '20040805'
     KEEP                      = 'X'
     USER                      = SY-UNAME
     PROG                      = SY-CPROG
*  IMPORTING
*    QID                       =
   EXCEPTIONS
     CLIENT_INVALID            = 1
     DESTINATION_INVALID       = 2
     GROUP_INVALID             = 3
     GROUP_IS_LOCKED           = 4
     HOLDDATE_INVALID          = 5
     INTERNAL_ERROR            = 6
     QUEUE_ERROR               = 7
     RUNNING                   = 8
     SYSTEM_LOCK_ERROR         = 9
     USER_INVALID              = 10
     OTHERS                    = 11
  IF SY-SUBRC <> 0.
    WRITE :/ 'Session not open'.
  ENDIF.
ENDFORM.                    " FORM_OPENSESSION
*&      Form  FORM_INSERT
*       fORM TO INSERT ERROR RECOED INTO A SESSION.
FORM FORM_INSERT .
*--Inserting the record into session.
  CALL FUNCTION 'BDC_INSERT'
    EXPORTING
      TCODE                  = 'FD01'
*     POST_LOCAL             = NOVBLOCAL
*     PRINTING               = NOPRINT
*     SIMUBATCH              = ' '
*     CTUPARAMS              = ' '
    TABLES
      DYNPROTAB              = IT_CUSTBDC
    EXCEPTIONS
      INTERNAL_ERROR         = 1
      NOT_OPEN               = 2
      QUEUE_ERROR            = 3
      TCODE_INVALID          = 4
      PRINTING_INVALID       = 5
      POSTING_INVALID        = 6
      OTHERS                 = 7
  IF SY-SUBRC <> 0.
    WRITE :/ 'Unable to insert the record'.
  ENDIF.
ENDFORM.                    " FORM_INSERT
*&      Form  FORM_CLOSESESS
*       Form to Close the Open Session.
FORM FORM_CLOSESESS .
  CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
      NOT_OPEN    = 1
      QUEUE_ERROR = 2
      OTHERS      = 3.
  IF SY-SUBRC <> 0.
  ENDIF.
ENDFORM.                    " FORM_CLOSESESS
*&      Form  FORM_FORMATMSG
*       Form to format messages.
FORM FORM_FORMATMSG .
*--Var to store the formatted msg.
  DATA : LV_MSG(255).
  CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
      ID        = SY-MSGID
      LANG      = SY-LANGU
      NO        = SY-MSGNO
      V1        = SY-MSGV1
      V2        = SY-MSGV2
      V3        = SY-MSGV3
      V4        = SY-MSGV4
    IMPORTING
      MSG       = LV_MSG
    EXCEPTIONS
      NOT_FOUND = 1
      OTHERS    = 2.
  IF SY-SUBRC = 0.
    WRITE :/ LV_MSG.
  ENDIF.
  ULINE.
ENDFORM.                    " FORM_FORMATMSG
*&      Form  form_writeop
*       To write the totals and the session name.
FORM FORM_WRITEOP .
  WRITE :/ 'Total Records Uploaded :',V_TLINES,
           / 'No of Error Records :',V_ELINES,
           / 'No of Success Records :',V_SLINES,
           / 'Name of the Session :',V_SESNAM.
  ULINE.
ENDFORM.                    " form_writeop

Similar Messages

  • How can we create the error log in a ABAP program

    Hi all,
    How can we create the error log in a ABAP program
    Thanks,
    srinivas.

    Hi,
    Refer to FM's in the Function Group SBAL. For a change most of the FM's have been well documented. Also have a look at the DEMO pgms. Se38---->SBALDEMO & F4.
    Regards
    Raju Chitale

  • Help, How to view the error log of oracle Job

    Hi all,
    I created a job in my database, which clears the archivelog. After the job is executed, it occurs error.Such as :
    RMAN清理归档日志 1 问题 2010-3-19 下午03时11分00秒 GMT+08:00 PTDB 数据库实例 SYSTEM RMAN 脚本
    How to view the error log of oracle Job?
    Thank you.
    Eric Zhou

    Hello,
    Besides some views (with the scheduler) that you can get on the link below:
    http://download-west.oracle.com/docs/cd/B28359_01/server.111/b28310/scheduse002.htm#CHDGIDFD
    You may use the LOG parameter with RMAN so as to generate a logfile on the server.
    Also from EM DBConsole (starting with 10g) you may have the RMAN Backup Report.
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to check the error log in sharepoint 2013 online (office 365)

    I'm working with sharepoint online instance. I'm developing a sharepoint app using Napa 365 but its giving me some error with the correlation ID. Where i have to check the error log to get the actual error description?
    Please suggest me the right direction.
    Thanks in advance!

    Hi,
    As your environment is SharePoint Online, I suggest you can create a new thread in SharePoint Online forum, you will get more detailed information from there and more experts will help you.
    Office 365 Forum:
    http://community.office365.com/en-us/f/default.aspx
    Thanks for your understanding.
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Write the Error log from background Job to the Spool request

    Hi ,
    I have a situation where in i need to capture the error log of a Z program which runs as a background job and write that log into the spool request. My Z program calls runs RSEINB00 program using the SUBMIT statement. When this Job fails the error log can be seen in SM37. But i need this error log to be sent in to a spool.
    I can read the error log using the BP_JOBLOG_READ FM and can also create a spool using the RSPO_SPOOL_OPEN FM.
    The problem is, when the Submit statement executes, due to internal valdation in the RSEINB00 program the program terminates. Due to this it is not able to perform the SY-SUBRC Check and thus doesn't read the log.
    Can anybody suggest me how to overcome this problem. I am attaching the code for your refernece.
    SUBMIT RSEINB00
           USING SELECTION-SET 'TEST2'
                           TO SAP-SPOOL
                           LIST NAME 'LOCL'
                           IMMEDIATELY space
                           KEEP IN SPOOL 'X'
           AND RETURN.
    <b>If sy-subrc <> 0.</b>           
                 CALL FUNCTION 'BP_JOBLOG_READ'
                  EXPORTING
                    CLIENT                      = SY-MANDT
                    JOBCOUNT                    = i_tbtco-jobcount
                    JOBLOG                      = i_tbtco-joblog
                    JOBNAME                     = i_tbtco-jobname
                   TABLES
                     JOBLOGTBL                   = l_joblog
                 IF SY-SUBRC <> 0.
                 else.
                    message i002 with l_joblog-msgv1.
                 ENDIF.
    <b>
    ENDIF.</b>
    Rgds,
    Kewal
    P.S. : any other approach to solve this problem will be appreciated too and the points will be rewarded suitably.

    If I select a job in SM37 and I click on "spool" I get a list with separate spool entries for each of the steps, e. g.
    Programmname/Kommand   Programmtyp   Spoolliste
    Z_MM_STAT_UPDATE_WERK  ABAP             1707445
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_WERK  ABAP             1707459
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_MARA  ABAP             1721423
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_WERK  ABAP             1721437
    Z_MM_STAT_UPDATE_MARA  ABAP             1721446
    Z_MM_STAT_UPDATE_WERK  ABAP             1721447
    Z_MM_STAT_UPDATE_VKORG ABAP             1721471
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_VKORG ABAP             1721521
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_VKORG ABAP             1721816
    It's in German but I'm sure you get the idea. For each Z_MM_STAT_UPDATE and variant I have a separate spool list that I can display.
    Markus

  • How to find out the error in J2EE application without debugging

    Hi all,
    I am trying JCO example for Sales order in Netweaver Development Studio 2.0.3 and JCO 2.1.4.
    I am using Java class as a object and calling the class in servlet.
    I am checking one by one method ie systeminfo for getting connection and Salesorder method to get the detail.
    I am using Printwrite class in Srvlet and getting the error in browser. but inside the method how I can get the error. the same way i can use the OUT.println in class also.
    Thanks in advance.
    Regards,
    ram

    You can check the log in the LogViewer service of your J2EE server

  • Adobe Reader 9.5.3 error code of 1635.  How can I delet the error?

    I have Adobe Reader 9.5.3 that gives me an error code of 1635.  This error occured after downloading an adobe up-grade and then deleting the up-grade.  Prior to the up-grade printing an other functions wer ok.  How can I delete the error?

    I have found this, that may be helpful:
    Try using the Microsoft Fix it wizard, available at http://support.microsoft.com/kb/971187. The wizard updates the Windows registry so that you can usually uninstall previous versions of the program, or install or update the current version successfully.
    Disclaimer: Adobe does not support third-party software and provides this information as a courtesy only.

  • How can I print the invoice for my IPad Order?

    I bought the IPad Air from Apple a week ago and it has been delivered yesterday.  I am wondering how I could print the Invoice for that purchase. 
    I didn't make the AppleID when I bought it, so, my order is not linked to my AppleID.  I managed to go onto the "Print Invoice" link and clicked on the "Print Invoice" link.  But it keeps asking to fill in the AppleID.  Since I don't have one, I made the AppleID.  But when I logged in and go to the "Order History" page, it says, "you don't have any recent order".
    Please see the screenshot belows.  Could you please guide me how I could print the Invoice of my order?  Thanks very much.

    You are going to have to put the iPad into Recovery Mode and try again: http://support.apple.com/kb/HT4097

  • Does not print the error message at my behest???

    I have a program which works but I want to give appropriate error handling to the user of application.
    So basically a simple html page asks for servername, username and password and this is passed onto this .jsp page.
    When the correct servername, username and password is entered program is okay but when for example incorrect servername is given it does not print the error message at my behest???????
    Here is a ftp page:
    <!-- processftplogin.jsp -->
    <html>
    <head>
    <title> FTP Login </title>
    </head>
    <body>
    <%@ page import= "ftp.* " %>
    <jsp:useBean class="ftp.FtpBean" id="ftpbean" scope="session" />
    <%      try
               String servername = request.getParameter("servername");
               String username   = request.getParameter("username");   
               String password   = request.getParameter("password");
               ftpbean.ftpConnect(servername, username, password);
            catch(Exception e)
               out.println("There has been an error with logging into system");
               out.println("please check Servername");
               out.println("Please check username");
               out.println("Please check password");
    %>
    <h1> You have successfully logged in. </h1>
    </body>
    </html>Why does it print:
    Error: 500
    Location: /myJSPs/jsp/grid-portal-project/processftplogin.jsp
    Internal Servlet Error:
    javax.servlet.ServletException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
         at jsp.grid_0002dportal_0002dproject.processftplogin_2._jspService(processftplogin_2.java:120)
    instead of:
    There has been an error with logging into system
    Please check Servername
    Please check username
    Please check password

    man do one thing
    first tell me the book u are using for JSP.
    cos even i would like to purchase.
    u mailed me before
    but this time make a good description
    of your project write it in a file
    then zip it along with your project
    source(if possible)...
    then in that project report
    also give the description of using the JSP tomcat
    and all (cos i dont know for windows...or linux)
    this will be all...

  • How to automatically print the layers of a drawing in separate sheets in one go?

    How to automatically print the layers of a drawing in separate sheets in one go?
    Suppose that my pdf file contains 15 layers and wanted to print each one of these layers separately in separate sheet, then how this sort of work might be done automatically?
    Thank you for the help,
    Best
    Jamal

    No, unfortunately, when you're in Calculation and click "pick"  it closes the previous window. But I can tell you!
    In the Amount field I chose Calculate>Value is the PRODUCT of the following field, and I picked Hour1, which is the field where I entered the formula you provided HOURS1 * 10. I just checked the formula and saw that it was missing a space, and inserted it. So now there is a calculation appearing in the amount column, but it's equal to what I am entering in the Rental Fee Column, not 10x the amount. See illustration. I checked the calculation order (thank you for that) and fixed the sequence.
    Also, when I go to select a number from from drop down box in the Rental Fee column, it now gives me an error message before inserting the number. The error message reads "Must be greater than or equal to 0 or less than or equal to 5."  I have no idea why, when the choices in the column are limited to 0, 1, 2, and 3. Is there a way to send you the actual form through this forum - I think I can upload it to the website and send you a link, correct? Thanks for your help, George.

  • How can I print the calendar from my iPad?

    How can I print the calendar from my iPad/iPhone 4?  I would like each month on a separate 8 1/2 x 11 sheet of paper.  Thanks!

    What print app do you have? I think that you need certain printing apps in order to print the iPad calendar. The print feature is not built into the app itself ...As far as I know.

  • How can i print the e-mail address book

    I need to be able to share the address book. How can I print the contents

    There is no good way that I have found to print them directly from Thunderbird.
    The best way that I have found is to export the address book to a comma separated file, .csv file, then open that with Excel or Open Office, format the file like you want and print from there.
    The added benefit of doing this is now you have a backup file of your address book in case something bad happens.
    The Export command is under Tools in the Address Book window.

  • In mail, how do I print the list of Previous Recipients?

    I'm using mail in 10.5.4. It works fine for me, including the capability of suggesting email addresses from the Previous Recipients list. But, of course, this runs only on my eMac at home.
    I plan to be away for 3 weeks, and will be using email on various folks' computers, by contacting my email server directly (verizon.net). But my email server does not have my Previous Recipients list.
    How can I print the Previous Recipients list?
    In the Previous Recipients window, I find that I can select a single email address with a mouse click, and select all the recipients (command-a), but the copy command (command-c) does not work.
    I've also tried to look at the file:
    ~/Library/Application Support/AddressBookApplication Support/AddressBook/MailRecents-v4.abcdmr,
    but it is not in a readily viewable text format. The Unix "file" command describes it as an "SQLite database (Version 3)."
    Does anyone know how to print a copy of the Previous Recipients, to take with me on vacation?
    Thanks

    This turns out to be more complicated than I had hoped, but it is possible.
    The Apple mail program uses a database program available in Unix called “sqlite3.”
    The executable is in /usr/bin.
    For information about this program, type “man sqlite3” in a terminal window. Also, there is information on the web, at www.sqlite.org.
    A friend whose day job is in database administration helped me work this out.
    First, go the proper directory in a terminal window:
    cd ~/Library/Application Support/AddressBook
    The file of interest is MailRecents-v4abcdmr.
    Note that the “file” command describes this as:
    file MailRecents-v4abcdmr
    MailRecents-v4.abcdmr: SQLite database (Version 3)
    sqlite3 MailRecents-v4.abcdmr
    SQLite version 3.4.0
    Enter ".help" for instructions
    sqlite>
    Let’s see the headers:
    sqlite> .headers ON
    Now, let’s get some information about what’s in this database file:
    sqlite> select * from SQLITE_MASTER; /* don’t forget the semicolon */
    /* lots of output */
    The table ZABCDMAILRECENT is of interest to us. Note that the last 3 columns are called ZLASTNAME, ZFIRSTNAME, and ZEMAIL. We want these from the table, in columns, in filename.txt.
    sqlite> .mode columns ZABCDMAILRECENT
    sqlite> .width 15 15 36 /* make sure the columns are wide enough */
    sqlite> .output filename.txt /* note: no ‘;’ */
    sqlite:> select ZLASTNAME, ZFIRSTNAME, ZEMAIL from ZABCDMAILRECENT;
    sqlite> .exit
    Done. The email names and addresses are now in filename.txt, one per line.
    Maybe, someday, someone at Apple will add this capability to mail.

  • How can I Print the next 4 or 5 weeks from iCal in month view (not simply complete months)

    How can I Print the next 4 or 5 weeks from iCal in month view (not simply complete months).
    I'd like to print the next (up an coming) weeks of my calendar from iCal in month view - The idea is to get this information on 1 sheet of A4.. just like the month view.. but as far as i can see the month view only gives you current or next complete months.. The ONLY time this give me the view I want is in the first week of any given month.. the rest of the month part of the print is in the past and not enough of the up and coming weeks are shown?
    I can believe  the app won't allow you to do this .. am I missing an easy fix.. or has it been rectified in Yosemite .. I'm using mavericks 10.9.5.
    Thanks

    Hope this helps.  
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • How can I print the "number lines" with the code in Visual Studio?

    How can I print the "number lines" with the code in Visual Studio?

    Hi BillionaireMan,
    What about your issue now?
    If you have resolved it, you can share the solution here, which will be beneficial for other members with the same issue.
    If you did not, please tell us more information,we will try my best to help you.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Problem while installing discoverer desktop edition

    HI I find few error messages while installing discoverer desktop edition.. When i give oracle home as name:OracleHome92 Location: DiscovererDesk it gives me a error " oracle discoverer doesnot support multiple installations thus it cannot be installe

  • Computer was restarted because of a problem Panic Report

    Ok, have been on this site so many times and thanks to all contributors who solve the array of issues that come up. have a situation right now mac 10.8.1 2.3 ghz intel core 7 mid 2012 upgraded memory to 16GB 1600 Mhz DDR3 I went to replace my hard dr

  • How do you temporarily unmount a second internal Harddrive?

    Hi guys this might be a no brainer to some but I better ask to be safe. I wasnt happy with my initial install of Leopard so I am doing a clean install on a new HD I bought and installed in my ProMac. I've now booted in this new drive and am installin

  • [ERROR]While running appsTier

    Dear, We have problems when cloning applications from production to development. Problem encountered is when running "*appTier*". But by the time the process is running up a few errors, and enclosed them in an attachment. for the problem you can see

  • Moving home and application folders to a new drive

    i have a couple of questions that may seem stupid, but since i do not know the answers, here they are: - on a mac pro with two drives, can i just drag my home folder to the new drive to move it there? - can i move the application folder into my home