Print the job from the spool in batch mode

hi team,
                   i need a program that would accept the spool nmae and a printer destination......
so my  user want the report to print on two different printers....

Hi,
If the domain of these fields are of type SYTIME, then adding the fields like a numeric value should suffice.

Similar Messages

  • Print the job from the spool in abtch mode

    I want to be able to print a job from the spool in batch mode. In other words a job currently exists that creates a report that currently goes to a printer.
    The user wants the report to print on two different printers. This extra printer cannot be placed in the job, since SAP only allows one printer per output. What I would like is to find a SAP program that would accept a spool name and a printer destination. It necessary we can write a program that might execute a SAP function to do the same.
    SP01, the spool transaction, does not easily adapt itself to batch execution. I donu2019t want to create a bdc session using it.

    Hi,
    If the domain of these fields are of type SYTIME, then adding the fields like a numeric value should suffice.

  • Print a job from both the trays in a printer

    Hi,
    I am developing an application in JDK 1.4 to use the new printing APIs. Our requirement is to print a job from a printer using both the upper tray as well as the lower tray. This is because the application prints pages alternatively in both Legal and Letter format. Is it possible to accomplish this task?
    Thank you.
    PPM.

    I think you are going to need to use the java.awt.print.Book class. This class allows you to specify a different page format for each page in the document to be printed. In the PageFormat you return for each page, you can specify the orientation, paper, etc. However, I haven't done what you are specifically asking about so I can't give you details beyond my educated guesses. :)

  • How to print the script in condensed mode

    Hi to all,
    Pls help me.
    How to print the script in condensed mode and particular window only print in the condensed mode.

    Hi,
    Hi
    It will remove the blank spaces in front of the variable
    and if you use the extension NO-GAPS
    It will remove all the blank spaces in the variable field.
    DATA: ws_val1 type char12.
    ws_val1 = ' 100 123'.
    Condense ws_val1.
    Write / ws_val1.
    Condense ws_val1 no-gaps.
    write / ws_val1.
    It will give output as
    100 123
    100123
    The CONDENSE statement deletes redundant spaces from a string:
    CONDENSE c NO-GAPS.
    This statement removes any leading blanks in the field c and replaces other sequences of blanks by exactly one blank. The result is a left-justified sequence of words, each separated by one blank. If the addition NO-GAPS is specified, all blanks are removed.
    Please check this link for sample code.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb33e6358411d1829f0000e829fbfe/content.htm
    Regards,
    Raj.

  • How to print the spool request with a given file name.

    Dear Experts;
    I used FM RSPO_OUTPUT_SPOOL_REQUEST to print spool request. And the device type is a local pdf printer. By default, the download file name will be the spool id. How can I change the download file name? Thanks!
    Convert 'CutePrinter' to qualify the format.
      CALL FUNCTION 'CONVERSION_EXIT_SPDEV_INPUT'
        EXPORTING
          input  = 'CutePrinter'
        IMPORTING
          output = lv_device.
    Downloading as pdf by printer
      CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
        EXPORTING
          device                         = lv_device
          spool_request_id               = pa_spool
       EXCEPTIONS
         archive_dest_invalid           = 1
         archive_dest_not_found         = 2
         archive_dest_no_right          = 3
         cannot_archive                 = 4
         change_archdest_no_right       = 5
         change_copies_no_right         = 6
         change_dest_no_right           = 7
         change_devtype_no_right        = 8
         change_prio_no_right           = 9
         change_telenum_no_right        = 10
         change_title_no_right          = 11
         dest_invalid                   = 12
         dest_not_found                 = 13
         dest_no_right                  = 14
         internal_problem               = 15
         invalid_fax_attribute          = 16
         invalid_parameters             = 17
         non_owner_no_right             = 18
         no_layout                      = 19
         no_spool_request               = 20
         out_again_no_right             = 21
         spooler_problem                = 22
         OTHERS                         = 23

    SELECT SINGLE * FROM tsp01 into rq WHERE rqident = p_spool  .
    *   To get attributes of spool request
    CALL FUNCTION 'RSPO_GET_ATTRIBUTES_SPOOLJOB'
        EXPORTING
          rqident     = p_spool             "Spool Request Number
        IMPORTING
          rq          = rq                                 "Consists the Spool Document Type Details
        TABLES
          attributes = dummy
        EXCEPTIONS
          no_such_job = 1
          OTHERS      = 2.
      IF sy-subrc <> 0.
      ENDIF.
    *Convert spool request into PDF, dependent on document type
    IF rq-rqdoctype = 'OTF' OR rq-rqdoctype = 'SMART'.    "Doc Type is of Sap Script or Smart form
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = p_spool               "Spool Request Number
            no_dialog                = 'X'
            pdf_destination          = 'X'
            no_background            = 'X'
          IMPORTING
            pdf_bytecount            = bin_size
            bin_file                 = pdf_xstring                  "This fm will convert the spool data into
         TABLES
            pdf                      = it_pdf   .                                                                       "PDF Format in this importing string
      ELSEIF rq-rqdoctype = 'LIST'.                 "Doc Type of List
    * Convert spool to PDF
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = p_spool               "Spool Request Number
            no_dialog                = ' '
            dst_device               = 'LOCL'
            pdf_destination          = 'X'
            no_background            = 'X'
          IMPORTING
            pdf_bytecount            = bin_size
            bin_file                 = pdf_xstring                     "This fm will convert the spool data into
                                                                                  "PDF Format in this importing string
          TABLES
            pdf                      = it_pdf.
        ENDIF.
    *      Downloading file to p_file loation in PDF foramt
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize            = bin_size
              filename                = w_filename     "Custom File name
              filetype                = 'BIN'
            TABLES
              data_tab                = it_pdf
    Prabhudas

  • Error while running job from artjesadmin of Tuxedo Batch Runtime

    Hi,  when I submit the job by entering artjesadmin>smj -i ../JCL/HELLO_WORLD_JCL.ksh , I am getting below error in Job LOG;
    JOB SK127YSM BEGIN AT 2013/05/31 09:50:56
    BEGIN PHASE START AT 2013/05/31 09:50:56
    END PHASE START AT 2013/05/31 09:50:56 (RC=C0000, JOBRC=C0000, ELAPSED=0)
    BEGIN PHASE STEP01 AT 2013/05/31 09:50:56
    RUNB BEGIN :
    RUNBATCH BEGIN :
    +>> Program BEGIN : SAMPL+
    ERROR    mi_ProgramExec: The program execution has an error (SAMPLE)
    END PHASE STEP01 AT 2013/05/31 09:50:58 (RC=U0900, JOBRC=U0900, ELAPSED=2)
    BEGIN PHASE END_JOB AT 2013/05/31 09:50:58
    END PHASE END_JOB AT 2013/05/31 09:50:58 (RC=C0000, JOBRC=U0900, ELAPSED=0)
    JOB ENDED ABNORMALLY WITH CODE (U0900) AT 2013/05/31 09:50:58
    ERROR    mi_FileEmpty: The type UNKNOWN of file is unknown
    mi_JobEnd: Internal Error (mi_FileEmpty -r mt_FileEmpty "/root/workspace/app/00000001/SYSOUT/HELLO_WORLD_JCL_00000001__SYSPRINT_1") RC=123
    Does any one know 's why we get this error and what does RC=U0900 represent.
    Also I checked m_ProgramExec API in /ejr directory and this file doesn't have any statement to execute the program name passed to it as parameter.

    I think I have got whats the problem .
    Syntax for calling m_ProgramExec is "m_ProgramExec [OPTIONS] Program [Args .....] ". And when this API is called it checks the number of arguments and I think its expecting miminum 2 args . When I ran the converted .ksh with m_ProgramExec SAMPLE  it gave error as specified above. But when I corrected the converted .ksh with m_ProgramExec SAMPLE "agrs"  . Then it ran successfully. (though the arguments were dummy)
    Thanks Bob for your help.
    Regards,
    Naresh Gupta.

  • How to get back fields from INSERT statement in batch mode(getGeneratedKeys

    Hi,
    I wanted to insert records to database and get back some fields.
    I create prepared statement:
    preparedStatement = connection.prepareStatement(sqlQuery, columnIndexes);
    then I set parameters.
    Following code works properly:
    preparedStatement.executeUpdate();
    generatedKeys = preparedStatement.getGeneratedKeys();
    if (generatedKeys.next()) {
    doSomething();
    But when I try to do this by batch I get exception:
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 22
         at oracle.jdbc.driver.T4CNumberAccessor.unmarshalOneRow(T4CNumberAccessor.java:190)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:612)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:966)
         at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10644)
         at org.jetel.component.DBOutputTable.runInBatchMode(DBOutputTable.java:619)
    My "batch" code:
    for(...){
    setParameters(preparedStatement);
    preparedStatement.addBatch();
    preparedStatement.executeBatch();
    Isn't it a bug?
    Can I get back fields (eg. from last insert added to batch)?
    I hope somebody can help me.
    Agata

    This code works for me but only inserting one row. More than one causes an ArrayIndexOutOfBoundsException once sendBatch is called.

  • Spool Output Device changes after printing the 1st Copy

    Hi ,
         While printing the spools from the batch jobs for the 1st time it prints properly . In SP01 I find that the Output Device changes from the defined device to local printer after the 1st print and the spool is in waiting status.
             Can any one kindly tell me what might be the issue.
    Thanks.

    Found the following article from Microsoft in which they recognize this problem :
    http://support.microsoft.com/kb/952266 
    But NO fix !!!??? Thanks MS !!

  • What is the spool, what is its role in background job scheduling

    Hi,
    I want to know what is meant by Spool request and spool number generated.
    Tell about transaction SP01.
    How it is linked to Background job scheduling.
    thanks.
    sam.

    Hi,
    Refer this link.
    https://www.sdn.sap.com/irj/sdn/inf?rid=/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb100438
    About SP01.
    Printing does not work in SAP. There is a printer definition for your local printer, but it does not work. Presuming that you use the program SAPLPD on your computer.
    Boot your computer and start only the SAPLogon and the SAPLpd program.
    Delete all of your old print jobs in the SAP system (Transaction SP01).Generate only one new print job.
    Check that there is enough resource in your computer. Check the free memory (Win 3.1x) and the free disk space (The lists are temporarily saved on your disk).
    Open the SAPLPD and read the print log in the window. The printer definition must correspond with the parameters shown here.
    Check that the standard printer is on the same lpt (Win 3.1: Control panel, Printer) as defined for the printer (usually lpt1).
    In Transaction SP01 read the protocol of your print job. Do not generate new print jobs! Wait till the SAP system changes the status of the print job.
    If you can not find the print job in SP01 anymore, then the print job was successfully printed out. If it didn't come out on your printer and the SAPLpd didn't indicate an incoming print job, then the connection was realised with another PC. Then SAP printer definition you used, does not correspond with your computer.
    Scheduling Background Jobs:
    1.        Background jobs are scheduled by Basis administrators using transaction SM36.
    2.        To run a report in a background, a job needs to be created with a step using the report name
    and a variant for selection parameters. It is recommended to create a separate variant for each
    scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
    company codes).
    3.        While defining the step, the spool parameters needs to be specified
    (Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
    to find the spool request. The following parameters needs to be maintained:
    a.        Time of printing: set to u201CSend to SAP spooler Only for nowu201D
    b.        Name u2013 abbreviated name to identify the job output
    c.        Title u2013 free form description for the report output
    d.        Authorization u2013 a value defined by Security in user profiles to allow those users to access
    this spool request (authorization object  S_SPO_ACT, value SPOAUTH).  Only users with matching
    authorization value in their profiles will be able to see the output.
    e.        Department u2013 set to appropriate department/functional area name. This field can be used in
    a search later.
    f.        Retention period u2013 set to u201CDo not deleteu201D if the report output needs to be retained for more
    than 8 days. Once the archiving/document repository solution is in place the spool requests could
    be automatically moved to the archive/repository. Storage Mode parameter on the same screen
    could be used to immediately send the output to archive instead of creating a spool request.
    Configuring user access:
    1.        To access a report output created by a background job, a user must have at
    least access to SP01 (Spool requests) transaction without restriction on the user
    name (however by itself it will not let the user to see all spool requests). To have
    that access the user must have S_ADMI_FCD authorization object in the profile with
    SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
    2.        To access a particular jobu2019s output in the spool, the user must have
    S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
    in the Print Specifications of the job (see p. 3.d above).
    3.        Levels of access to the spool (display, print once, reprint, download, etc) are
    controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
    BASE access (display).
    On-line reports:
    1.        Exactly the same configuration can be maintained for any output produced
    from R/3. If a user clicks u201CParametersu201D button on a SAP Printer selection dialog, it
    allows to specify all the parameters as described in p. 3 of
    u201CScheduling background jobsu201D section. Thus any output created by an online report
    can be saved and accessed by any user authorized to access that spool request
    (access restriction provided by the Authorization field of the spool request
    attributes, see p. 3.d of u201CScheduling background jobsu201D section).
    Access to reportu2019s output:
    1.        A user that had proper access (see Configuring user access above) can
    retrieve a job/report output through transaction SP01.
    2.        The selection screen can be configured by clicking u201CFurther selection
    criteriau2026u201D button (e.g. to bring u201CSpool request name (suffix 2)u201D field or hide other
    fields).
    3.        The following fields can be used to search for a specific output (Note that
    Created By must be blank when searching for scheduled jobu2019s outputs)
    a.        Spool request name (suffix 2) u2013 corresponds to a spool name in p. 3.b in
    u201CScheduling background jobsu201D section above).
    b.        Date created u2013 to find an output of a job that ran within a certain date range.
    c.        Title u2013 corresponds to spool Title in p. 3.c in u201CScheduling background jobsu201D
    section above).
    d.        Department - corresponds to spool Department in p. 3.e in u201CScheduling
    background jobsu201D section above).
    4.        Upon entering selection criteria, the user clicks the Execute button   to
    retrieve the list of matching spool requests.
    5.        From the spool list the user can use several function such as view the
    content of a spool request, print the spool request, view attributed of the spool
    request, etc. (some functions may need special authorization, see p.3 in
    Configuring user access)
    a.        Click the Print button   to print the spool request with the default attributes
    (usually defined with the job definition). It will print it on a printer that was
    specified when a job was created.
    b.        Click the u201CPrint with changed attributedu201D button   to print the spool request
    with the different attributes (e.g. changing the printer name).
    c.        Click the u201CDisplay contentsu201D button   to preview the spool request contents. A
    Print    and Download   functions are available from the preview mode.
    Exporting the Contents of a Spool Request
    Use
    You want to export the contents of a spool request as a text file to the SAP GUI working directory or to a directory of your choice. The content of the spool request is downloaded as plain text without, for example, graphics, images, or specific fonts.
    The following procedures are irrelevant for the PDF-based form printing integrated as of SAP Web Application Server 6.40, since the print data can be opened and stored as a PDF. See also Displaying and Printing PDF-Based Forms.
    Procedure
    Exporting to the SAP GUI Working Directory:
    Choose Spool Request ® Forward® Export as Text.
    The entire text is stored in your SAP GUI working directory in ASCII format.
    A file of this type is named using the following pattern:
    .txt
    Example: ABC0000004327.txt
    You require appropriate authorization for this function.
    Exporting to a Directory of Your Choice:
    With this method of exporting a spool request, the content of the spool request is first displayed and you then download the screen list as a text file to the directory of your choice.
           1.      Select the spool request to be exported and choose  Display Contents.
           2.      In the case of SAPScript/Smart Forms documents, activate list display by choosing Goto.
           3.      Choose System ® List ® Save ® Local File.
           4.      Choose one of the available formats and confirm your choice.
           5.      Choose a directory and save the spool request.
    By default, only the first 10 pages of a spool request are saved in a file. You can increase the number of pages to be saved by choosing Goto ® Display Requests ® Settings and making the desired entries in the Display Area group box.

  • Print the order with Background Job

    Hi Gurus,
    I have to print the order on button click in a report.
    i have done the coding and passing the parameters to a stahndard program on  submit.
    but problem is that order is going to spool but not printing the order.
    As batch job not supporting the LOCL,please suggect the alternative to achieve the print.
    Br,
    Surya

    Hi Lokesh,
    Thanks for your quick reply.
    i am using the below code for printing the order with batch job on clicking the button in my report.
         DATA: NAME TYPE TBTCJOB-JOBNAME.
    DATA: NUMBER  TYPE TBTCJOB-JOBCOUNT.
    DATA: PRINT_PARAMETERS TYPE PRI_PARAMS.
    NAME = 'ORDER_PRINTING'.
    CLEAR: RANGE1.
    *REFRESH: range.
    RANGE1-SIGN = 'I'.
    RANGE1-OPTION = 'EQ'.
    RANGE1-LOW = 'BA00'.
    RANGE1-HIGH = 'ZBA1'.
    APPEND RANGE1 TO RANGE.             .
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    JOBNAME = NAME
    IMPORTING
    JOBCOUNT         = NUMBER
    EXCEPTIONS
    CANT_CREATE_JOB  = 1
    INVALID_JOB_DATA = 2
    JOBNAME_MISSING  = 3
    OTHERS = 4.
    IF SY-SUBRC = 0.
    SUBMIT SD70AV1A WITH  RG_KSCHL IN RANGE
      WITH  RG_VBELN IN ORDER_TAB
      TO SAP-SPOOL
      SPOOL PARAMETERS PRINT_PARAMETERS
      WITHOUT SPOOL DYNPRO
      VIA JOB NAME NUMBER NUMBER
      AND RETURN.
    IF SY-SUBRC = 0.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    JOBCOUNT = NUMBER
    JOBNAME = NAME
    STRTIMMED = 'X'
    EXCEPTIONS
    CANT_START_IMMEDIATE = 1
    INVALID_STARTDATE = 2
    JOBNAME_MISSING = 3
    JOB_CLOSE_FAILED = 4
    JOB_NOSTEPS = 5
    JOB_NOTEX = 6
    LOCK_FAILED = 7
    OTHERS = 8.
    IF SY-SUBRC <> 0.
    ENDIF.
    ENDIF.
    Please suggest where should i give the printer name.
    fyi.. i am trying to pass the same LOCL name to the job with the FM- GET_PRINT_PARAMETERS with destinamtion 'LOCL'
    Br,
    Surya

  • HP 7640 web services disabled and I can only print locally, not from the net !

    Web Services Test Reslults:"No problems found"Router: Verizon Quantum gatewayPrinter is connected via Wi-Fi and printing can be done through the router or directly via Wi-FiBoth Router @ 192.168.1.1 and printer panel report printer IP 192.168.1.161, MAC address 34.64.a9.44.ff.aaAND . . . under current configurationWeb services : disabledSo . . .How do I get this pos working properly ?HP website provides NO SUPPORT, just a run-a-round.---  

    Hey ,  Welcome to the HP Support Forum.  I see that you're unable to use ePrint or enable webservices with your HP ENVY 7640 e-All-in-One Printer.  I would like to help.  Have you tried the basic ePrint/webservices setup method as recommended by HP?  If not, give that a shot first.  If this is not new to you please read on, I have some more suggestions that might enable this feature for you.   I recommend you set a Manual DNS on your printer.  Here's how:  Click on the HP ENVY 7640 icon on your PC desktop (note that I've used screenshots for a different printer, but the steps are essentially identical) to access the HP Printer Assistant.  Click on the Embedded Web Server link (EWS) and then click on the network tab as indicated below:   Next, click Wireless and then IPV4 Configuration as indicated below:     Next, click on Manual DNS Server and input the numbers exactly as indicated below, clicking on Apply to complete this aspect of your setup:   For the next step, you can use the EWS 'Webservices' tab to enable webservices/ePrint or enable from the printer's front panel by touching the  icon.  Touch OK to allow this feature to activate and also to allow for automatic printer updates.   If you were able to complete the above-noted steps without issue, you will be ready to send your printer ePrint jobs. For more information on how to setup a custom ePrint address click here.  If you're an Android or iOS device user, click here for more information on how to use the HP ePrint app.  In its most basic iteration, you can send your printer ePrint jobs from any web-ready device by emailing content you want to print directly to your printer's @hpeprint.com address.  Please let me know the result of your troubleshooting by responding to this post.  If I have helped you resolve the issue, feel free to say "You rock!" by clicking the 'Thumbs Up' icon below and clicking to accept this solution. Thank you for posting in the HP Support Forum.  Have a great day!

  • W-2 Printing from PDF Spool

    We are having problems with printing w-2's once they are generated through pu19.  The spool generates a pdf file but we are unable to print the spool.  I need to know if anyone is having the same issue and is there a solution or workaround.  We have opened a SAP Note but the solutions provided thus far has not help us overcome the issue.

    Hi,
    It looks like printer settings are not working for spool.
    Please check with basis team for same.
    Thanks,
    Ameet

  • Changing the Spool Name

    In the SP01 Transaction there is an option to search for the Spool by .
    1.Spool request name
    2.Spool request name (suffix 1)
    3.Spool request name (suffix 2)
    The above three parameters are set automatically by system.
    I am printing the spool in the following way
      NEW-PAGE PRINT ON NO DIALOG
                           COVER TEXT 'Test Spool'
                           DESTINATION space
                           IMMEDIATELY space
                           KEEP IN SPOOL space.
         WRITE : / 'Amit Behera'.
      NEW-PAGE PRINT OFF.
    I tried to change the default value of the system fields <b>SY-PRDSN</b> and     <b>SY-PLIST</b> when the control was on <b>WRITE : / 'Amit Behera'.</b>, the values got changed at the runtime but when I double clicked the spool number the <b>'Name'</b> section still contained the default system values and not the one I had changed at the runtime.
    I tried the FM <b>'SET_PRINT_PARAMETERS'</b> and <b>'RSPO_SET_ATTRIBUTES_SPOOLJOB'</b> but it didn't work.
    How do I go on to change these values ? Please let me know.
    Thanks in advance.
    Regards,
    Amit Behera.

    Hi.
    Try something like this.
    data:
      params like pri_params,
      valid(1) type c.
    get default params
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        NO_DIALOG                    = 'X'
      IMPORTING
        OUT_PARAMETERS               = params
        VALID                        = valid
    EXCEPTIONS
      ARCHIVE_INFO_NOT_FOUND       = 1
      INVALID_PRINT_PARAMS         = 2
      INVALID_ARCHIVE_PARAMS       = 3
      OTHERS                       = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    amend default params
    params-prdsn = 'PLUM'.
    params-plist = 'PRUNE'.
    use params
    NEW-PAGE PRINT ON NO DIALOG
    parameters params.
    WRITE : / 'Amit Behera'.
    NEW-PAGE PRINT OFF.
    John

  • Forms 6i in Batch Mode - I need help..

    Hello ALL.
    Before I proceed migrating our 4.5 to 6i, I would like to know
    how to run forms/reports 6i in batch mode. I have RDBMS 8.1.6.
    running on HP-UX 11.0 and the plan is to deploy the
    forms/reports6i to browser or intranet via the OAS9i/NT Server -
    already installed. Currently, 60% of our applications are in
    batch mode and 70% of our reports are in character mode and I
    use a script to run them. Batch job example:
    echo 'Job Myjob"
    sqlplus -s @cretables
    f45run myform term=vt220
    r25run myreport paramform=NO batch=yes desttype=file
    desname=myrep.lis indate=10222001
    np -qhp2564 *lis <--- HP Line Printer
    How do I run the above batch job using the OAS9i/NT Server?
    Whar are my options? Can somebody show in me in detail/script
    how to run the "example" batch job with forms 6i and reports
    6i. Also, I need a detail instruction/script how to print the
    reports in character mode using a local printer such line
    printer.
    My enourmous thank you to all of you.
    Myrna Diaz
    [email protected]

    There is no other way.
    Sorry

  • Automatically sync index in batch mode (w/o ctxsrv)

    Didn't find a way to rebuild the index in batch mode every 3 Minutes.
    Tried this, which generated error in Oracle:
    begin
    execute immediate 'alter index vocdev.ua_text_ctx_idx rebuild online parameters(''sync'');';
    end;
    as a stored procedure, which should be called by the ora_snp0_ORCL process.
    May be this kind of dynamic SQL is not allowed. But how can I achieve a solution?
    Why isn't there a stored procedure like
    CTX_DDL.REFRESH_INDEX('myschema.myindex')
    PS: I'm using 8.1.5 on Solaris.
    null

    Now I found an answer.
    -- NOTE: bug # 941367 prevents this from working at 8.1.5.
    -- It is fixed in 8.1.6.
    create or replace procedure sync
    is
    begin
    execute immediate
    'alter index dml_text rebuild online' &#0124; &#0124;
    ' parameters ( ''sync'' )' ;
    execute immediate
    'alter index dml_text rebuild online' &#0124; &#0124;
    ' parameters ( ''optimize full maxtime unlimited'' )' ;
    end sync;
    Looks like we have to upgrade to 8.1.6.
    null

Maybe you are looking for