Text file creation

Creating text file
Posted: Jan 12, 2012 3:20 AM Edit Reply
Hi friend,
I have to complete a task in my company, which is related to security...task is like that, when my application opens, it will create automatically text file which cotain all info. in your system.
Like type cmd -> ipconfig /all
then u will get,
Windows IP Configuration
Host Name . . . . . . . . . . . . : HOCOM039
Primary Dns Suffix . . . . . . . : ION11EXCH.COM
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : ION11EXCH.COM
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8168/8111 PCI-E Gigabit E
thernet NIC #2
Physical Address. . . . . . . . . : 00-24-1D-F2-99-0A
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.202.11.67
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.202.11.2
DNS Servers . . . . . . . . . . . : 192.202.11.1
192.202.101.16
i want to create this info. in txt format, then how will i do.....
another one is , text fille which is created, where is location ???? means on client side or server side ...
please help me to solve this problem..

If you're using Oracle Forms, you probably want to ask this question in the Forms. Forms 10g, in my understanding, is exclusively a three-tier application so the code is running on the application server not on the client machine. There may be ActiveX or Java libraries that could be included on a Forms 10g page that would run operating system commands on the client machine. Generally, however, browser security would prevent that sort of thing from happening. If you are deploying an internal application, you might be able to work with your Windows admin team to come up with a way to make a security exception for your application on all the client machines. However, if this is an internal application, you would presumably have much more efficient ways of gathering this information about your client machines.
Justin

