As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at firstname.lastname@example.org and provide your corporate email address, company, and name.
Is there a way to create a two column report where your data fills up one column on a page and then goes to the next column on the page. We are in the process of creating our campus phone book and in the back we have departmental listings that are two column pages.
TABLE FILE CAR
COMPUTE COUNTER/I2 =
IF COUNTER GE 4 THEN 1 ELSE COUNTER + 1;
COMPUTE COLUMN_NUM/I2 = IF COUNTER EQ 1 THEN
(IF COLUMN_NUM GE 2 THEN 1 ELSE COLUMN_NUM + 1) ELSE COLUMN_NUM;
COMPUTE PAGE_BR/I2 = IF
(LAST COLUMN_NUM NE COLUMN_NUM) AND (LAST COLUMN_NUM EQ 2)
THEN PAGE_BR + 1 ELSE PAGE_BR;
BY CAR NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS H0 FORMAT ALPHA
DEFINE FILE H0 ROW_1/A20 =
IF COLUMN_NUM EQ 1 THEN CAR ELSE '';
IF COLUMN_NUM EQ 2 THEN CAR ELSE '';
TABLE FILE H0
MAX.ROW_1 MAX.ROW_2BY PAGE_BR
NOPRINT BY COUNTER NOPRINTON PAGE_BR PAGE-BREAK ON TABLE PCHOLD FORMAT PDF END-RUN
This message has been edited. Last edited by: <Mabel>,
Posts: 406 | Location: Canada | Registered: May 31, 2004
You might want to check out the "Mailing Label" printing options. They are described in the "Creating Reports" manual, in the chapter on "Laying out the Report Page". You make each entry a "label" and then specify how to print them the way you want. There are special options you put in your stylesheet. You can set PAGEMATRIX=(2 N) for 2 columns and N (replaced by numbers of rows you want), and MATRIXORDER to VERTICAL to print down first, then the next column. The full syntax and other options for the "labels" are in the documentation.
Posts: 391 | Location: California | Registered: April 14, 2003