How to Specify Page Breaks | Basic Teradata Query - Specifying Page Breaks - Basic Teradata Query

Basic Teradata® Query Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Basic Teradata Query
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
gxl1691484661681.ditamap
dita:ditavalPath
obe1474387269547.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 previous example 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