Similar Messages

  • PO creation using text file

    Hi All,
    I have program which takes input text file and create PO in SAP. Program is using standard SAP BAPI to create PO.
    This is working fine. But i have one program during errors.
    If text file contains 50 line items and suppose line 12 is incorrect. Incorrect means PIR,source list etc not correct or material is invalid etc etc. Then program(bapi) throw error and PO creation stops and not continue with remaining lines. That is also normal process when create PO via ME21N.
    User want to show errors for all invalid rows at the same. Basically they want PO VALIDATION step where they want to see errors of all line items. So that they can remove from text file. ANy idea how to do this?
    Thanks,
    Yogesh

    Yogesh,
    I don't understand your problem because I believe that BAPI (even ME21n) always throws all the errors for the input data in return table. So, if you have 2 problematic items in one purchase order, suppose 12 and 42, both containing invalid materials, BAPI will contain error message for both the records and not only 1 material as error.
    Similarly, if you click MESSAGES button in ME21n, you will get all the errors for all the items in the list and not 1 only, do check.
    I suppose the issue with your program must be the error handling of BAPI is not done well, and you are exiting the program showing only First return message or something like that. Do output all the error messages of the Return table and you should be able to see all the errors.
    Even if your File contains data of multiple POs, you should be able to check all the POs with all the items in a single program run.
    Let me know if you have any concerns or you need any help.
    BR,
    Diwakar

  • Want to scan to text file on hp oj8600, software indicates only pdf or jpg file creation

    want to scan to text file on hp oj8600, software indicates can do. However printer system software only allows pdf or jpg file type creation.

    Hello @Richf95,
    Welcome to the HP forums.
    I understand that you are trying to save scans as a text file.
    I would like to help.
    PDF has become the standard file type used when scanning/saving a document.
    Most printers will not have text as a default option.
    Try the following:
    Open the HP scan utility
    In the lower left hand corner select 'Create New Shortcut...'
    Name your new short cut. I went with Text.
    In the next window select the file tab.
    In the drop down menu, select Text.
    This should create a shortcut that will allow you to save scans as a .txt file.
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • Creation of Text File on Client Machine

    I am using Oracle 11i EBS and I have a requirement to create a text file on the client's machine. The name of the file is suppose to be on a particular format (DDMMYY.TXT). It is an urgent requirement from our client and we need to go live in 3 days. Kindly helP me out.
    Regards

    Hi Hussain,
    I need to extract data from Oracle Applications table and then this data had to export in text file. User wants to do this through Oracle application front end. If you want more detail please let me know.
    Thanks

  • Error loading a text file during creation of data load rule

    Hi,
    I am trying to load this text file but whenever I open File -> Open Data File and then click on the file, it says "Invalid Blank Character in name". I tried changing the name of the file and everything but I do not understand what it really means. Can anyone help me out please? This seems like a simple error but I am unable to figure it out. Thanks.
    -- Adi

    As Glenn said, there should not be any space in the path that causes the error.For instance if you have ur file in the desktop(C:\Documents and Settings\Desktop), there would be space in between Documents and Settings. To avoid this, you could directly save in your local disk drive(C:\, D:, E:\).
    Regards
    Cnee

  • Text file update for account creation

    Hi,
    For an application, the requirement to create an account is -
    A text file resides on a database server. We need to open the file, add users account info in that, save and close. After that, come into IDM and assign the resource in user object.
    My questions are -
    Is there any inbuilt adapter in IDM which can be used for this purpose?
    Or do we need to call a java when all the approvals are done - to do this job and then after executing the method in java, come back to IDM and assign the resource in user object?
    How do we handle if there is any error while creating user object?
    Thanks,
    Santoshanand

    Hi,
    Please respond to my questions. If it is possible to call a java method to update the text file and then assign resource in IDM, we will searve the exact purpose of IDM to make the application fully digital provisioned.
    Thanks,
    Santoshanand

  • Attaching text file using SO_NEW_DOCUMENT_ATT_SEND_API1

    hello guys, i'm a newbie here.
    I'm having trouble attaching an existing text file using function 'SO_NEW_DOCUMENT_ATT_SEND_API1'. It seems i can't find the right combination of parameters that are being passed to this function.
    first, i'm using WS_UPLOAD to upload the text file to an internal table then i'm creating all the neccessary internal tables that will be use by this function..
    By the way, i'm trying to send mail w/ attachments to external mail and SAPids. Below is my code.
    REPORT ZHR_TESTEMAIL .
    TABLES: USR02, PA0105, SOSU, SOUC, RLGRAP, IBIPPARMS, DYNPREAD, RSCSEL.
    DATA: FOLD_YR(2) TYPE C,
          FOLD_TYPE(3) TYPE C,
          G_HEADER LIKE SOOD2,
          G_FOLMAM LIKE SOFM2,
          METHOD1 LIKE SY-UCOMM,
          G_DOCUMENT LIKE SOOD4,
          G_USER LIKE SOUDNAMEI1,
          FOLD_NUMBER(12) TYPE C,
          G_NEW_PARENT LIKE SOODK,
          G_OWNER LIKE SOUD-USRNAM,
          G_REF_DOCUMENT LIKE SOOD4,
          G_USER_DATA LIKE SOUDATAI1,
          G_AUTHORITY LIKE SOFA-USRACC,
          G_OBJCNT LIKE SOLI OCCURS 0 WITH HEADER LINE,
          G_OBJHEAD LIKE SOLI OCCURS 0 WITH HEADER LINE,
          G_OBJPARA LIKE SELC OCCURS 0 WITH HEADER LINE,
          G_OBJPARB LIKE SOOP1 OCCURS 0 WITH HEADER LINE,
          G_RECIPIENTS LIKE SOOS1 OCCURS 0 WITH HEADER LINE,
          G_REFERENCES LIKE SOXRL OCCURS 0 WITH HEADER LINE,
          G_ATTACHMENTS LIKE SOOD5 OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF G_FILES OCCURS 10 ,
          TEXT(4096) TYPE C,
          END OF G_FILES.
    DATA: BEGIN OF IT_WS_FILE OCCURS 0,
          WS_FILE LIKE RLGRAP-FILENAME,
          END OF IT_WS_FILE.
    DATA: BEGIN OF IT_SAPID OCCURS 0,
          SAPID LIKE USR02-BNAME,
          END OF IT_SAPID.
    DATA: BEGIN OF IT_EMAIL OCCURS 0,
          EMAILADD LIKE PA0105-USRID_LONG,
          END OF IT_EMAIL.
    DATA: BEGIN OF IT_TSP01 OCCURS 0.
            INCLUDE STRUCTURE TSP01.
    DATA: END OF IT_TSP01.
    DATA: BEGIN OF TAB2 OCCURS 50,
          TEXT(200) TYPE C,
          END OF TAB2.
    DATA: V_DOCDATA TYPE SODOCCHGI1,
          V_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
          V_OBJHEAD LIKE SOLISTI1   OCCURS 0 WITH HEADER LINE,
          V_OBJTXT  LIKE SOLISTI1   OCCURS 0 WITH HEADER LINE,
          V_OBJBIN  LIKE SOLISTI1   OCCURS 0 WITH HEADER LINE,
          V_OBJHEX  LIKE SOLIX      OCCURS 0 WITH HEADER LINE,
          IT_RECVRS TYPE SOMLRECI1  OCCURS 0 WITH HEADER LINE,
          IT_CONTNT TYPE SOLISTI1   OCCURS 0 WITH HEADER LINE,
          IT_BODY   LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE,
          V_TLIN    TYPE I,
          V_LINE    TYPE I.
    DATA: BEGIN OF IT_TEXTLINE OCCURS 500,
          TEXTLINE(5000),
          END OF IT_TEXTLINE.
    DATA: FYL LIKE RLGRAP-FILENAME,
          GV_SUBNO LIKE SOSU-SUBNO,
          GV_EMAIL LIKE PA0105-USRID_LONG,
          GV_NEXTDAY LIKE SY-DATUM,
          YEAR(4) TYPE C,
          RECFLAG TYPE C.
    SELECTION-SCREEN BEGIN OF BLOCK PARAM WITH FRAME TITLE TEXT-001.
    PARAMETERS: SUBJ(254) TYPE C OBLIGATORY,            "Subject
                DESC(254) TYPE C.                       "Message
    SELECT-OPTIONS: SAPID FOR USR02-BNAME NO INTERVALS. "Recipient's SAP ID
    SELECT-OPTIONS: EMAILADD FOR PA0105-USRID_LONG NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK PARAM.
    SELECTION-SCREEN BEGIN OF BLOCK PARAM2 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS: WS_FILE FOR DYNPREAD-FIELDNAME NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK PARAM2.
    SELECTION-SCREEN BEGIN OF BLOCK PARAM3 WITH FRAME TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: RBUT1 RADIOBUTTON GROUP A USER-COMMAND BUT. "Local PC
    SELECTION-SCREEN COMMENT 5(20) FOR FIELD RBUT1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: RBUT2 RADIOBUTTON GROUP A.                  "Server
    SELECTION-SCREEN COMMENT 5(20) FOR FIELD RBUT2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: RBUT3 RADIOBUTTON GROUP A.                  "Spool
    SELECTION-SCREEN COMMENT 5(20) FOR FIELD RBUT3.
    PARAMETERS: SPOOLNUM LIKE RSPOTYPE-RQNUMBER.            "Spool Number
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK PARAM3.
    SELECTION-SCREEN BEGIN OF BLOCK PROC WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETER: BPROC AS CHECKBOX USER-COMMAND BCK. "Background Processing
    SELECTION-SCREEN COMMENT 5(50) FOR FIELD BPROC.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK PROC.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR WS_FILE-LOW.
      DATA: WS_FILE_TEMP TYPE IBIPPARMS-PATH.
      CLEAR: WS_FILE_TEMP.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                PROGRAM_NAME  = SY-REPID
                DYNPRO_NUMBER = SY-DYNNR
                FIELD_NAME    = 'WS_FILE'
           IMPORTING
                FILE_NAME     = WS_FILE_TEMP.
      WS_FILE-LOW = WS_FILE_TEMP.
    AT SELECTION-SCREEN.
      SELECT SAPNAM FROM SOUC
          INTO TABLE IT_SAPID
          WHERE SAPNAM IN SAPID
            AND DELETED = ''.
      GV_NEXTDAY = SY-DATUM + 1.
      LOOP AT EMAILADD.
        IT_EMAIL-EMAILADD = EMAILADD-LOW.
        APPEND IT_EMAIL.
        CLEAR: IT_EMAIL.
      ENDLOOP.
      IF NOT BPROC IS INITIAL.
        CLEAR: RBUT1, RBUT3.
        RBUT2 = 'X'.
      ELSE.
        CLEAR: RBUT2.
      ENDIF.
      IF NOT RBUT3 IS INITIAL.
        REFRESH: WS_FILE.
      ENDIF.
      IF SAPID IS INITIAL AND EMAILADD IS INITIAL.
        MESSAGE E000(ZZ) WITH TEXT-201.
      ELSEIF NOT SAPID IS INITIAL AND EMAILADD IS INITIAL.
        CLEAR IT_SAPID.
        READ TABLE IT_SAPID.
        SELECT SINGLE SUBNO FROM SOSU
          INTO GV_SUBNO
          WHERE USRNO IN ( SELECT USRNO FROM SOUC
                             WHERE SAPNAM = IT_SAPID-SAPID ).
        IF SY-SUBRC NE 0.
          MESSAGE E000(ZZ) WITH TEXT-202.
        ENDIF.
        CLEAR: IT_SAPID.
      ELSEIF NOT SAPID IS INITIAL AND NOT EMAILADD IS INITIAL.
        CLEAR: IT_SAPID, IT_EMAIL.
        READ TABLE IT_SAPID.
        READ TABLE IT_EMAIL.
        SELECT SINGLE SUBNO FROM SOSU
          INTO GV_SUBNO
          WHERE USRNO IN ( SELECT USRNO FROM SOUC
                             WHERE SAPNAM = IT_SAPID-SAPID ).
        IF SY-SUBRC NE 0.
          SUBMIT RSSOADM0 WITH USRNAM EQ IT_SAPID-SAPID
                          WITH NEW_SUBS EQ IT_EMAIL-EMAILADD
                          WITH SUB_ESC EQ 'U'
                          WITH EDAT EQ SY-DATUM
                          WITH BDAT EQ SY-DATUM
                         WITH BDAT EQ GV_NEXTDAY
                         WITH EDAT EQ '99991231'
                          WITH BTIM EQ SY-UZEIT
                          WITH ETIM EQ '240000'
                          WITH FORW_ALL EQ 'X'
                          WITH PSTHR2 EQ ''
                          AND RETURN.
        ENDIF.
        CLEAR: IT_SAPID.
      ELSEIF NOT EMAILADD IS INITIAL AND SAPID IS INITIAL.
        RECFLAG = 'X'.
      ENDIF.
    START-OF-SELECTION.
        PERFORM B_SENDMAIL.
    FORM B_SENDMAIL.
      YEAR = SY-DATUM+0(4).
      LOOP AT WS_FILE.
        CLEAR: FYL.
        FYL = WS_FILE-LOW.
        REFRESH: TAB2.
        CALL FUNCTION 'WS_UPLOAD'
             EXPORTING
                  FILENAME = FYL
                  FILETYPE = 'BIN'
             TABLES
                  DATA_TAB = TAB2.
        IT_TEXTLINE[] = TAB2[].
    DOCUMENT_DATA (SUBJECT OF MAIL)
        V_DOCDATA-OBJ_NAME   = DESC.
        V_DOCDATA-OBJ_DESCR  = SUBJ.
        V_DOCDATA-OBJ_LANGU  = SY-LANGU.
        V_DOCDATA-SENSITIVTY = 'C'.
        V_DOCDATA-OBJ_PRIO   = '1'.
    BODY OF MAIL
        IT_BODY-LINE = 'Collection Report'.
        APPEND IT_BODY.
    CONTENTS_TXT (Attachments)
        IT_CONTNT[] = IT_TEXTLINE[].
        DESCRIBE TABLE IT_CONTNT LINES V_LINE.
        READ TABLE IT_CONTNT INDEX V_LINE.
    PACKING_LIST
        V_OBJPACK-DOC_SIZE = ( V_LINE - 1 ) * 255 + STRLEN( IT_CONTNT ).
        V_OBJPACK-TRANSF_BIN = 'X'.
        V_OBJPACK-HEAD_START = 1.
        V_OBJPACK-HEAD_NUM   = 0.
        V_OBJPACK-BODY_START = 1.
        V_OBJPACK-BODY_NUM   = V_LINE.
        V_OBJPACK-DOC_TYPE   = 'TXT'.
        V_OBJPACK-OBJ_NAME   = 'ATTACHMENT'.
        V_OBJPACK-OBJ_DESCR  = 'Attached Document'.
        APPEND V_OBJPACK.
        CLEAR  V_OBJPACK.
    RECEIVERS of mail
        IF RECFLAG IS INITIAL.
          LOOP AT IT_SAPID.
            IT_RECVRS-RECEIVER   = IT_SAPID-SAPID.
            IT_RECVRS-REC_TYPE   = 'B'.
            IT_RECVRS-COM_TYPE   = ''.
            IT_RECVRS-EXPRESS    = 'X'.
            IT_RECVRS-NO_FORWARD = ''.
            IT_RECVRS-NO_PRINT   = ''.
            APPEND IT_RECVRS.
            CLEAR IT_RECVRS.
          ENDLOOP.
        ELSE.
          LOOP AT EMAILADD.
            IT_RECVRS-RECEIVER   = EMAILADD-LOW.
            IT_RECVRS-REC_TYPE   = 'U'.
            IT_RECVRS-COM_TYPE   = 'INT'.
            IT_RECVRS-EXPRESS    = 'X'.
            APPEND IT_RECVRS.
            CLEAR IT_RECVRS.
          ENDLOOP.
        ENDIF.
    OBJECT_HEADER (Filename)
        CONCATENATE 'Collection Report' '_'
                     SY-DATUM+4(4) YEAR '.TXT'
                     INTO V_OBJHEAD-LINE.
       V_OBJHEAD-LINE = FYL+16(25).
        APPEND V_OBJHEAD.
        CLEAR V_OBJHEAD.
    Function Module For Sending Mail with Attachment
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
             EXPORTING
                  DOCUMENT_DATA              = V_DOCDATA
             TABLES
                  PACKING_LIST               = V_OBJPACK
                  OBJECT_HEADER              = V_OBJHEAD
                  CONTENTS_HEX               = IT_CONTNT
                  CONTENTS_TXT               = IT_BODY
                  RECEIVERS                  = IT_RECVRS
             EXCEPTIONS
                  TOO_MANY_RECEIVERS         = 1
                  DOCUMENT_NOT_SENT          = 2
                  DOCUMENT_TYPE_NOT_EXIST    = 3
                  OPERATION_NO_AUTHORIZATION = 4
                  PARAMETER_ERROR            = 5
                  X_ERROR                    = 6
                  ENQUEUE_ERROR              = 7
                  OTHERS                     = 8.
        IF SY-SUBRC = 0.
          MESSAGE S000(ZZ) WITH TEXT-005.
        ELSE.
          MESSAGE S000(ZZ) WITH TEXT-006.
        ENDIF.
      ENDLOOP.
    end of my code *
    please help me guys... when i run this program,    DOCUMENT_NOT_SENT is what i always get.. 
    waiting for ur reply... thank you vey much and godbless.

    Hi,
    Try this sample code.
    FORM SEND_TO_EMAIL USING zFName.
      DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
      DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
      DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
      DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
      DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
      DATA: DOC_CHNG LIKE SODOCCHGI1.
      DATA: TAB_LINES LIKE SY-TABIX.
      DATA: ctmp(50) TYPE C.
    Creation of the document to be sent
      DOC_CHNG-OBJ_NAME = 'JOURNAL'.
      CONCATENATE 'SAP Payroll Journal file Period' pybegda INTO ctmp
                  SEPARATED BY SPACE.
      DOC_CHNG-OBJ_DESCR = cTmp.
      OBJTXT = 'SAP Payroll Journal'.
      APPEND OBJTXT.
      CONCATENATE 'For Period' pybegda INTO ctmp
                  SEPARATED BY SPACE.
      OBJTXT = ctmp.
      APPEND OBJTXT.
      CONCATENATE 'Attached File :' zFname INTO ctmp
                  SEPARATED BY SPACE.
      OBJTXT = ctmp.
      APPEND OBJTXT.
      OBJTXT = 'Please find the attachment.'.
      APPEND OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    Creation of the entry for the compressed document
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
    Creation of the document attachment
      <b>LOOP AT xMail.
        CONDENSE xMail-aline.
        OBJBIN = xMail-aline.
        APPEND OBJBIN.
        CLEAR OBJBIN.
      ENDLOOP.</b>
      DESCRIBE TABLE OBJBIN LINES TAB_LINES.
      OBJHEAD = zFname. APPEND OBJHEAD.
    Creation of the entry for the compressed attachment
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      OBJPACK-OBJ_NAME = 'DATA'.
      OBJPACK-OBJ_DESCR = 'SAP Payroll File'.
      OBJPACK-DOC_SIZE = TAB_LINES * 255.
      APPEND OBJPACK.
    Completing the recipient list
      LOOP AT PENERIMA.
        CONDENSE PENERIMA-PNRM.
        RECLIST-RECEIVER = PENERIMA-PNRM.
        RECLIST-REC_TYPE = 'U'.
        APPEND RECLIST.
      ENDLOOP.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = DOC_CHNG
                PUT_IN_OUTBOX              = ' '
           TABLES
                PACKING_LIST               = OBJPACK
                OBJECT_HEADER              = OBJHEAD
                CONTENTS_BIN               = OBJBIN
                CONTENTS_TXT               = OBJTXT
                RECEIVERS                  = RECLIST
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                OPERATION_NO_AUTHORIZATION = 4
                OTHERS                     = 99.
      CASE SY-SUBRC.
        WHEN 0.
          WRITE: / 'Result of the send process:'.
          LOOP AT RECLIST.
            WRITE: / RECLIST-RECEIVER(48), ':'.
            IF RECLIST-RETRN_CODE = 0.
              WRITE / 'The document was sent'.
            ELSE.
              WRITE / 'The document could not be sent'.
            ENDIF.
          ENDLOOP.
        WHEN 1.
          WRITE: / 'Too many receiver'.
        WHEN 2.
          WRITE: / 'Document could not be sent to any recipient'.
        WHEN 4.
          WRITE: / 'No send authorization'.
        WHEN OTHERS.
          WRITE: / 'Error occurred while sending'.
      ENDCASE.
    ENDFORM.

  • How to add header and fooder in text file

    Hi,
    i have created simple application for generate report from database into text file.
    But i need to add header and fooder in text file. I dont know is there any API for adding these.
    Can anyone help me to create header and fooder in text file.
    the below text are needs to be print in the header
    name of the table :
    Recorder type :
    file creation time:
    the below text are needs to be print in the footer
    Recorder Number:
    Record Type;
    the actual code is
                           pst = con.prepareStatement("select REQUEST, DOMAIN_NAME, TRUNC(DATE_OF_CONFIGURATION) AS dateofConfig  FROM employee where id=300");
                               rs = pst.executeQuery();
                            while (rs.next()) {
                                 request = rs.getString("REQUEST");
                                    domain_name = rs.getString("DOMAIN_NAME");
                                    dateofconfig = rs.getString("dateofConfig");
                                    System.out.println(request + " " + domain_name + " " + dateofconfig);
                                   data.add(request + " " + domain_name + " " + dateofconfig);
                            System.out.println("before calling method");
                            writeToFile(data, "c:/Employee.txt");
                            System.out.println("file created successfull");
                            rs.close();
                            pst.close();
           private static void writeToFile(List list, String path) {
                    BufferedWriter out = null;
                    try {
                            File file = new File(path);
                            out = new BufferedWriter(new FileWriter(file, true));
                            for (Object obj : list) {
                                String s=  obj.toString(); 
                                 out.write(s);
                                    out.newLine();
                            out.close();
                    } catch (IOException e) {
    }Thanks
    Jasmin
    Edited by: user13836688 on Mar 21, 2011 4:06 AM
    Edited by: user13836688 on Mar 21, 2011 4:07 AM
    Edited by: user13836688 on Mar 21, 2011 4:08 AM

    user13836688 wrote:
    i have created simple application for generate report from database into text file.First off, when posting code, use &#91;code]...&#91;/code]. or '' tags, not '<code>'.
    But i need to add header and fooder in text file. I dont know is there any API for adding these.
    Can anyone help me to create header and fooder in text file.Well you plainly have the code to write the file contents; and furthermore your report seems to be contained in a List called 'data'. Why not just add the header and footer lines to it? I'd also suggest making 'data' a LinkedList. That way you can add the header afterwards with no performance hit, just in case the information it contains isn't available at the start of your report loop.
    Winston                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Multiple file creation

    Hi.
    I have to create multiple files for mulitiple plants entered through select-options.
    I have done this for single file but not getting the idea how to do it for multiple files.
    <u><b><b>My work:</b></b></u>
    *File creation
        CONCATENATE
                    c_path               "file path
                    c_qm                 " 'QM'
                    c_underscore         "underscore
                    c_results            " 'RESULTS'
                    c_underscore
                    s_werks              "plant
                    c_underscore
                    sy-datum+4(2)        "system date
                    sy-datum+6(2)
                    sy-datum+0(4)
                    c_underscore
                    sy-uzeit+0(2)        "system time
                    sy-uzeit+2(2)
                    c_ext                "file extension
               INTO g_file_name.
      ENDLOOP.
    Open File on the application server for processing
      OPEN DATASET g_file_name FOR OUTPUT IN TEXT MODE
      ENCODING DEFAULT.
      IF sy-subrc NE 0.
    *Display error message
        MESSAGE i055.              " Error in opening file
        LEAVE LIST-PROCESSING.
      ELSE.
        LOOP AT i_final INTO wa_final.
          TRANSFER wa_final TO g_file_name.
        ENDLOOP.
      ENDIF.
      CLOSE DATASET g_file_name.
    Then i am updating the database table using i_update
    Work Area for Z_DATADOWNLOAD table
    DATA: l_wa_update TYPE ztable
      l_wa_update-prog_name    = g_repid.
      l_wa_update-plant        = s_werks.
      l_wa_update-last_run_dt  = g_sysdate.
      l_wa_update-last_run_tm  = g_systime.
      MODIFY ztable FROM l_wa_update.
    Pls let me know how to manage this for multiple files.

    Hi Simran.
    Consider this code.
    REPORT zztest.
    TABLES : t001w.
    *Declare one Internal table for werks
    DATA :BEGIN OF it_werks OCCURS 0,
          werks TYPE t001w-werks,
          END OF it_werks.
    *Select options
    SELECT-OPTIONS : s_werks FOR t001w-werks.
    START-OF-SELECTION.
    *GEt all the plants entered in selection screen from
    *DB table <b>T001W (Plants/Branches)</b>
      SELECT werks FROM t001w INTO TABLE it_werks WHERE werks IN s_werks.
    *Loop that internal table
    <b>  LOOP AT it_werks.</b>
        CONCATENATE
        c_path "file path
        c_qm " 'QM'
        c_underscore   "underscore
        c_results      " 'RESULTS'
        c_underscore
       <b> it_werks-werks    "Plant</b>
        c_underscore
        sy-datum+4(2)    "system date
        sy-datum+6(2)
        sy-datum+0(4)
        c_underscore
        sy-uzeit+0(2)  "system time
        sy-uzeit+2(2)
        c_ext "file extension
        INTO g_file_name.
    <b>*Now you have the file path for the werks
    *Open File on the application server for processing</b>
        OPEN DATASET g_file_name FOR OUTPUT IN TEXT MODE
        ENCODING DEFAULT.
        IF sy-subrc NE 0.
    *Display error message
          MESSAGE i055. " Error in opening file
          LEAVE LIST-PROCESSING.
        ELSE.
          LOOP AT i_final INTO wa_final.
            TRANSFER wa_final TO g_file_name.
          ENDLOOP.
        ENDIF.
        CLOSE DATASET g_file_name.
    * Then i am updating the database table using i_update
    * Work Area for Z_DATADOWNLOAD table
        DATA: l_wa_update TYPE ztable
        l_wa_update-prog_name = g_repid.
        l_wa_update-plant = s_werks.
        l_wa_update-last_run_dt = g_sysdate.
        l_wa_update-last_run_tm = g_systime.
        MODIFY ztable FROM l_wa_update.
    *Pls let me know how to manage this for multiple files.
    <b>  ENDLOOP.</b>
    Regards,
    Arun Sambargi.

  • Can not print text file.

    I have a problem since I upgrade to 10.6.7. All text file, including docx, pdf, and so on, can not be printed. Only the image file can be printed correctly.
    Here is a report:
    Process: cupstomcdufr2 [7642]
    Path: /Library/Printers/Canon/UFR2/Cores/cupstomcdufr2/Contents/MacOS/cupstomcdufr2
    Identifier: cupstomcdufr2
    Version: ??? (???)
    Code Type: X86 (Native)
    Parent Process: cupsd [1557]
    Date/Time: 2011-03-24 13:14:17.686 +0900
    OS Version: Mac OS X 10.6.7 (10J869)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x000000000000003c
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread
    Thread 0 Crashed: Dispatch queue: com.apple.main-thread
    0 libSystem.B.dylib 0xffff07fc __memcpy + 92
    1 jp.co.canon.mcd.fmwk.PDFToPDL 0x03ec8017 BandOutput + 99
    2 jp.co.canon.mcd.fmwk.PDFToPDL 0x03eee814 InterpretContentsEnd1st + 372
    3 jp.co.canon.mcd.fmwk.PDFToPDL 0x03ef7bba ExecPDFInterpret_End + 26
    4 jp.co.canon.mcd.fmwk.PDFToPDL 0x03f0c9b1 zExecPDFEnd + 40
    5 jp.co.canon.mcd.fmwk.PDFToPDL 0x03f0cb62 zExecPDFStart + 147
    6 jp.co.canon.mcd.fmwk.PDFToPDL 0x03f0cbce ExecPDF + 41
    7 jp.co.canon.BDL.pdl.PDL_BDL 0x03e75ae3 ExecPDFToBDL(char*, OpaquePMTicketRef*, char*, OpaquePMContext*, PmCallBackRoutines*, unsigned long*) + 6047
    8 jp.co.canon.MCDCUPSUFR2.PMCore 0x0388a665 PrintPDFToPDL(OpaquePMContext*, OpaquePMTicketRef*) + 1041
    9 jp.co.canon.MCDCUPSUFR2.PMCore 0x0389ab3a PrintJob(OpaquePMContext*, void const*, OpaquePMTicketRef*, PMJobStreamProcs const*) + 318
    10 ...d.cups.filter.cupstomcdufr2 0x000054b3 main + 1687
    11 ...d.cups.filter.cupstomcdufr2 0x00001bde _start + 216
    12 ...d.cups.filter.cupstomcdufr2 0x00001b05 start + 41
    Thread 1: Dispatch queue: com.apple.libdispatch-manager
    0 libSystem.B.dylib 0x900d3922 kevent + 10
    1 libSystem.B.dylib 0x900d403c dispatch_mgrinvoke + 215
    2 libSystem.B.dylib 0x900d34f9 dispatch_queueinvoke + 163
    3 libSystem.B.dylib 0x900d329e dispatch_workerthread2 + 240
    4 libSystem.B.dylib 0x900d2d21 pthreadwqthread + 390
    5 libSystem.B.dylib 0x900d2b66 start_wqthread + 30
    Thread 2:
    0 libSystem.B.dylib 0x900ad0e2 semaphorewait_signaltrap + 10
    1 libSystem.B.dylib 0x900dac9c pthread_condwait + 1089
    2 libSystem.B.dylib 0x9012345f pthreadcondwait + 48
    3 jp.co.canon.MCDCUPSUFR2.PMCore 0x03891df8 ioThread(void*) + 36
    4 libSystem.B.dylib 0x900da7fd pthreadstart + 345
    5 libSystem.B.dylib 0x900da682 thread_start + 34
    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0xffff07a0 ebx: 0x03e7435b ecx: 0x0000012c edx: 0x0000000c
    edi: 0xbfffbee4 esi: 0x0000003c ebp: 0xbfffbdc8 esp: 0xbfffbdc0
    ss: 0x00000023 efl: 0x00010212 eip: 0xffff07fc cs: 0x0000001b
    ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
    cr2: 0x0000003c
    Binary Images:
    0x1000 - 0x5ff7 +jp.co.canon.mcd.cups.filter.cupstomcdufr2 2.21 (2.21) <35B8398F-FE7B-B722-41E2-98190BEDC198> /Library/Printers/Canon/UFR2/Cores/cupstomcdufr2/Contents/MacOS/cupstomcdufr2
    0xa000 - 0x45ff7 +jp.co.canon.mcd.fmwk.BDLCommonLib 2.21 (2.21) <21E3C3DB-A3E3-2BFA-1B45-050BA7A1FC06> /Library/Printers/Canon/UFR2/Frameworks/CommonLib.framework/Versions/A/CommonLi b
    0x59000 - 0x59ff7 com.apple.framework.AppleTalk 1.2.0 (???) <C7322D5D-EA09-AD03-8882-1F8EE368149F> /System/Library/Frameworks/AppleTalk.framework/Versions/A/AppleTalk
    0x71d000 - 0x721fff +jp.co.canon.BDL.INFOModule 2.21 (2.21) <9C78DCC8-743E-489C-9F05-6B3E49F22583> /Library/Printers/Canon/UFR2/Cores/INFOModule.plugin/Contents/MacOS/INFOModule
    0x3888000 - 0x38a0fff +jp.co.canon.MCDCUPSUFR2.PMCore 2.21 (2.21) <B5E470D7-8F42-3DCF-232E-E5E63538108E> /Library/Printers/Canon/UFR2/Cores/PMCore.plugin/Contents/MacOS/PMCore
    0x38a9000 - 0x38b8ffb +jp.co.canon.BDL.IOService 2.21 (2.21) <8630E9AF-2645-B4E8-2D91-B871D3A7D36D> /Library/Printers/Canon/UFR2/Cores/IOService.plugin/Contents/MacOS/IOService
    0x38c6000 - 0x38eeffb +jp.co.canon.BDL.VMs.validate 2.21 (2.21) <93976DF4-7719-E9EA-98E3-374BD4520091> /Library/Printers/Canon/UFR2/VMs/validate.plugin/Contents/MacOS/validate
    0x38fc000 - 0x390aff3 +jp.co.canon.UFR2.fmwk.UFR2Lib 2.21 (2.21) <FE46BC34-2566-39D3-00AB-47F920512E0C> /Library/Printers/Canon/UFR2/Frameworks/UFR2Lib.framework/Versions/A/UFR2Lib
    0x3915000 - 0x394cfff +jp.co.canon.BDL.control.Control_BDL 2.21 (2.21) <A4B2268F-7562-0C4D-4C89-DE8728614191> /Library/Printers/Canon/UFR2/Controls/Control.plugin/Contents/MacOS/Control
    0x395f000 - 0x3964ff3 +jp.co.canon.BDL.cad_tnl32 2.21 (2.21) <CC4A7CF9-7C16-2534-F910-7A02E6BDE4CC> /Library/Printers/Canon/UFR2/ColorAdjusts/CADTnl32.plugin/Contents/MacOS/CADTNL32
    0x398b000 - 0x3cf5ff2 +jp.co.canon.ColorGearCMM ColorGearCMM 3.1.3 (3.1.3) <F36CC606-4828-2E28-8868-6B9A33C80FCA> /Library/ColorSync/CMMs/ColorGearCMM.cmm/Contents/MacOS/ColorGearCMM
    0x3e68000 - 0x3e7cff7 +jp.co.canon.BDL.pdl.PDL_BDL 2.21 (2.21) <098A224B-0183-C775-AB2B-270DEDD51F99> /Library/Printers/Canon/UFR2/PDLs/PDL.plugin/Contents/MacOS/PDL
    0x3e84000 - 0x3f47ff7 +jp.co.canon.mcd.fmwk.PDFToPDL 2.21 (2.21) <67BC70EC-52A0-93A1-2A09-46720B082931> /Library/Printers/Canon/UFR2/Frameworks/PDFToPDL.framework/Versions/A/PDFToPDL
    0x3f8c000 - 0x3f9cffb +jp.co.canon.BDL.fmwk.PDFToPDLUtilities 2.21 (2.21) <DDD974C8-81CE-8815-0FB5-AA981A4B5E0F> /Library/Printers/Canon/UFR2/Frameworks/PDFToPDLUtilities.framework/Versions/A/ PDFToPDLUtilities
    0x3fa5000 - 0x3faefff +jp.co.canon.BDL.fmwk.SLIMlib 2.21 (2.21) /Library/Printers/Canon/UFR2/Frameworks/SLIMLib.framework/Versions/A/SLIMLib
    0x3fb5000 - 0x3fc8ffc +com.canon.EnoJBIG 2.21 (2.21) /Library/Printers/Canon/UFR2/Frameworks/EnoJBIG.framework/Versions/A/EnoJBIG
    0x3fd7000 - 0x3fdfffb +jp.co.canon.BDL.dth.dth_ccmsx 2.21 (2.21) <0BD0D7AF-22FB-0B48-2A16-396453F70016> /Library/Printers/Canon/UFR2/Dithers/DTHCCMSX.plugin/Contents/MacOS/DTHCCMSX
    0x6bc9000 - 0x6bd0fff +jp.co.canon.BDL.dth.dth_tbic2 2.21 (2.21) <3FD6BBEC-B1A8-3C57-7D49-82230E8C3488> /Library/Printers/Canon/UFR2/Dithers/DTHTBic2.plugin/Contents/MacOS/DTHTBic2
    0x6bd5000 - 0x6c30ffb +jp.co.canon.BDL.Protocol_OpenCPCA 2.21 (2.21) <CBCE8471-C486-EA9E-ECF4-A5476CBADD49> /Library/Printers/Canon/UFR2/Protocols/ProtocolOpenCPCA.plugin/Contents/MacOS/ProtocolOpenCPCA
    0x6c48000 - 0x6c4aff7 +jp.co.canon.BDL.IOM_LPR 2.21 (2.21) <CB617089-27B7-A9EF-0146-8A55CCA27141> /Library/Printers/Canon/UFR2/IOMs/LPRIOM.plugin/Contents/MacOS/LPRIOM
    0x6c50000 - 0x6c52fff +jp.co.canon.mcd.BDL.IOSControl 2.21 (2.21) <9171CAAB-6FF5-FC92-D595-F15C61C1FC07> /Library/Printers/Canon/UFR2/Controls/IOSControl.plugin/Contents/MacOS/IOSContr ol
    0x6c56000 - 0x6c57fff +jp.co.canon.BDL.Session_LPR 2.21 (2.21) <95812BCA-027F-D370-CF8C-B3618431DF89> /Library/Printers/Canon/UFR2/Sessions/SessionLPR.plugin/Contents/MacOS/SessionLPR
    0x6c5b000 - 0x6c76ff7 com.apple.OpenTransport 10.6.0 (10.6.0) <ECA6FEC6-5ECD-51BA-162F-CFC43899196A> /System/Library/PrivateFrameworks/OpenTransport.framework/OpenTransport
    0x6c87000 - 0x6c95fe7 libSimplifiedChineseConverter.dylib 49.0.0 (compatibility 1.0.0) <B408E41B-D90F-4A04-DB72-D61C8C52BFBC> /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
    0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <1C06ECD9-A2D7-BB10-AF50-0F2B598A7DEC> /usr/lib/dyld
    0x90003000 - 0x90014ff7 com.apple.LangAnalysis 1.6.6 (1.6.6) <3036AD83-4F1D-1028-54EE-54165E562650> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x90028000 - 0x9003dfff com.apple.ImageCapture 6.0.2 (6.0.2) <E9F4B952-27A1-5BFC-CA8D-DADA055D30E9> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x9003e000 - 0x90040ff7 libRadiance.dylib ??? (???) <B83179D4-E41C-D2BA-1E4C-A64CB45C15E6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x90041000 - 0x90062fe7 com.apple.opencl 12.3.6 (12.3.6) <B4104B80-1CB3-191C-AFD3-697843C6BCFF> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x900ac000 - 0x90253ff7 libSystem.B.dylib 125.2.10 (compatibility 1.0.0) <ADF8138B-2384-2FC0-CCBF-C4721B53568A> /usr/lib/libSystem.B.dylib
    0x90254000 - 0x90297ff7 com.apple.NavigationServices 3.5.4 (182) <8DC6FD4A-6C74-9C23-A4C3-715B44A8D28C> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x906c5000 - 0x90801ff7 com.apple.audio.toolbox.AudioToolbox 1.6.6 (1.6.6) <781018FB-474B-E09C-D419-5BFF80590A10> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x90802000 - 0x90805fe7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
    0x90949000 - 0x90cb4ff7 com.apple.QuartzCore 1.6.3 (227.36) <8E927524-EB0A-D5BA-C2E4-FA26FE4C428A> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x90cd3000 - 0x90d7bffb com.apple.QD 3.36 (???) <FA2785A4-BB69-DCB4-3BA3-7C89A82CAB41> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x90d7c000 - 0x90d81ff7 com.apple.OpenDirectory 10.6 (10.6) <0603680A-A002-D294-DE83-0D028C6BE884> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x90f5f000 - 0x90ff7fe7 edu.mit.Kerberos 6.5.11 (6.5.11) <F36DB665-A88B-7F5B-6244-6A2E7FFFF668> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x91125000 - 0x91128ff7 libCoreVMClient.dylib ??? (???) <12EF6056-7AC7-6691-75A2-BD0675C56A35> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClien t.dylib
    0x91129000 - 0x9153fff7 libBLAS.dylib 219.0.0 (compatibility 1.0.0) <C4FB303A-DB4D-F9E8-181C-129585E59603> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x92494000 - 0x924e4ff7 com.apple.framework.familycontrols 2.0.2 (2020) <C96C8A99-A40C-8B9C-1FBA-A0F46AC92F17> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyCon trols
    0x924e5000 - 0x924e9ff7 IOSurface ??? (???) <F9E6DFC1-8DD9-7C7E-CA85-B80735586E05> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x924ea000 - 0x925f6ff7 libGLProgrammability.dylib ??? (???) <2D172B4E-432F-D18E-EA99-3BD56DBE7649> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
    0x925f7000 - 0x92661fe7 libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
    0x92662000 - 0x926a4ff7 libvDSP.dylib 268.0.1 (compatibility 1.0.0) <8A4721DE-25C4-C8AA-EA90-9DA7812E3EBA> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x92725000 - 0x92737ff7 com.apple.MultitouchSupport.framework 207.10 (207.10) <D4BA36E6-3B6F-2796-0758-8473600CBF5B> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/Multit ouchSupport
    0x92738000 - 0x92785feb com.apple.DirectoryService.PasswordServerFramework 6.1 (6.1) <136BFA48-D456-B677-3B5D-40A6946C3A09> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordS erver
    0x927b9000 - 0x9280aff7 com.apple.HIServices 1.8.2 (???) <63B29FF5-7077-8317-E710-2D94ADF7B499> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x9280b000 - 0x928c2feb libFontParser.dylib ??? (???) <DDBBB503-5289-2E2B-AD35-F3BA00D00D5F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x92904000 - 0x9291cff7 com.apple.CFOpenDirectory 10.6 (10.6) <D1CF5881-0AF7-D164-4156-9E9067B7FA37> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpen Directory.framework/Versions/A/CFOpenDirectory
    0x9291f000 - 0x9293bfe3 com.apple.openscripting 1.3.1 (???) <2A748037-D1C0-6D47-2C4A-0562AF799AC9> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x9293c000 - 0x92946ffb com.apple.speech.recognition.framework 3.11.1 (3.11.1) <7486003F-8FDB-BD6C-CB34-DE45315BD82C> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92947000 - 0x92a00fe7 libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <52438E77-55D1-C231-1936-76F1369518E4> /usr/lib/libsqlite3.dylib
    0x92a01000 - 0x92a9cff7 com.apple.ApplicationServices.ATS 4.4 (???) <FD63F92B-8DDE-4DBA-A7A5-0294E3607083> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x92c0c000 - 0x92c27ff7 libPng.dylib ??? (???) <65E824F7-523A-CC34-ABDD-2A3B12DE1CA9> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x92c41000 - 0x92cb0ff7 libvMisc.dylib 268.0.1 (compatibility 1.0.0) <595A5539-9F54-63E6-7AAC-C04E1574B050> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x92d5b000 - 0x92d6ffe7 libbsm.0.dylib ??? (???) <14CB053A-7C47-96DA-E415-0906BA1B78C9> /usr/lib/libbsm.0.dylib
    0x92f83000 - 0x92f83ff7 liblangid.dylib ??? (???) <B99607FC-5646-32C8-2C16-AFB5EA9097C2> /usr/lib/liblangid.dylib
    0x92f84000 - 0x92fa6fef com.apple.DirectoryService.Framework 3.6 (621.11) <CA979EAC-9537-43B6-CD69-C144ACB75E09> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x92ff5000 - 0x93028ff7 com.apple.AE 496.4 (496.4) <C73D124C-C722-41D8-3465-4CE0D0BA9307> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x9330a000 - 0x9330aff7 com.apple.Accelerate 1.6 (Accelerate 1.6) <3891A689-4F38-FACD-38B2-4BF937DE30CF> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x9330b000 - 0x93311fff com.apple.CommonPanels 1.2.4 (91) <2438AF5D-067B-B9FD-1248-2C9987F360BA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x93312000 - 0x93577feb com.apple.security 6.1.1 (37594) <251BA05D-6F3D-F687-77C2-15E52539F308> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x93578000 - 0x939adff7 libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <5E2D2283-57DE-9A49-1DB0-CD027FEFA6C2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x939ae000 - 0x93a79fef com.apple.CoreServices.OSServices 359 (359) <EC340F74-8192-C9DD-40B3-AE4E519A38D7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x93a8a000 - 0x93aa9ff7 com.apple.CoreVideo 1.6.2 (45.6) <EB53CAA4-5EE2-C356-A954-5775F7DDD493> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x93aab000 - 0x93aabff7 com.apple.vecLib 3.6 (vecLib 3.6) <FF4DC8B6-0AB0-DEE8-ADA8-7B57645A1F36> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x93aac000 - 0x93af0ff3 com.apple.coreui 2 (114) <2234855E-3BED-717F-0BFA-D1A289ECDBDA> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x93af1000 - 0x93b2aff7 libcups.2.dylib 2.8.0 (compatibility 2.0.0) <90C5DE81-1BEF-D807-A898-0FC19BDD14EC> /usr/lib/libcups.2.dylib
    0x93b2b000 - 0x93b2bff7 com.apple.ApplicationServices 38 (38) <8012B504-3D83-BFBB-DA65-065E061CFE03> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x93b2c000 - 0x93bbefe7 com.apple.print.framework.PrintCore 6.3 (312.7) <7410D1B2-655D-68DA-D4B9-2C65747B6817> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x93bd9000 - 0x93d5bfe7 libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <D375C1CF-C88D-C5F6-3C49-CD429023FBAC> /usr/lib/libicucore.A.dylib
    0x93d91000 - 0x940b1ff3 com.apple.CoreServices.CarbonCore 861.34 (861.34) <3DA9098F-B71B-4BDE-5DE5-4B76C49158EB> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x940d1000 - 0x940f5ff7 libJPEG.dylib ??? (???) <A50127EB-C202-0436-E62D-41E2E893E436> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x940f6000 - 0x9415affb com.apple.htmlrendering 72 (1.1.4) <4D451A35-FAB6-1288-71F6-F24A4B6E2371> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x94204000 - 0x94218ffb com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <57DD5458-4F24-DA7D-0927-C3321A65D743> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x94362000 - 0x9451cfeb com.apple.ImageIO.framework 3.0.4 (3.0.4) <C96F11A7-2569-3037-C4C3-0342708FA3CB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x9457d000 - 0x94657ffb com.apple.DesktopServices 1.5.10 (1.5.10) <2BA08DD4-35A2-A0FF-ADEA-B381F0CEEB81> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x94658000 - 0x9465cff7 libGIF.dylib ??? (???) <447BC6E8-4C56-3D5D-983B-6BEA0D26F319> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x94869000 - 0x948e9feb com.apple.SearchKit 1.3.0 (1.3.0) <9E18AEA5-F4B4-8BE5-EEA9-818FC4F46FD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x948ea000 - 0x94b5dfe7 com.apple.Foundation 6.6.6 (751.53) <C73FDD37-000B-C505-FD8D-80D1C9D17965> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x94b75000 - 0x94b95fe7 libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <BF7FF2F6-5FD3-D78F-77BC-9E2CB2A5E309> /usr/lib/libresolv.9.dylib
    0x94fa5000 - 0x94fa8ffb com.apple.help 1.3.1 (41) <67F1F424-3983-7A2A-EC21-867BE838E90B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x94fa9000 - 0x95056fe7 libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <C8925910-B927-968B-4B71-D83A4CEF8646> /usr/lib/libobjc.A.dylib
    0x951e1000 - 0x95212ff7 libGLImage.dylib ??? (???) <1AF72191-087A-5D75-B3B9-3F537315F635> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x95213000 - 0x95214ff7 com.apple.audio.units.AudioUnit 1.6.6 (1.6.6) <253E9552-5CEA-0D5A-1EDA-3B8F669B79EA> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x95263000 - 0x953defe7 com.apple.CoreFoundation 6.6.4 (550.42) <C78D5079-663E-9734-7AFA-6CE79A0539F1> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x953df000 - 0x953edfe7 libz.1.dylib 1.2.3 (compatibility 1.0.0) <33C1B260-ED05-945D-FC33-EF56EC791E2E> /usr/lib/libz.1.dylib
    0x9546a000 - 0x9546aff7 com.apple.Cocoa 6.6 (???) <EA27B428-5904-B00B-397A-185588698BCC> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x9546b000 - 0x95477ff7 libkxld.dylib ??? (???) <585F0A91-EFB8-E066-BDFB-4AFF37A8C323> /usr/lib/system/libkxld.dylib
    0x954ec000 - 0x954f0ff7 libGFXShared.dylib ??? (???) <4F2199F0-320F-0B59-0380-D3131D644CBA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.d ylib
    0x954f1000 - 0x9558efe3 com.apple.LaunchServices 362.2 (362.2) <77B97C8B-321D-46A2-1DB5-388E45DFBC9F> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
    0x9558f000 - 0x95611ffb SecurityFoundation ??? (???) <BFE377A4-C830-3ECA-E69F-8A8094CDA0A6> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x95698000 - 0x957c6fe7 com.apple.CoreData 102.1 (251) <87FE6861-F2D6-773D-ED45-345272E56463> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x959cb000 - 0x959d9ff7 com.apple.opengl 1.6.12 (1.6.12) <81AEF74E-E33A-B021-9CDB-6199104105FF> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x95fbb000 - 0x962dffef com.apple.HIToolbox 1.6.5 (???) <21164164-41CE-61DE-C567-32E89755CB34> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x962e0000 - 0x963e1fe7 libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <C75F921C-F027-6372-A0A1-EDB8A6234331> /usr/lib/libxml2.2.dylib
    0x966dc000 - 0x966e2fe7 com.apple.CommerceCore 1.0 (9) <928FCA4F-1366-AE18-CF67-87C79F5DAC21> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/C ommerceCore.framework/Versions/A/CommerceCore
    0x966e3000 - 0x967e7fe7 libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <BDEFA030-5E75-7C47-2904-85AB16937F45> /usr/lib/libcrypto.0.9.8.dylib
    0x967e8000 - 0x967efff3 com.apple.print.framework.Print 6.1 (237.1) <F5AAE53D-5530-9004-A9E3-2C1690C5328E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x96960000 - 0x96988ff7 libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <769EF4B2-C1AD-73D5-AAAD-1564DAEA77AF> /usr/lib/libxslt.1.dylib
    0x96989000 - 0x969e6ff7 com.apple.framework.IOKit 2.0 (???) <A769737F-E0D6-FB06-29B4-915CF4F43420> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x969e7000 - 0x96a30fe7 libTIFF.dylib ??? (???) <5CE284EC-F637-EDBB-FDB3-61E86407CBB8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x96a31000 - 0x96a77ff7 libauto.dylib ??? (???) <29422A70-87CF-10E2-CE59-FEE1234CFAAE> /usr/lib/libauto.dylib
    0x96a8e000 - 0x96b6efe7 com.apple.vImage 4.1 (4.1) <D029C515-08E1-93A6-3705-DD062A3A672C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x96bf2000 - 0x96bffff7 com.apple.NetFS 3.2.2 (3.2.2) <DDC9C397-C35F-8D7A-BB24-3D1B42FA5FAB> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x97038000 - 0x9707bff7 libGLU.dylib ??? (???) <2C7B2727-26F6-F29D-9D15-33044E87359F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x9707c000 - 0x97375fef com.apple.QuickTime 7.6.6 (1756.15) <C2567783-4EAC-6803-522B-D701B95C4DAE> /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x973b9000 - 0x973bbff7 com.apple.securityhi 4.0 (36638) <FC01BFC4-04DB-96F3-2412-A86CC4F94CB2> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x973bc000 - 0x9741dfe7 com.apple.CoreText 3.151.8 (???) <6F5D6C49-4693-B9B7-6612-832E8F155747> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x9741e000 - 0x974ccff3 com.apple.ink.framework 1.3.3 (107) <233A981E-A2F9-56FB-8BDE-C2DEC3F20784> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x97526000 - 0x97526ff7 com.apple.CoreServices 44 (44) <51CFA89A-33DB-90ED-26A8-67D461718A4A> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x97527000 - 0x975d1fe7 com.apple.CFNetwork 454.11.12 (454.11.12) <BE832CCE-B692-F55F-F5F8-3973649AFEA1> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x97609000 - 0x9762fffb com.apple.DictionaryServices 1.1.2 (1.1.2) <43E1D565-6E01-3681-F2E5-72AE4C3A097A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
    0x97732000 - 0x97732ff7 com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <ABF97DA4-3BDF-6FFD-6239-B023CA1F7974> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x9819c000 - 0x981a7ff7 libGL.dylib ??? (???) <4425B9AA-B494-A336-EABB-6BBC9FF4EC4F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x981b6000 - 0x98287fe3 ColorSyncDeprecated.dylib 4.6.0 (compatibility 1.0.0) <41417F73-42C5-FFC3-E7A1-EF94602CDCD6> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.f ramework/Versions/A/Resources/ColorSyncDeprecated.dylib
    0x9830d000 - 0x98316ff7 com.apple.DiskArbitration 2.3 (2.3) <E9C40767-DA6A-6CCB-8B00-2D5706753000> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x98317000 - 0x98bf7ff7 com.apple.AppKit 6.6.7 (1038.35) <ABC7783C-E4D5-B848-BED6-99451D94D120> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x98de1000 - 0x98de1ff7 com.apple.Carbon 150 (152) <BFDDA394-0F01-A3A3-A226-ED3A45975A56> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x98e37000 - 0x98e74ff7 com.apple.SystemConfiguration 1.10.5 (1.10.2) <362DF639-6E5F-9371-9B99-81C581A8EE41> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x98e75000 - 0x98e7ffe7 com.apple.audio.SoundManager 3.9.3 (3.9.3) <5F494955-7290-2D91-DA94-44B590191771> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x98ec1000 - 0x98f3bfff com.apple.audio.CoreAudio 3.2.6 (3.2.6) <D7B75C1C-1D52-19B6-2801-2F9D9911681F> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x98f66000 - 0x99022fff com.apple.ColorSync 4.6.6 (4.6.6) <D00B95AE-2379-CB8E-B18C-FF5B66741C23> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x9912b000 - 0x9991a557 com.apple.CoreGraphics 1.545.0 (???) <8A4CB0D9-1001-0F62-4DA4-B8AB3B45E226> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x9991b000 - 0x9995ffe7 com.apple.Metadata 10.6.3 (507.15) <74F05E64-2A68-BA10-CCD4-128D164E5A0F> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x99960000 - 0x99970ff7 libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <C8744EA3-0AB7-CD03-E639-C4F2B910BE5D> /usr/lib/libsasl2.2.dylib
    0x99ac9000 - 0x99acaff7 com.apple.TrustEvaluationAgent 1.1 (1) <2D970A9B-77E8-EDC0-BEC6-7580D78B2843> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
    0xffff0000 - 0xffff1fff libSystem.B.dylib ??? (???) <ADF8138B-2384-2FC0-CCBF-C4721B53568A> /usr/lib/libSystem.B.dylib
    E [24/Mar/2011:13:18:56 +0900] [Job 9]
    E [24/Mar/2011:13:18:56 +0900] [Job 9] Job stopped due to filter errors; please consult the error_log file for details.
    D [24/Mar/2011:13:18:56 +0900] [Job 9] The following messages were recorded from 13:18:55 to 13:18:56
    D [24/Mar/2011:13:18:56 +0900] [Job 9] Adding start banner page "none".
    D [24/Mar/2011:13:18:56 +0900] [Job 9] Queued on "PXS_OFFICE" by "zz".
    D [24/Mar/2011:13:18:56 +0900] [Job 9] File of type application/pdf queued by "zz".
    D [24/Mar/2011:13:18:56 +0900] [Job 9] Setting job-hold-until to no-hold
    D [24/Mar/2011:13:18:56 +0900] [Job 9] Adding end banner page "none".
    D [24/Mar/2011:13:18:56 +0900] [Job 9] Job released by user.
    D [24/Mar/2011:13:18:56 +0900] [Job 9] job-sheets=none,none
    D [24/Mar/2011:13:18:56 +0900] [Job 9] argv[0]="PXS_OFFICE"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] argv[1]="9"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] argv[2]="zz"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] argv[3]="勤務時間記録簿"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] argv[4]="1"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] argv[5]="APColorMatchingMode=APApplicationColorMatching BindEdge=Left brightness=100 CNPdlWrapperDebugMode=0 CNBindEdgeShift=0 CNBrightness=6 noCNCADMode CNCalibrate CNColorantDensity=9 CNColorHalftone=pattern3 CNColorMode=color CNContrast=6 CNCopies=1 noCNDraftMode CNDuplex=DuplexFront noCNDuplexFixMode CNGamma=1.4 CNGradation=High1 CNGraphicsAdjustment CNGraphicsMatchingMethod=Monitor CNGraphicsMode=VectorMode CNGraphicsMonitorProfile=sRGBv1.31(Canon) CNGraphicsMonitorProfile_Dummy=sRGBv1.31(Canon) CNHalftone=pattern1 noCNHardDisk CNImageAdjustment CNImageMatchingMethod=Photographic CNImageMonitorProfile=sRGBv1.31(Canon) CNImageMonitorProfile_Dummy=sRGBv1.31(Canon) CNImageSpecialProcess=None CNInSlotAMediaType=PlainPaper CNInSlotBMediaType=PlainPaper CNInSlotCMediaType=PlainPaper CNInSlotDMediaType=PlainPaper CNInSlotManMediaType=PlainPaper CNJobExecMode=print CNKeepGray=None CNLANG=ja CNLastPagePrintMode=None CNMatchingMethod=Photographic CNMatchingMode=Driver CNMonitorProfile=sRGBv1.31(Canon) CNMonitorProfile_Dummy=sRGBv1.31(Canon) CNPDEUserName=emhhbmcgemhl noCNPrintOtherSide CNPrintSetting..b. noCNProcessColorMode CNQueueDescription=PXS\ OFFICE noCNRotatePrint noCNShiftStartPrintPosition noCNSpecialFineLineProcess CNSpecID=0100 CNSrcOption=None CNSystemEncoding=25 CNTextAdjustment CNTextMatchingMethod=Saturation CNTextMonitorProfile=sRGBv1.31(Canon) CNTextMonitorProfile_Dummy=sRGBv1.31(Canon) CNTotalMemSize=131072 CNTypeWing CNUseColorantDensity=None CNXColorAdjustment=6 CNYColorAdjustment=6 collate com.apple.print.DocumentTicket.PMSpoolFormat=application/pdf com.apple.print.JobInfo.PMApplicationName=Preview com.apple.print.JobInfo.PMJobName=勤務時間記録簿 com.apple.print.JobInfo.PMJobOwner=zhang\ zhe com.apple.print.PageToPaperMappingMediaName=A4 com.apple.print.PageToPaperMappingType..n.=1 com.apple.print.PrinterInfo.PMColorDeviceID..n.=4067 com.apple.print.PrintSettings.PMColorSpaceModel..n.=2 com.apple.print.PrintSettings.PMColorSyncProfileID..n.=836 com.apple.print.PrintSettings.PMCopies..n.=1 com.apple.print.PrintSettings.PMCopyCollate..b. com.apple.print.PrintSettings.PMDestinationType..n.=1 com.apple.print.PrintSettings.PMFirstPage..n.=1 com.apple.print.PrintSettings.PMLastPage..n.=2147483647 com.apple.print.PrintSettings.PMPageRange..a.0..n.=1 com.apple.print.PrintSettings.PMPageRange..a.1..n.=2147483647 DestinationPrinterID=PXS_OFFICE Filter=None gamma=1000 InputSlot=Auto media=A4 MediaType=PlainPaper number-up=1 PageSize=A4 PaperInfoIsSuggested..b. noPDFIsProtected..b. pserrorhandler-requested=standard Resolution=600 job-uuid=urn:uuid:0dffa3f3-eda2-34d5-436e-6606043c697b job-originating-host-name=localhost time-at-creation=1300940335 time-at-processing=1300940335 job-impressions=2 com.apple.print.PrintSettings.PMTotalSidesImaged..n.=2 com.apple.print.PrintSettings.PMTotalBeginPages..n.=2"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] argv[6]="/private/var/spool/cups/d00009-001"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[0]="<CFProcessPath>"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[1]="CUPS_CACHEDIR=/private/var/spool/cups/cache"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[2]="CUPS_DATADIR=/usr/share/cups"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[3]="CUPS_DOCROOT=/usr/share/doc/cups"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[4]="CUPS_FONTPATH=/usr/share/cups/fonts"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[5]="CUPS_REQUESTROOT=/private/var/spool/cups"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[6]="CUPS_SERVERBIN=/usr/libexec/cups"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[7]="CUPS_SERVERROOT=/private/etc/cups"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[8]="CUPS_STATEDIR=/private/etc/cups"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[9]="HOME=/private/var/spool/cups/tmp"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[10]="PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[11]="[email protected]"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[12]="SOFTWARE=CUPS/1.4.6"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[13]="TMPDIR=/private/var/spool/cups/tmp"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[14]="USER=root"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[15]="CUPS_SERVER=/private/var/run/cupsd"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[16]="CUPS_ENCRYPTION=IfRequested"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[17]="IPP_PORT=631"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[18]="CHARSET=utf-8"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[19]="LANG=zh_CN.UTF-8"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[20]="APPLE_LANGUAGE=zh-Hans"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[21]="PPD=/private/etc/cups/ppd/PXS_OFFICE.ppd"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[22]="RIPMAXCACHE=8m"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[23]="CONTENT_TYPE=application/pdf"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[24]="DEVICEURI=cntdbmu://MCD_UFR2_LPR/PXSOFFICE/lpd://172.18.113.14/"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[25]="PRINTER_INFO=PXS OFFICE"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[26]="PRINTER_LOCATION="
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[27]="PRINTER=PXS_OFFICE"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[28]="CUPS_FILETYPE=document"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] envp[29]="FINALCONTENT_TYPE=printer/PXSOFFICE"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] Started filter /Library/Printers/Canon/UFR2/Cores/cupstomcdufr2/Contents/MacOS/cupstomcdufr2 (PID 7763)
    D [24/Mar/2011:13:18:56 +0900] [Job 9] Started backend /usr/libexec/cups/backend/cntdbmu (PID 7764)
    D [24/Mar/2011:13:18:56 +0900] [Job 9] Thu Mar 24 13:18:55 mzhang.local PXS_OFFICE[7763] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    D [24/Mar/2011:13:18:56 +0900] [Job 9] ÉWÉáÉuÇèàóùíÜ
    D [24/Mar/2011:13:18:56 +0900] [Job 9] End of messages
    D [24/Mar/2011:13:18:56 +0900] [Job 9] printer-state=3(idle)
    D [24/Mar/2011:13:18:56 +0900] [Job 9] printer-state-message="/Library/Printers/Canon/UFR2/Cores/cupstomcdufr2/Content s/MacOS/cupstomcdufr2 failed"
    D [24/Mar/2011:13:18:56 +0900] [Job 9] printer-state-reasons=none

    Hi,
    i am not using 10.6.7. But try to reset the printing system.
    01. go to system preference --> Print
    02. Press the control button and Click the printer (This will pop another window)
    03. reset the printing system. (this is common system to fix printing issues, but i am not sure if this works with 10.6.7, but try !)
    if this not working, perhaps you need to update your printing driver
    Mac mini 10.6.6
    LH
    ACSP 10.6 /10.5

  • FM????? Text file to Internal table in Background

    Hi,
    I need to execute my prog in background and as per my req i need to dwnload a file from prsentation server to internal table for processing. I'm not sure whch FM to use to dwnload from text file to internal table. I cannot use GUI_UPLOAD FM for background runs.....pls help
    Thanks in advance

    Chesat,
    You can not work for this requirement.You will have an idea on it.
    Introduction
    The use of FTP from ABAP seems to have been a hot topic on the ABAP Forums of late. I thought I might sit down and document whatever I could find on this subject and share it as a weblog.
    Over the years I have seen lots of different solutions for moving files on and off of a SAP system. I have seen external FTP scripts written in OS shell languages. I have seen full blown custom applications that are made to interface to the SAP system. However I think you will find that most of the technology you need to perform a simple FTP from ABAP is already contained in the standard system. All of my examples and screen shots will be coming from a 46C system.
    SAP's Solution
    If you have ever taken a look at the kernel directory of your SAP system, you might have noticed an interesting little executable: sapftp.exe (the name of the file on Windows SAP Kernels). It is this part of the Kernel that exposes FTP functionality to the ABAP Programming language.
    So you have a suspicion that there is FTP functionality in ABAP, but you’re not quite sure how to use it. Where do you start? I always turn to the Service Marketplace first. A quick search on SAPFTP reveals there is an entire component (BC-SRV-COM-FTP) on the subject. The most general note and our starting place is OSS Note 93042. This note starts off with a nice description of what SAPFTP is: A client RFC application that is accessed via RFC from ABAP. But we also find out that in addition to SAPFTP being part of the kernel, it is also part of the SAPGui. That means that we can perform FTP commands originating from our R/3 Server or from a Client Workstation.
    Well if this solution is accessed via RFC, then we must have to setup some RFC destinations. In fact we have two that we need; SAPFTP for Front-end FTP and SAPFTPA for access on the application server. Luckily we don't even have to mess with setting these RFC destinations up in SM59. SAP has supplied a program, RSFTP005, to generate the destinations for us.
    Now before we go off and start written code on our own to hit these FTP functions, why don't we make sure everything is setup and working. Once again SAP has helped us out by providing us with a test program, RSFTP002. (In case you are wondering the FTP functionality and many other test programs are all contained in SAP Development Class SFTP). When we run this test, we get a set input parameters for the server, username password, etc. We want to start out simple and just make sure we are getting a connection. Therefore we will just execute the pwd command (Print Working Directory).
    Your answer back should look something like this:
    If you are wanting to see a list of FTP commands, try using the command HELP in place of PWD:
    If something did go wrong during the test, I suggest that you active the trace option in SM59 for the FTP Destination. You can then use program RSFTP001 to display the current trace file.
    Programming the FTP
    Not only does the RSFTP002 program give us a test environment, but it also provides us with a programming example. We can see that the FTP functionality is really provided by a set of function modules all within the SFTP Function Group. We have the basic commands such as FTP_CONNECT, FTP_COMMAND, and FTP_DISCONNECT that can be strung together to create a complete file operation action. The FTP_COMMAND Function allows you to issue arbitrary FTP commands as long as the SAPFTP function, the Host, and the Destination server all support the command. Then you have the specialized functions such as FTP_R3_TO_SERVER, FTP_R3_TO_CLIENT, and FTP_CLIENT_TO_R3. This lets you take some data in memory and transfer it someplace else. This has the advantage of not having to write the data to the file system first and not to have to issue any FTP commands. However these functions are also limited to the scope described.
    If you are already familiar with FTP in general, working with these function modules should not seem to difficult. The Connect, Command, Disconnect actions would seem somewhat self explanatory. So instead of looking at the entire program in detail let's focus on two things that may be unfamiliar. First the program starts off with an ABAP Kernel System call to AB_RFC_X_SCRAMBLE_STRING. Well we don't want to pass a potentially sensitive password openly. Therefore the FTP_CONNECT function module requires that the password be encrypted before it receives it. It is this System call that performs that one-way encryption. Now I checked a 620 SP42 system and in this example, SAP has replace the AB_RFC_X_SCRAMBLE_STRING with a function call to HTTP_SCRAMBLE. Unfortunately HTTP_SCRAMBLE doesn't even exist in my 46C system. The only other thing that I wanted to point out about these function calls is the exporting parameter on the FTP_CONNECT. It passes back a parameter called handle. This handle then becomes an importing parameter to all subsequent calls: FTP_COMMAND and FTP_CLOSE. This handle is the pointer to the instance of FTP that we started with the FTP_CONNECT. This assures that we get reconnected to the same FTP session with each command we issue.
    FTP Development
    I thought I would share a few of the things that can be built using this FTP functionality. First off I didn't want a bunch of ABAP programs directly working with the SAP FTP Function modules. As you can see there is already a difference in the examples for encrypting the password between 46C and 620. Therefore I thought it would be best to encapsulate all the FTP function in one custom ABAP OO Class. Not only did I get the opportunity to hid the inner SAP functionality and make it easy to switch out during upgrades, but I also get consistent error handling as well. I accept the User Name, Password, Host, and RFC Destination in during the Constructor of the class. I then store these values away in Protected Attributes. Each function module is then implemented as a Instance Method. The Password encryption functionality is then all tucked away nicely in the class. Also the calling program doesn't have to worry about keeping track of the FTP handle either since it is an instance attribute as well.
    Next I got really carried away. I wanted a way to record entire FTP scripts that could be filled with values at runtime and ran as a step in a background job. My company used to have many interfaces that ran frequently sending files all over the place. We needed a mechanism to monitor and support these file moves. This was really the root of this tool, but it also gives you an idea of how powerful these functions can be.
    Closing
    I hope that anyone interested in FTP from ABAP will find this resource useful. If anyone has any other resources that should be included here, feel free to post them.
    Thomas Jung is an Application Developer for Kimball Electronics Group (www.kegroup.com) and a huge fan of ABAP.
    Comment on this weblog
    Showing messages 1 through 7 of 7.
    Titles Only
    Main Topics
    Oldest First
         New to SAP/ABAP-4
    2005-02-24 13:03:06 Thomas Godfrey Business Card [Reply]
    I've been in IT for over 30 years as a mainframe contract programmer/analyst. Recently a company hired me for my legacy knowledge of there business to become a developer on SAP for these same systems.
    My first task is to develop a generalized ftp application to send data to the mainframe and then on to financial institutions. I have created an ABAP/4 test program with literals for the dest/host etc. And it works fine. I need more detail/guidance in creating the Class/Method/Function you have described to make this parameter driven and callable by other programs. I know this is a lot to ask, any help in pointing me in the right direction would be greatly appreciated. When I mention class creation to the existing staff they all say "Oh, we don't use or know anything about that object oriented stuff, we just right programs."
    Thanks,
    Tom
         New to SAP/ABAP-4
    2005-02-24 13:13:33 Thomas Jung Business Card [Reply]
    "we don't use or know anything about that object oriented stuff" That's something I might have expected to hear 4 years ago. That's kind of like saying that you only want to use half of the programming lanuage (the old half at that).
    However it is true that you have to learn to walk before you run. There are some fundamentals to ABAP that are usefull to have down before you start in with ABAP OO. But I wouldn't let that hold you back for long.
    I'm afraid that I wouldn't be able to teach you everything you would need to know to create a function module or a class in this posting. There was a nice weblog that was just posted the other day that had the steps to create your first simple class. I suggest you start there.
    As far as my FTP class goes, I don't mind sending you the code for the class. My email address is already all over SDN (and spammers' lists) so just send me the address that you want the details sent to. My email is [email protected].
         New to SAP/ABAP-4
    2005-02-24 13:05:42 Thomas Godfrey Business Card [Reply]
    I just read what I typed, I meant "write programs" not "right programs" ... duh
         Good suggestions - now...
    2004-11-24 09:15:27 Jacques Claassen Business Card [Reply]
    ...any chance you've used FTP via an HTTP proxy?
    Any help using the HTTP* functions in the ZFTP function group will be greatly appreciated. Any one?
    Thx
         Good suggestions - now...
    2004-11-24 09:59:11 Thomas Jung Business Card [Reply]
    I'm afraid I haven't done either. However I have used the HTTP client functionality in the WebAS 620 (if_http_client) along with an HTTP proxy. I have an example of this in another weblog.
         Pretty insightful
    2004-11-15 19:27:26 Subramanian Venkateswaran Business Card [Reply]
    Thanks for this weblog, and I can be pretty sure there are some(many) more weblogs in the waiting.
    Regards,
    Subramanian V.
         I have been using a local include ...
    2004-11-15 16:29:39 Swapan Sarkar Business Card [Reply]
    On the other hand I have been using a local include of ZCL_FTP_BASE in my programs for some time. Here's the signature:
    <quote>
    *& Include ZHR9_FTP_CLASSES
    *& Utility class ZCL_FTP_BASE having all the
    functions to upload and download files from an
    FTP server.
    CLASS zcl_ftp_base DEFINITION.
    PUBLIC SECTION.
    Output file type
    TYPES: BEGIN OF t_scratch,
    data(1024) TYPE c,
    END OF t_scratch,
    t_str_tab TYPE STANDARD TABLE OF t_scratch.
    CONSTANTS: co_crlf(2) TYPE x VALUE '0D0A'.
    DATA: status TYPE c VALUE space.
    METHODS: constructor IMPORTING im_user TYPE string im_pwd TYPE string
    im_server TYPE string,
    send_table_data IMPORTING im_file TYPE string
    im_table TYPE t_str_tab,
    get_table_data IMPORTING im_file TYPE string
    EXPORTING ex_table TYPE t_str_tab,
    send_string_data IMPORTING im_file TYPE string
    im_string TYPE string,
    get_string_data IMPORTING im_file TYPE string
    EXPORTING ex_string TYPE string,
    disconnect.
    PRIVATE SECTION.
    DATA: v_user(64) TYPE c,
    v_pwd_clear(30) TYPE c,
    v_pwd(64) TYPE c,
    v_server(30) TYPE c,
    v_filename TYPE rlgrap-filename,
    v_handle TYPE i.
    METHODS: pwd_scramble IMPORTING im_pwd TYPE c.
    ENDCLASS. "ZCL_FTP_BASE DEFINITION
    </quote>
    Showing messages 1 through 7 of 7.
    Pls. mark if this doc. is useful

  • Help needed sorting a text file.

    I'm trying to simply open a file, which is a text file of a list of names, then sort that file, the print the sorted file. The problem is that I keep getting this error
    Exception in thread "main" java.util.NoSuchElementException: No line found
         at java.util.Scanner.nextLine(Unknown Source)
         at pro.NamesFile.main(NamesFile.java:36)
    Which is at this line[b] words= new String(inputFile.nextLine());
    It's not reading any lines from the file and I can't figure out why.
    Here's the rest of my code:
    public class NamesFile {
         public static void main(String[] args) throws FileNotFoundException {
              Scanner inputFile;
            inputFile = new Scanner(new File("C:/Documents and Settings/Cougar/Desktop/New Folder (2)/names.txt"));
            String name;
            inputFile.next();
            String[] words = new String[100];
            while (inputFile.hasNext()) {
                 name = inputFile.nextLine();     
                 for (int i = 0; i < words.length; i++) {
                      words[i] = new String(inputFile.nextLine());
            Sort2.insertionSort(words);
                 for (int index=0; index < words.length; index++)
                    System.out.print(words[index].toString()+"\t");
    }Here the sort algoritm I'm using, it the insertion sort one.
    public static void selectionSort (String[] list)
               int min;
               String temp;
               for (int index = 0; index < list.length-1; index++)
                  min = index;
                  for (int scan = index+1; scan < list.length; scan++)
                     if (list[scan].compareTo(list[min]) < 0)
                        min = scan;
                  // Swap the values
                  temp = list[min];
                  list[min] = list[index];
                  list[index] = temp;
            public static void insertionSort (String[] list)
               for (int index = 1; index < list.length; index++)
                    String key = list[index];
                  int position = index;
                  //  Shift larger values to the right
                  while (position > 0 && key.compareTo(list[position-1]) < 0)
                     list[position] = list[position-1];
                     position--;
                  list[position] = key;
            }I'm still relativly new at this, so forgive me if there's something obvious that I'm missing.And thanks for any help anybody can give me.

    You haven't gotten to running the sort yet, so I didn't even check that the sort routine is correct.
    Your problem is:
    You say inputFile.hasNext() once, and then you read 1 line from it. Then, in your 'for' loop, you read 100 lines from it. So, you always attempt to read 101 lines, even if the file is shorter than that.
    You should call "hasNext" before each call to "readLine". Also, you probably want a "while" loop, instead of a "for" loop, since you don't know how many words you will have. I assume you are expecting 100 or less (based on your array size).
    Two more notes:
    1. Don't do "new String(inputFile.readLine())". All you need is:
    words= inputFile.nextLine();
    2. You don't need toString here:
    System.out.print(words[index].toString()+"\t");words[index] is already a String, and concatenating the "\t" to words[index] would create a String, anyway, no matter what type words[index] was. And, calling:
    System.out.print(words[index]);would also automatically call "toString", even if words[index] were not a String.
    You could avoid creation of new Strings by:
    System.out.print(words[index]);
    System.out.print("\t");Just make sure you add braces around them, if both lines are the body of a 'for' loop. You should also make the second 'for' loop into a 'while' loop, using a counter that you update as you read the lines--so that you don't process the "null" elements of the array. You also need to account for null elements in your sort method.

  • How to Store something in a text file.

    Store the record of the session in a text file.
    please can any one tell me how can i create this thing.
    i cerate the button but does not work correctly and i can not save any calculation/
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.lang.Math.*;
    import java.math.BigInteger;
    public class Calculator2 extends JFrame implements ActionListener{
    JLabel lN1, lN2,lN3;//here are the Label.
    JTextField tN1, tN2;// here the place for the text field.
    JButton btnAdd,btnSub,btnMul,btnDiv,btnClear,btnSave; JTextArea outArea;//all our Button which are in the program.
    Calculator2(){//constructor.
    Box box=Box.createVerticalBox();//creation of the box.
    // input
    lN1=new JLabel("Write first number"); box.add(lN1);//creation of the input,the number which we want use.
    tN1=new JTextField(100); tN1.setEditable(true); box.add(tN1);//allows or prevents the user editing the text
    lN2=new JLabel("write second number"); box.add(lN2);
    tN2=new JTextField(100); tN2.setEditable(true); box.add(tN2);
    // buttons
    btnAdd=new JButton("+"); btnAdd.addActionListener(this); box.add(btnAdd);// button of addition operation
    // setPreferredSize();
    btnSub=new JButton("-"); btnSub.addActionListener(this); box.add(btnSub);// button of subtraction operation
    btnMul=new JButton("*"); btnMul.addActionListener(this); box.add(btnMul);// button of multiplication operation
    btnDiv=new JButton("/"); btnDiv.addActionListener(this); box.add(btnDiv);// button of division operation
    btnClear=new JButton("Clear"); btnClear.addActionListener(this); box.add(btnClear);// button of Clear operation
    btnSave=new JButton("Save"); btnSave.addActionListener(this); box.add(btnSave);// button of save operation
    // Output
    String desc="This is a simple integer calculator\n";//here the out put with text area.
    outArea=new JTextArea(desc,30,60);//out put area with the hight and length.
    ScrollPane scrollPane=new ScrollPane();//Creates an empty (no viewport view) JScrollPane where both horizontal and vertical scrollbars appear when needed
    scrollPane.add(outArea);
    box.add(scrollPane);
    Container c=getContentPane();
    c.add(box);
    c.setBackground(Color.green);//back ground color.
    setTitle("Calculator");//title
    setSize(600,375);//size
    setVisible(true);// visiblity of the program.
    private void showStatus(String status) {
    lN3.setText(status);
    public void actionPerformed(ActionEvent actionEvent){
    if(actionEvent.getSource()==btnClear){
    outArea.selectAll(); outArea.cut();
    } else {
    String sN1=tN1.getText(), sN2=tN2.getText(), sOp="";
    BigInteger bN1=new BigInteger(sN1);
    BigInteger bN2=new BigInteger(sN2);
    BigInteger bRes=BigInteger.ZERO, bResDiv[]={BigInteger.ZERO,BigInteger.ZERO};
    BigInteger bRemainder=BigInteger.ZERO;
    if(actionEvent.getSource()==btnAdd){bRes=bN1.add(bN2); sOp=" + ";}
    if(actionEvent.getSource()==btnSub){bRes=bN1.subtract(bN2); sOp=" - ";}
    if(actionEvent.getSource()==btnMul){bRes=bN1.multiply(bN2); sOp=" * ";}
    if(actionEvent.getSource()==btnDiv){sOp=" / ";
                if(bN2.signum()!=0)bResDiv=bN1.divideAndRemainder(bN2);//Math.signum() tells you what sign a number is....
                //returns zero if the argument is zero, 1.0 if the argument is greater than zero,
                //-1.0 if the argument is less than zero
                bRes=bResDiv[0]; bRemainder=bResDiv[1];
    if(sOp.equals(" / ") && bN2.signum()==0){
    // showStatus("Cannot divide by zero");
    } else {
    outArea.append(bN1.toString() + sOp+bN2.toString() + " = " + bRes.toString() + "\n");
    if(actionEvent.getSource()==btnDiv)outArea.append("Remainder = "+bRemainder.toString()+"\n");
    public static void main(String[] args) {//the main method of the program.
    new Calculator2().setVisible(true);
    }

    // This is a simple calculator that calculate 4 mathematical operations, addition,
    // subtraction, multiplication and division.
    // Author: Jean Chedid.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.lang.Math.*;
    import java.math.BigInteger;
    public class Calculator2 extends JFrame implements ActionListener{
        JLabel lN1, lN2,lN3;//here are the Label.
        JTextField tN1, tN2;// here the place for the text field.
        JButton btnAdd,btnSub,btnMul,btnDiv,btnClear,btnSave; JTextArea outArea;//all our Button which are in the program.
        Calculator2(){//constructor.
            Box box=Box.createVerticalBox();//creation of the box.
            // input
            lN1=new JLabel("Write first number"); box.add(lN1);//creation of the input,the number which we want use.
            tN1=new JTextField(100); tN1.setEditable(true); box.add(tN1);//allows or prevents the user editing the text
            lN2=new JLabel("write second number"); box.add(lN2);
            tN2=new JTextField(100); tN2.setEditable(true); box.add(tN2);
            // buttons
            btnAdd=new JButton("+"); btnAdd.addActionListener(this); box.add(btnAdd);// button of addition operation
            // setPreferredSize();
            btnSub=new JButton("-"); btnSub.addActionListener(this); box.add(btnSub);// button of subtraction operation
            btnMul=new JButton("*"); btnMul.addActionListener(this); box.add(btnMul);// button of multiplication operation
            btnDiv=new JButton("/"); btnDiv.addActionListener(this); box.add(btnDiv);// button of division operation
            btnClear=new JButton("Clear"); btnClear.addActionListener(this); box.add(btnClear);// button of Clear operation
            btnSave=new JButton("Save"); btnSave.addActionListener(this); box.add(btnSave);// button of save operation
            // Output
            String desc="This is a simple integer calculator\n";//here the out put with text area.
            outArea=new JTextArea(desc,30,60);//out put area with the hight and length.
            ScrollPane scrollPane=new ScrollPane();//Creates an empty (no viewport view) JScrollPane where both horizontal and vertical scrollbars appear when needed
            scrollPane.add(outArea);
            box.add(scrollPane);
            Container c=getContentPane();
            c.add(box);
            c.setBackground(Color.green);//back ground color.
            setTitle("Calculator");//title
            setSize(600,375);//size
            setVisible(true);// visiblity of the program.
         private void showStatus(String status) {
         lN3.setText(status);
        public void actionPerformed(ActionEvent actionEvent){
            if(actionEvent.getSource()==btnClear){
                outArea.selectAll(); outArea.cut();
            } else {
                String sN1=tN1.getText(), sN2=tN2.getText(), sOp="";
                BigInteger bN1=new BigInteger(sN1);
                BigInteger bN2=new BigInteger(sN2);
                BigInteger bRes=BigInteger.ZERO, bResDiv[]={BigInteger.ZERO,BigInteger.ZERO};
                BigInteger bRemainder=BigInteger.ZERO;
                if(actionEvent.getSource()==btnAdd){bRes=bN1.add(bN2); sOp=" + ";}
                if(actionEvent.getSource()==btnSub){bRes=bN1.subtract(bN2); sOp=" - ";}
                if(actionEvent.getSource()==btnMul){bRes=bN1.multiply(bN2); sOp=" * ";}
                if(actionEvent.getSource()==btnDiv){sOp=" / ";
                if(bN2.signum()!=0)bResDiv=bN1.divideAndRemainder(bN2);//Math.signum() tells you what sign a number is....
                //returns zero if the argument is zero, 1.0 if the argument is greater than zero,
                //-1.0 if the argument is less than zero
                bRes=bResDiv[0]; bRemainder=bResDiv[1];
                if(sOp.equals(" / ") && bN2.signum()==0){
                    // showStatus("Cannot divide by zero");
                } else {
                    outArea.append(bN1.toString() + sOp+bN2.toString() + " = " + bRes.toString() + "\n");
                    if(actionEvent.getSource()==btnDiv)outArea.append("Remainder = "+bRemainder.toString()+"\n");
        public static void main(String[] args) {//the main method of the program.
            new Calculator2().setVisible(true);
    }

  • How to check whether there r new txt files in a folder n file creation date

    How to check whether there r new text files in a specified folder and what is the date of creation of the text file.........?

    Hi
    I have been searching for a solution to find the date of creation of a file for over 6 months now but haven't found it. So I presume that it is not possible though I havent found any authentication of my assumption in any document.
    Cheers!
    Shailesh

  • How to sort this text file ?

    hi all
    i have a text file that contains archlinux package information int he following formate:
    File:alpine-2.00-1-i686.pkg.tar.gz     3623 KB     09/05/2008     10:53:00 PM
    File:alsa-lib-1.0.18-1-i686.pkg.tar.gz     474 KB     11/08/2008     04:46:00 PM
    File:alsa-oss-1.0.17-1-i686.pkg.tar.gz     50 KB     09/28/2008     04:25:00 PM
    File:alsa-utils-1.0.18-1-i686.pkg.tar.gz     1047 KB     11/08/2008     04:46:00 PM
    what is the easiest way to sort the order according to different criteria such as file size, creation time, name etc
    i'm thinking of using a database software such as sqlite.
    if this is the correct direction to go, can anyone show me some hints on how i should go about to accomplish this task ?
    thanks in advance

    after some digging
    it seems awk can do the trick
    i found some code snippets
    i'll try it later
    but i'm still curious about doing this using sqlite and the SQL language
    like can i create a database from a formated text file? etc
    so anyone has some comments on this, you are still welcome
    Last edited by elflord (2008-11-15 17:56:18)

Maybe you are looking for

  • Syncronous SOAP Receiver Message: APPLICATION_ERROR

    Hi Experts, I am facing a application error in SXMB_MONI for syncronous messages in a SOAP receiver scenario. - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">   <

  • FAQ: Does SpeedGrade CC support external monitoring?

    Yes, SpeedGrade CC includes Adobe Mercury Transmit for external monitoring via selected third-party video I/O cards on Mac OS and Windows®. More info: Set up dual displays in Adobe SpeedGrade CC Setting up Mercury Transmit in Adobe SpeedGrade CC

  • Cannot edit line on purchase order

    I cannot edit a line on a purchase order (no fields can be editted). I checked linked documents and found that the line had been copied to an AP invoice partially - the line on the PO is still open with an open amount. Why can it not be edited now? T

  • BT Infinity in Wigginton

    The checker says that my postcode isn't served even though TRING is enabled and a friend of mine just up the road has got Infinity. The FAQ suggests that cabinet information is available from 29th September but the page with the link doesn't show any

  • HP C6280 all-in-one - help

    My printer has been working great, but all of a sudden it prints backwards, in other words I would have to turn the paper over and read it through the back.  I've tried everything to get it back to normal.  I finally did click on "mirror image", and