MaxL Spool Options

MaxL Help for the Spool command says: ------------------------------------Log the output of a MaxL Shell session to a file. Send standard output, informational messages, error messages, and/or warning messages generated by the execution of MaxL statements to a file. If FILE-NAME does not exist in the current directory, it is created. If FILE-NAME already exists in the current directory, it is appended to or overwritten. Message logging begins with spool on and ends with spool off. ------------------------------------How can I tell it to append or overwrite? This indicates it will do either, but no instructions or examples are given on how to choose between appending or overwriting.Thanks for any help. (ver 6.5.4.2 on Windows)

can you spool timestamp info to the spool file through Maxl

Similar Messages

  • Configuring spool option.

    Hi All,
    Whenever we opt for print from menu (Shift+F1), the printing option page where following spool options are showned...
    1. Spool immedately - Not ticked
    2. Delete after Output - Not ticked
    3. New spool request - Ticked
    4. Spool priority - 5 Medium
    5. Spool reten. period - 8 days
    6. Archiving Mode - Print Only.
    All the values above are comming as default value but user can change the value as required.
    I want to change the default values of all the above system wide or upto a user group especially in case of 2 and 5.
    Can anyone help - How to do it?
    Regards,
    Soumen.

    Hello Soumen,
    2. Delete after Output - Not ticked
    This can be set in user defaults. Select all users for a particular group in transaction SU10 and then go to defaults. Here you will find an option for Delete after Output . Select the check box in front of it.Also check the checkbox in fromt of "Change". After this save.
    5. Spool reten. period - 8 days
    I am not sure for this but may be you can do this. Create a get/set parameter for data element PEXPI and then assign this parameter to users under parameters in SU10 with the required value. Contact your ABAPPERs for this.
    Check this link:
    http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba56d35c111d1829f0000e829fbfe/content.htm
    Regards.
    Ruchit.

  • Fill in spool options without dialog in Smartforms

    Hi,
    I´m trying to set the spool parameters before printing in Smartforms. Therefore I don´t want a dialog to choose the print options.
    There are too structures, which are going to be passed to the smartform function: OUTPUT_OPTIONS and CONTROL_PARAMETERS.
    I have the shortname of the device (CHAR4 field), like 'LOCL' or a print device.
    How can I now set the parameters before calling the function of the smartform? When I fill the 4char device field into output_options-tddest, it´s not working! It´s always printing on the default device!
    What else should I fill to get it printed right?
    Cheers Arne

    Hi Vijay,
    thanks for Your answer. The background is, that I need to change all production forms form DIN A4 to DIN A5 and make bigger changes in the layout.
    Therefore I decided to create it new in Smartforms, it should be better than calculating the dynamic boxes again in Sapscript.
    If You want to print the forms, You can do that about CO01/02/03. Therefore You have to set "lists" where You can customize the printer device, the sapscript form and the sapscript program.
    To do it in Smartforms, I´m checking the list parameters in my print program and, in case which list was choosen, I call the specific smartform.
    No I want to use the device options set in the list. I´m using the function CO_PRINT_GET_INFO_LIST and I get back two structures with the list information. PRINT_CO and PRINT_OPTS.
    In PRINT_CO there is a field called DESTI. It contains the shortname of the device.
    Now I want to pass this one to the smartform. The device is valid, but my smartform always uses the default device.
    My code:
    CALL FUNCTION 'CO_PRINT_GET_INFO_LIST'
           IMPORTING
                print_co_exp   = print_co
                print_opts_exp = print_opts
           EXCEPTIONS
                OTHERS         = 0.
        wa_control_parameters-device = 'PRINTER'.
        wa_control_parameters-preview = ''.
        wa_control_parameters-no_dialog = 'X'.
        wa_output_options-tddest = print_co-desti.
    *    wa_output_options-tdprinter = print_co-desti.
        wa_output_options-tdarmod = '1'.
        wa_output_options-tdcopies = '001'.
        wa_output_options-tddelete = 'X'.
        wa_output_options-tdlifetime = '2'.
        wa_output_options-tdtitle = print_opts-tdtitle.
        CALL FUNCTION '/1BCDWB/SF00000029'
          EXPORTING
    *       ARCHIVE_INDEX              =
    *       ARCHIVE_INDEX_TAB          =
    *       ARCHIVE_PARAMETERS         =
            CONTROL_PARAMETERS         =  wa_control_parameters
    *       MAIL_APPL_OBJ              =
    *       MAIL_RECIPIENT             =
    *       MAIL_SENDER                =
           OUTPUT_OPTIONS             =  wa_output_options
           USER_SETTINGS              = 'X'
          IMPORTING
            JOB_OUTPUT_OPTIONS        =  wa_job_output.
    I hope You understand my problem.
    Cheers Arne

  • Maxl script unable to read/write to a folder

    When logged in to EAS, we are trying to run a maxl script to read/write to a report script in a particualr folder on the server. Even though the eas login username has write permissions to that folder, the maxl keeps saying: unable to open file.
    Is there any internal Hyperion service account that should specifically have write permissions to the folder?
    here is the maxl:
    SPOOL ON TO 'D:\Oracle\WE.log;
    LOGIN 'username' 'password' on 'server1';
    ALTER SYSTEM LOAD APPLICATION 'Plan1';
    ALTER APPLICATION 'Plan1' LOAD DATABASE 'Main';
    export database Plan1.Main using report_file 'D:\Oracle\WE.rep' to data_file 'D:\Oracle\WE.rpt';
    SPOOL ON TO 'D:\Oracle\REV.log';
    When we run it, we get the following error:
    It gets past the alter systen and alter application commands, and then:
    'Unable to open file ['D:\Oracle\WE.rpt']

    Have you tried running it from a maxl session and not EAS, if you are testing using maxl you may need double backslashes instead of single ones.
    Have you tried with the report script in the database app folder and using the server option - export database Plan1.Main using server report_file 'WE' to data_file 'D:\Oracle\WE.rpt';
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to spool out put of multiple scripts and get a single spool file output

    Hi,
    I have one master script that calls three other scripts. The three scripts each produce their own spool files. But I would like to have the master script also produce one single output (in addition to the three indiviual output I mean). How to do that? Can you please help.
    Following are the scripts:
    --m.sql (master script)
    spool c:\m.log
    @1.sql
    @2.sql
    @3.sql
    spool off
    --1.sql
    spool c:\1.log
    insert into test values(1);
    commit;
    spool off
    --2.sql
    spool c:\2.log
    insert into test values(2);
    commit;
    spool off
    spool c:\3.log
    insert into test values(3);
    commit;
    spool off
    --table used
    SQL> desc test
    Name                                      Null?    Type
    A                                                  NUMBERWhen I run the above script m.sql it does produce the other 3 log files (1.log,2.log etc) but m.log (which is master log file which should have output of each of the three calling script) is empty file with 0 byte!
    Thanks
    Edited by: orausern on May 1, 2011 3:17 AM

    I have one master script that calls three other scripts. The three scripts each produce their own spool files. But I would like to have the master script also produce one single output (in addition to the three indiviual output I mean). How to do that? Can you please help. Not sure if that's possible directly with sqlplus spool option
    When you spool to a different file in a single session, sqlplus stops writing to earlier spool file and redirects the output to the file specified in last spool command.
    at the end of the script, however, below may help
    host type c:\1.log >> c:\m.log
    host type c:\2.log >> c:\m.log
    host type c:\3.log >> c:\m.log

  • Convert Spool to PDF and mail for the jobs not run in background.

    Dear All,
    I need to convert the spool job into pdf and mail as attachment for job not run in background.
    I am printing the bills  using the program  SD70AV3A to print the bills in a batch using the SUBMIT.
    But i am not using the spool options since its going to into waiting state in spool...and i need to change the printer properties to G
    to get the printer to print the reports as these jobs run in backgroud....but this solution is not acceptable solution.
    SUBMIT SD70AV3A
             WITH RG_KSCHL-LOW = 'ZRR'
             WITH RG_NACHA-LOW = '1'
             WITH PM_VERMO = '2'
             WITH PM_NSORT = '1'
             WITH RG_VBELN IN range.
    *        TO SAP-SPOOL
    *        SPOOL PARAMETERS print_parameters
    *        WITHOUT SPOOL DYNPRO
    *        VIA JOB name NUMBER number
    *        AND RETURN.
    so how do i get the spool number from the above after the job is submitted....and then convert into pdf and mail
    please suggest some solution. I have searched on net but most the solutions are say to run the job as background job...
    i have also looked into the program RSTXPDFT4 but it asks for the spool id ....how can i get spool id for the job that has been completed.
    please suggest some solution.
    Thanks
    Bhargava.

    Hi,
    Spool to PDF : FM 'CONVERT_ABAPSOOLJOB_2_PDF'
    Table TSP01 to get spool number
    You ,may need to convert OTF to PDF: FM CONVERT_OTF
    and the to binary : FM 'SMCS_XSTRING_TO_BINARY'
    To send mail use class: cl_document _bcs.
    Regards,
    Maria João Rocha

  • Job in background and multiple spool requests

    Hi everybody,
    I'm executing a program in a background job. The program outputs 2 spool requests. When I get to SM37 t-code to see job's result, I can see at "Job Log" option that 2 spool requests were generated. But... when I press "Spool" option from SM37 t-code I only see the last one. In spite of this, when I get at the spool controller through SP01 t-code I can see both of them. Can you help me with this issue? Why from one place I get 1 request and from the other the 2 ones?
    Thanks in advance and kind regards,
    MMP.

    Hi,
    Check out [this thread|https://forums.sdn.sap.com/click.jspa?searchID=16405444&messageID=1181695] which has a discussion on this topic and points out [Note 519059|https://service.sap.com/sap/support/notes/519059]:
    8] Question: How are the spool requests assigned?
    Answer: The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). If a step generates several spool requests during the processing, only one can be stored. In this case the application is responsible for a "spool overview".
    Regards,
    Jamie

  • Output differs from Printpreview and Spool ?

    Hello All,
    Let me tell u my actual problem.
    1. When I see the output of the PO in the Print Preview it's coming perfectly.
    But when I see the output of the same PO in the Spool it's not the same.
    2. For this reason I want to Debug the PO in both the cases i.e Print Preview case and Spool Case.
    3. When I'm trying to debug in the Print Preview case it's going into the script and I'm able to check the values. But that'S not my Problem .
    My Problem is with the Spool case bcoz I'm getting a different output when compared to that of the Print Preview Output.
    4. SO I want to debug the script whn I choose the Spool Option .
    i.e Path is : ME22N --> GIve a PO --> Click on Messages Tab --> Select any of the Processed Record and Press Repeat output and --> SAVE.
    Before pressing the SAVE Button I pressed /h and started to debug .
    But It's not going into the script at all.Instead it is going to some other standard program and creating a spool request.
    5. My first Qn is : When viewed from the Spool will it go into the script or not ?
    My second Qn is : Hw to debug the script when we are seeing the output from a SPOOL i.e from the Path :
    ME22N --> GIve a PO --> Click on Messages Tab --> Select any of the Processed Record and Press Repeat output and --> SAVE.
    Hope I'm clear now in my Explanation.
    Regards,
    Deepu.K

    It seems to be an issue with the Output Device. For the Spool, try to print on a different printer/ or the default SAP output device (SAPWIN device type).
    If the output comes correctly, then the issue is with the Driver.
    Regards,
    abhishek

  • WDDX Parse error in cfadmin Mail Spooler respool

    I recently discovered that emails were not being sent and were stacked up in the spooler.  In the CF Administrator interface, I verified that the mail server  connection was fine and it was. I went to "View Undelivered Mail" (under mail spool settings), reviewed the emails that were stuck and selected a random message to "respool".  Unfortunately, on every attempt to respool an email (one or many), I get the following error: "Error: WDDX packet parse error at line 1, column 1. Content is not allowed in prolog.."
    I have restarted the windows service twice, checked my email host...all to no avail. The error still occurs.
    I also unchecked the spooling option and emails (new ones only, not the spooled ones) are coming through just fine.
    I'm running CF9 full on Windows XP.
    How do I get the respool function working so I can send the stuck emails?  all suggestions welcome.

    /app/devtools/gcc-4.2.3-64/bin/g++ -L/home/john/sdc/lib/Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64 -L/home/john/oracle/lib -L/app/gcc-3.3.4/lib -L/app/gcc-3.2.3/lib -ldl -lpthread -lnsl -lrt -lstdc++ -lvs -lclntsh -L/home/cdev/pkgs/oas/Linux64/oaslinux64_2_4_05_03/lib -loas Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/db.o Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/owl.o Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/queue.o Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/log.o Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64-R/titan.o -o /home/amehta17/sdc/bin/Linux_2.6.5-7.308.PTF.352368.0-smp.gcc-4.2.3-64/titan
    /usr/bin/ld: warning: libnnz10.so, needed by /home/john/oracle/lib/libclntsh.so, not found (try using -rpath or -rpath-link)
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzos_ServiceWriteQueue'
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzosCipherSpecToStr'
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzos_setCRLPath'
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzteOpenPersona'
    /home/amehta17/oracle/lib/libclntsh.so: undefined reference to `nzdsi_initialize'
    All these symbols are not defined in libclntsh.so and also does not exist in libnnz10.so.
    I checked 32bit version of libnnz10.so has all above undefined symbols. This looks really weird to me why 64 bit version of libnnz10.so doesn't define these symbols.
    Let me know if you have any idea.

  • Spool Adobe Form: Print partial document

    Hello,
    I want print only a part of a ADS spool. In non-ads spool you can print from one page to another page, but with adobe forms, this selection field doesn't apper. Our spool has many pages (~1000) and many documents (~500) in only one spool
    How can we print only a part of an ADS spool? (For example if you have a problem and only print form the document in the middle of de ADS to the last document).
    Regards,
    Jaime

    With the partslist active, you can select whichever pages you want to print in SP01.
    To display the part list first, you need to execute report RSPO0021 in transaction SE38 with the following settings:
    Name of the spool option: SHOW_PART_LIST
    Select the Activate Entry option.
    Printing Interactive Forms -
    SAP Printing Guide (BC-CCM-PRN) - SAP Library at: http://help.sap.com/saphelp_nw74/helpdata/en/4e/8e7f4d6f41336de10000000a42189b/frameset.htm

  • MAXL Dimension Extraction?

    Does anyone know of a method to extract dimensions from essbase using MAXL? I'm trying to automate a dimension extract. I know that the Outline Extractor has a command line that can be used to achieve this but I'd prefer doing it in MAXL if possible. There's an import dimensions command in MAXL but I can't seem to find one for export dimensions.
    The ultimate goal is to automate copying the metadata and data nightly from a BSO cube to an ASO cube.
    Thanks!

    This seems to be a common topic. There is no way to get outline information from MAxL. Options are
    1. outline extractor (you already know about this)
    2. ODI
    3. API calls (Java or C or VB)
    4. HAL (I think, but not in new versions)

  • Encrypted Maxl "Parse error near in" error

    Hello,
    I'm facing a "Parse error near in" error when trying to use encrypted Maxl scripts deploying Essbase Studio cubes.
    The problem seems to be in the deploy command. If I do not use encrypted Maxl ( -D option ), the same deploy command works fine.
    Look in the deploy command that I'm not using encryption for loging into Essbase Studio. Even using encryption the same error is issued.
    Here is the log: ( I changed sensitive information for obvious reasons )
    Essbase MaxL Shell - Release 11.1.2 (ESB11.1.2.1.0B347)
    Copyright (c) 2000, 2011, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login $key 99999999999999999999999999 $key 99999999999999999999999999 on s01ubd01;
    OK/INFO - 1051034 - Logging in user [ESBSAUH1@AD_Directory].
    OK/INFO - 1241001 - Logged in to Essbase.
    Essbase MaxL Shell - Release 11.1.2 (ESB11.1.2.1.0B347)
    Copyright (c) 2000, 2011, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> deploy outline from model 'cboPremioModelo2' in cube schema '\BI_SAUDE\Cubos\Premio\cboPremio'
    with option delete_members login "xxx" identified by "yyyyy" on host "s01ubd01"
    to application "Premio" database "Premio" using connection "Essbase" keep all errors on error ignore dataload write to default;
    essmsh error: Parse error near in
    essmsh timestamp: Wed Jul 04 12:52:03 2012
    MAXL> logout;
    User esbsauh1 is logged out
    essmsh timestamp: Wed Jul 04 12:52:03 2012
    MaxL Shell completed

    There have been a number of MaxL bugs with encryption that produce 'Parse error near...' messages. If you login to Oracle Support and search the Knowledge Base on 'Parse error near' you will find them. I can't see anything specifically relating to 11.1.2.1 or a known defect in the release notes... ...I'd get a support ticket raised, if you haven't already.
    You don't mention platform, but I've also run into a bug running 'deploy' in 11.1.2.1 on a 64-bit Windows environment and there was a Unix bug too, but they both caused crashes so probably aren't your problem.

  • Sending an ALV List screen output to SPOOL

    Hi Guru's,
         I am working with a standard transaction FBWE. In this transaction we are displaying a remittance list
    using ALV LIST.  Now the requirement is I need to send this ALV List output to SPOOL.
                   1. Please tell me how to send an ALV List output to Spool.
                   2. This transaction is having only one user exit, as per my investigation I can not use
                       this user exit. Can anybody tell me the alternative way for this.
    Thanks,
    Ravi

    You can using the SUBMIT along with spool options
    Read the SUBMIT help.

  • Can we set the user wise priority in spool printing

    Dear all,
    Can we set the user wise priority in spool printing.
    Can we hold bulk printing.
    Regards
    Tapovardhan

    Hi Tapavardhan,
    Here you can read everything about printing and spool options <a href="http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a8eb751ea11d189570000e829fbbd/frameset.htm">Click Here</a>
    Please dont forget to assign points if helpful
    Regards
    Juan

  • Spool versus direct to printer settings - short term fix to problem, HP bug to be resolved?

    I had an issue with a large Excel document not printing. All other software, internet, faxes and scanned documents printed fine. In an HP technician chat, the issue was resolved via (in my opinion) a bypass of selecting the direct to printer option versus the spooling option which according to the advanced settings enables faster printing. When I asked the technician if this would ever be an option, he said not to worry that the speed should be quite fast direct to the printer. I'm still wondering whether this is a bug and will be an HP option as displayed in the advanced settings at t some point in the future.
    Regards,
    Mary

    You have not mentioned it but based on some of the things that you have said, I would assume that the Mac's are bound to a domain. So, for one of these Mac's, if you logged on locally and then created a print queue to the network printer, do you get the same message?

Maybe you are looking for