How to insert Page Break in SPOOL file

How to insert Page Break in SPOOL file.

How to insert Page Break in SPOOL file.
SET NEWP[AGE] {1|n|NONE}
SET NEWPAGE is not supported in iSQL*Plus
Sets the number of blank lines to be printed from the top of each page to the top
title. A value of zero places a formfeed at the beginning of each page (including
the first page) and clears the screen on most terminals. If you set NEWPAGE to
NONE, SQL*Plus does not print a blank line or formfeed between the report pages.
http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a90842/ch13.htm
SQL> SET PAGESIZE 5
SQL> SET NEWPAGE 0 --a form feed between your pages
SQL> SPOOL C:\output.doc
SQL> SELECT * FROM emp;
     EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
      7369 SMITH      CLERK           7902 17-DEC-80        800          0         20
      7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
      7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
     EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
      7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
      7698 BLAKE      MANAGER         7839 01-MAY-81       2850          0         30
      7782 CLARK      MANAGER         7839 09-JUN-81       2450          0         10
     EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
      7788 SCOTT      ANALYST         7566 09-DEC-82       3000          0         20
      7839 KING       PRESIDENT            17-NOV-81       5000          0         10
      7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
     EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
      7876 ADAMS      CLERK           7788 12-JAN-83       1100          0         20
      7900 JAMES      CLERK           7698 03-DEC-81        950          0         30
      7902 FORD       ANALYST         7566 03-DEC-81       3000          0         20
     EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
      7934 MILLER     CLERK           7782 23-JAN-82       1300          0         10
13 rows selected.
SQL> SPOOL OFFKhurram

