The following example demonstrates how to suppress the generation of column headers and titledashes at the top of an exported report.
.LOGON mydbs/myid, mypwd CREATE TABLE Employer_Location (EmpNo INTEGER, Location CHAR(5)); INSERT INTO Employer_Location VALUES(1, 'LA'); INSERT INTO Employer_Location VALUES(2, 'NYC'); INSERT INTO Employer_Location VALUES(3, 'ATL'); .SET TITLEDASHES OFF .EXPORT REPORT FILE=myfile1.exp SELECT EmpNo (TITLE ''), Location (TITLE '') FROM Employer_Location; .EXPORT RESET .SET TITLEDASHES ON .EXPORT REPORT FILE=myfile2.exp SELECT EmpNo, Location FROM Employer_Location; .EXPORT RESET .LOGOFF .EXIT
Output for myfile1.exp:
1 LA 2 NYC 3 ATL
Output for myfile2.exp:
EmpNo Location ----------- -------- 1 LA 2 NYC 3 ATL
For file myfile1.exp, with TITLEDASHES turned OFF and the phrase TITLE '' (title text NULL) used for all columns in the SELECT statement, BTEQ has no header information to print and immediately begins printing data.
For file myfile2.exp, with TITLEDASHES turned ON and no phrase for TITLE used with the columns in the SELECT statement, BTEQ prints the column header and titledashes lines and then begins printing data.
After suppressing the title text and titledashes in the exported report, the IMPORT command can be used with data format REPORT on this file without making any modifications.