Browse Prior Art Database

Method for Formatting a Report

IP.com Disclosure Number: IPCOM000077504D
Original Publication Date: 1972-Aug-01
Included in the Prior Art Database: 2005-Feb-25
Document File: 4 page(s) / 73K

Publishing Venue

IBM

Related People

Madden, RA: AUTHOR

Abstract

This is a method for generating a formatted report complete with column headings and totals, without requiring the problem programmer to go through the detailed calculations and tedious coding necessary to determine end positions. This generated report includes the spacing of fields and/or literals to identify the total lines. If there is too much information to fit on one line, a second line complete with column headings and totals is created automatically.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 63% of the total text.

Page 1 of 4

Method for Formatting a Report

This is a method for generating a formatted report complete with column headings and totals, without requiring the problem programmer to go through the detailed calculations and tedious coding necessary to determine end positions. This generated report includes the spacing of fields and/or literals to identify the total lines. If there is too much information to fit on one line, a second line complete with column headings and totals is created automatically.

In order to create a properly formatted report it is necessary to:
A) Space fields across a page to provide an equal number of

spaces

between fields.
B) Space column headings to appear over the fields in a

pleasing

manner. (Right justified for numeric fields; left justified

for alphameric fields; with shorter headings centered on longer

headings.)
C) Space totals to appear under the fields to which they apply.
D) Space asterisks used to identify totals to appear immediately

to

the right of the totals to which they apply.
E) Space fields and/or literals used to identify a total line to

appear

right justified, two spaces to the left of the first total of

the

line.
F) Space any fields (along with their associated column headings

and

totals) whose calculated end position is greater than the

printer

width to appear right justified on a second line, with the same

type

of spacing as on the first line.

The steps necessary to meet the above requirements are: Step 1 Process each column description from Step 1 in the figure

through Step 3, repeating the loop until finished with

the last column description.

Step 2 (1) For literals the column width is equal to the length of

the literal.

(2) Length of field includes necessary edit characters

to edit the field. If totaling is done, length of

total field is used.

(3) Length of column heading is the length of the

longest heading for the column. Multiple column

headings may be specified.

Step 3 (1) If end position is specified, it is used unless overlapping

1

Page 2 of 4

of columns occurs.

(2) For combinations of fields and literals the

following spacing

between columns occurs:

a) two spaces between fields

b) one space between a field and literal

c) no spaces between literals

(3) Shorter column headings are centered on the longest.

(4) If length of column heading is greater than length

of field, field is centered under column heading.

(5) If field is longer than column heading, heading is:

a) left justified over alphameric fields

b) right justified over numeric fields

Step 4 (1) If there are n total lines including final totals, final

total line will have n asterisks.

(2) Lowest level total line will have one asterisk.

(3) If field in last column, end position for asterisk is:

a) end positio...