Similar Messages

  • Prevent Occurence of list header and page breaks in spool file of ALV Grid

    Prevent Occurence of list header and page breaks in spool file of ALV Grid  Display.
    When we run the ALV in background and create spool request then:
    Spool file output is coming like this.
    Column1 Column2 Column3 Column4
    data        data        data       data
    data        data        data       data
    data        data        data       data
    Column1 Column2 Column3 Column4
    data        data        data       data
    data        data        data       data
    data        data        data       data
    But the required is like this
    Column1 Column2 Column3 Column4
    data        data        data       data
    data        data        data       data
    data        data        data       data
    data        data        data       data
    data        data        data       data
    data        data        data       data
    Please suggest a posible answer

    Hello all,
    if you have not yet solved this on your own, here is my solution: use a format type that has 60000 lines per page for your spool output device.
    It all depends on the format type that was used for creating the spool output.
    By default (in our system), we have 65 lines per page. And after each page the column headings of the ALV will appear.
    What i did:
    create a new format type via transaction SPAD->full administration->device types->format types (copy an existing one)
    change"Number of Rows" to 60000 or something applicable
    edit the device type of your output device (e.g. LOCL) to contain the newly created format type (via SPAD; Button "Formats" in device type maintenance).
    That's it! Be sure to use this format type for your output device in the "Background Print Parameters" window (-> Button "Properties").
    Regards
    Daniel Klein
    All other parameters you discussed before didn't do it. All ALV-Settings will be overwritten by the output device settings and its print properties.

  • How to insert page break in smartforms?

    Hi.
    I want to insert page break after printing 15 rows on each page.how to do it. please give me solution

    hi Badhe,
        WELCOME TO SDN
         Try with command  <b>GO TO NEXT PAGE</b> or <b>&SFSY-PAGEBREAK&</b>
    <b>A page break to a new page occurs as soon as the processing of a page is finished and</b>
    i.     The output control of the main window has not yet been completely processed or
    ii.     A manual page break was executed in the output control of the main window or
    iii.     The page does not contain a main window
    Regards,
    Santosh

  • How to insert page breaks, I would like certain rows to print on a new page  I am making a childrens dictionary and would like to to automactically print each letter on a new page.  is this possible?

    How do I insert a page break on certain rows in a Numbers spreadsheet.
    I am making and always updating a childrens dictonary and would like to be able to hit print and have each letter start on a new page.
    Is this possible?
    Thanks

    AM,
    Set your view to "Print View" and you will see the individual pages. More pages will be added as you drag content away from the existing pages.
    Arrange your content as you would like to see it printed. That's it. What you see is what will print.
    Jerry

  • How can you insert "Page Break" in a pdf file so you will specify the pages

    How can you insert "Page Break" in a pdf file so you will specify the pages

    How / from what was the PDF originally created?  It would be easiest to insert page breaks into the original document, then recreate the PDF.

  • RE: How can I create a page break in a file?

    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

    Tien,
    Try myFile.WriteText('\x0c'); instead of myFile.WriteText('\f');
    Regards
    Richard Stobart
    -----Original Message-----
    From: Wang, Tien [SMTP:[email protected]]
    Sent: Friday, September 12, 1997 6:09 PM
    To: Glen A. Whitbeck
    Cc: forte-users; owner-forte-users
    Subject: RE: How can I create a page break in a file?
    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

  • How can I create a page break in a file?

    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the following
    two methods, but neither of them works. Specifically, it seems a special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);
    -----------------------------------

    Tien,
    Try myFile.WriteText('\x0c'); instead of myFile.WriteText('\f');
    Regards
    Richard Stobart
    -----Original Message-----
    From: Wang, Tien [SMTP:[email protected]]
    Sent: Friday, September 12, 1997 6:09 PM
    To: Glen A. Whitbeck
    Cc: forte-users; owner-forte-users
    Subject: RE: How can I create a page break in a file?
    Thank you, Glen. I tried WriteText. But it didn't work.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    From: Glen A. Whitbeck
    Sent: Thursday, September 11, 1997 11:59 AM
    To: Wang, Tien
    Cc: forte-users; owner-forte-users
    Subject: Re: How can I create a page break in a file?
    Instead of using "WriteLine," try using "WriteText" ("WriteLine" writes
    TextData into an open file, while "WriteText" writes data to a stream)
    like this:
    <method 1>
    myFile : file = new();
    myFile.WriteText('\f');
    Glen
    Wang, Tien wrote:
    Hi,
    I am creating a text file for a report which contains multiple pages.
    How can I create a page break in my file? I tried to use the
    following
    two methods, but neither of them works. Specifically, it seems a
    special
    character printed in the file. But when I print the file through a
    WordPad, it didn't separate pages.
    I am currently using version 3.0.C on Windows NT 4.0 with a HP Plus 4
    printer. Any help will be greatly appreciated.
    Tien Wang
    Indus Consultancy Services
    [email protected]
    >
    <method 1>
    myFile : file = new();
    file.writeLine('\f'); --- \f is the form feed in the C language
    <method 2>
    myFile : file = new();
    j : IntegerData = new( value = 14 );
    c : char = j.IntegerValue; -- c now contains ascii 14 (form feed)
    p : pointer to char = &c; -- Set a pointer to the character
    pageBreakTxt : TextData = new();
    pageBreakTxt.Concat(p);
    myfile.writeLine(pageBreakTxt);

  • How to put Page break in SAP Script

    Hi Experts,
    Please tell me how to put page break in SAP Script. or give some sample code
    looking forward for your reply..
    Regards,
    Kali Pramod

    Hi,
      NEW-PAGE is used to insert a page break ,
      it can be conditional if used between IF..ENDIF
      e.g. /:IF &KNA1-NAME1& = 'XYZname'
            /:NEW-PAGE
           /:ENDIF
      If u want to Page break after displaying certain records or after some condition you use NEW-PAGE
    reward if useful.

  • How to avoid page break up in background

    hi all,
              i have developed new report i don't given page break statement .. in foreground it s coming correct  without any page break..
    when i have  schedule in background page break is coming please let me know how to avoid page break in background process.
    regards ,
    santosh
    Edited by: santosh jajur on Jul 8, 2009 12:16 PM
    Edited by: santosh jajur on Jul 8, 2009 12:46 PM

    Hi,
    When you view the output from the report run in batch you are presumably looking at the spool output.  Because you are viewing a preview of what is sent to the printer the spool applies page breaks based on the printer parameters.  When you run the report in dialog you view the report on the screen, and the spool is not involved, so no page breaks.
    If you print your report in dialog then review the spool you'll find it has the page break just as the background run has.
    Regards,
    Nick

  • How to set page break for Narrative view???

    Hi All,
    I have created a report in Narrative view using HTML code. I am stuck how to set page break based on a column in Narrative view. If anybody is aware of the issue pls let me know how to overcome this situation. Or if this can be done using HTML code itself pls let me know how to do it.
    Thanks & Regards
    Thenmozhi

    Hi Honey,
    I am not sure on ur requirement but you can achieve page break with a column using pivot view by dragging that column into section area and editing section properties to Insert Page break option.

  • Inserting Page Breaks

    I was planning on working on a TV script, and I need to be able to insert page breaks to end the various acts, how does one do this in  Story?

    Hi Christopher,
    You can press "Ctrl + Enter" to add a page break.
    Please let us know if you face any problem.
    Regards,
    Neeraj Gupta

  • How to put page break in SMARTFORMS

    Hi Guys,
              Can anyone please let me know How to put page break in SMARTFORMS
    Regards
    Avi

    Hi,
    Look at the below thread, you will get the answer
    https://www.sdn.sap.com/irj/sdn/profile?userid=2522810
    Regards
    Sudheer

  • How to insert page numbers in word

    I know how to insert page numbers that appear 1, 2, 3 etc.
    But I want to display:    1 out of 6,   2 out of 6,  3 out of 6  or similar - i.e. to have the TOTAL number of pages shown.  I can do this in Excel - is it possible in Word?  Or Pages??
    Thanks,
    Steve
    2013-06-08

    Thanks for the fast, 100% right-on reply!  (And I looked, googled… no luck)---
    I believe I can do this in PAGES, too-----
    REALLY REALLY appreciate the fast and perfect reply--- (I know this is not strictly a "Mac" issue - and nonetheless I got super help from you and appreciate CT's reply too!)
    Steve
    Saturday 8 June 2013

  • How to insert page numbers in a PDF document?

    How to insert page numbers in a PDF document using Adobe Acrobat X Pro 10.1.2?
    Thanks.

    OK, I found it myself:
    1. Tools - Pages - Edit Page Design - Header & Footer - Add Header & Footer.
    2. Select the font and size, etc, place the cursor on the appropriate site to insert the page number, click the "Insert Page Number" button, and click OK.
    That is!

  • How to delete pages in a pdf file with mac OSX Mavericks?

    Indeed i don't have Pages options in my tools window... Is that normal for the mac version? Please it's urgent...

    Sorry, it was my fault. When I searched on the Internet, I was reading the Acrobat help pages, without knowing it, because in my research I wrote "how to delete pages in a pdf file with Adobe reader", i was just automatically redirected toward Acrobat help but i didn't notice.
    So no incorrect information exist in the Reader Help pages.

Maybe you are looking for

  • Problems about deploying Oracle web application (Forms, Reports)

    I am going to deploy Oracle web applications (Forms and Reports) and plan to use the same server machine for both Application web server and Database server. 1. How can I enable SSL (for data encryption) on Application web server for Oracle Forms ? 2

  • RFC_ERROR_COMMUNICATION

    Hi, I have just done R3 lookup within mapping for one field conversion.I am getting the following error RuntimeException in Message-Mapping transformation: Exception:[com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway

  • FM Radio - Only Mono Reception

    I just picked up a Zen Micro. When turning on the radio - I only got reception in Mono. Any ideas anyone? I li've in Chicago which has very big radio stations so I dont think that is the issue. thanks.

  • Video player for nokia 3110 classic

    I am unable to play .dat file , on inbuilt media player . Pl. suggest me any other third party software can work on this phone .....

  • WebService Pluggable Data Source - When there is no proxy...

    Hi there, I'm trying to set up a report using the Webservice PDS, and keep getting errors. (I'm using Dev Suite 10g, Report Builder 10.1.2.0.2 on WinXP SP3) http://www.oracle.com/technology/products/reports/pluginxchange/index.html I believe that my