Specifying Page Breaks - Basic Teradata Query

Basic Teradata Query Reference

Product
Basic Teradata Query
Release Number
16.20
Published
October 2018
Language
English (United States)
Last Update
2020-02-20
dita:mapPath
kil1527114222313.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
psp1479308573013
Product Category
Teradata Tools and Utilities

By default, BTEQ uses all of the space available on each page for report information. Use the BTEQ PAGEBREAK command to force a page break and begin with a new page whenever the value of a specified column changes.

Example – PAGEBREAK

Replace the UNDERLINE command with a PAGEBREAK command in the previous example:

.SET PAGEBREAK ON 1
.SET SUPPRESS ON 1
select deptno, name from employee
where deptno in (100, 300) 
order by deptno;

The example above produces the following two-page report:

page 1:

DeptNo  Name
------  -----------
   100  Chin M
        Greene W
        Moffit H
        Peterson J

page 2:

DeptNo  Name
------  -----------
   300  Russell S
        Phan A
        Leidner P