CHAP17.PPT 121KB Jun 05 2011 09:30:18 PM
��#ࡱ#�################>###��
#################
###################����############�����������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
�����������������������������������������������������##O#l#e#1#0#N#a#t#i#v#e######
#######################################������������################################
########$#######O#b#j#e#c#t#2######################################################
#����##############�######F#### ��#��#@�#��###############O#l#e#########################################################
###������������##################################################C#o#m#p#O#b#j#####
########################################################����#######################
################x###########������############
###�###�����#######
############################################################################## ###!
###"#######$###%#####'###(###)###*###+###,######.###/###0###1###2###3###4###5###6###7###8###9###:###;######?
###@###A###B###C###D###E###F###G###H###I###J###K###L###M###N###O###P###Q###R###S###
T###U###V###W###X###Y###Z###[###\###]###^###_###`###a###b###c###d###e###f###g###h##
#i###j###k###l###m###n###o###p###q###r###s###t###u###v###w###x###y###z###{###|
###}###~###ࡱ###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###
�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�##
#�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�#
##�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�
###�###�###�###�###�###�###�###�###�###�###�###�###�����###�###�###�###�###�###�###
�###�###�###�###�###�###�###�###�###�###������������������������������������������
�����������������������������������
�#####E###?
#1##�##f#>#(###(###y###[###########�#########################�##�###��#�###�#�#��##
���#���###�##�###��#�###�#�#��##���#```````````````````````````````````````````````
``````````````###################################################################``
```````````````````````````````````````````````````````````
############################################################
```�`````````````````````````````````````````````````````````
N###f#####################################################"###
```��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�````
###hfffffffffffffffffffffffffffffffffffffffffffffffffffff
######```�o�o�����f�f�f�f�f�f�f�o��f�f�f�f�f�f�f�f�f�f�f�f�f```f######jffffffffffff
fffffffffffffffffffffffffffffffffffffffff
######```��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�````Inc###hfffffffff
ffffffffffffffffffffffffffffffffffffffffffff ###rk
```�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```es
C###jfffffffffffffffffffffffffffffffffffffffffffffffffffff"###pyr```��f�f������f�f�
f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```ld
b###hfffffffffffffffffffffffffffffffffffffffffffffffffffff ##
In```�f�f�f�o������o������o���������������������f�f�f�f````onl###jffffffffffffffff
fffffffffffffffffffffffffffffffffffff ###o
r```��f�f�����o���������o�������������o��o������f�f�```he
u###hfffffffffffffffffffffffffffffffffffffffffffffffffffff
###ine```�f�f�f��������������o����������������o���f�o��f�f�f````#@####jfffffffffff
ffffffffffffffffffffffffffffffffffffffffff"##
###���###Cartoons#C:\MSOFFICE\CLIPART\PCSFILES\CARTOONS.PCS########################
###################################################################################
#################################################################PS################
##########################################��#ࡱ#�################>#####��#
##����######�######F####Microsoft ClipArt
Gallery#####MS_ClipArt_Gallery#####MS_ClipArt_Gallery#####��#ࡱ#�###################
#############��#ࡱ#�################>###��
###############O#l#e#1#0#N#a#t#i#v#e#############################################��
����������########################################$#######P#P#4#0##################
#######################################
###������������#########################################�########S#u#m#m#a#r#y#I#n#
f#o#r#m#a#t#i#o#n###########################(###������������#######################
#############�###�#######C#u#r#r#e#n#t#
#I#D#################################################������������##################
##############################################����####�������� ###
#######
###����####�����������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
���������������������������������������������������������
###���###Cartoons#C:\MSOFFICE\CLIPART\PCSFILES\CARTOONS.PCS######################�#
#�###��#�###�#�#��##���#���###�##�###��#�###�#�#��##���#����#######################
#################################################################PS################
##########################################��#ࡱ#�################>#####��#
##����######�######F####Microsoft ClipArt
Gallery#####MS_ClipArt_Gallery#####MS_ClipArt_Gallery#�9�q############��#ࡱ#�#######
#############��#ࡱ#�################>###�� #############R#o#o#t#
#E#n#t#r#y#################################################��������################
################ ]
�#��#####�#######O#b#j#e#c#t#1#####################################################
## ###
#############�######F####�
m#��#@��#��###############O#l#e####################################################
#####
###������������##################################################C#o#m#p#O#b#j#####
########################################################����#######################
#################l###########b`b��f�f���o�������������������������������f�f�f�```o
�####hfffffffffffffffffffffffffffffffffffffffffffffffffffff
######```�f�f�f��������o�o���������o���o������o����f�f�f�f````######jfffffffffffff
ffffffffffffffffffffffffffffffffffffffff
######b`b��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```e���###hfffffffff
ffffffffffffffffffffffffffffffffffffffffffff
####�#```�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f````�#�###jfffffffff
ffffffff�fffffffffffffffffffffffffffffffffff"###���f`f��f�f�f�o�o�o�f���o��o����o�f
���o��o���f�f�f�f�```e���###hfffffffooo�o��oo�f��o����oo����of��o������ffffffff
###���`b`�f�f�f�f�o�f�f�f�o�f�o�f�f�f�f�f�o��f�f�f�f�f�f�f�f�f```e���###jffffffffff
fffffffffff�fffffffffffffffffffffffffffffff
###���f`f��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```e���###hfffffffff
ffffffffo��oo����o��oo��offffffffffffffffff
###�#�bf`�f�f�f�f�f�f�f�f�f�f�������o�������f�f�f�f�f�f�f�f�f```o#�####jfffffffffff
ffffffo��fofff�o�f�offffffffffffffffffffff"###���fbf��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f
�f�f�f�f�f�f�f�f�f�f�f�```e���###hfffffffffffffffffffffffffffffffffffffffffffffffff
ffff
###���`fb�f�f�f�f�f�f�f�f�f�f�f�f��f�f�f�f�f�f�f�f�f�f�f�f�f�f```e���###jffffffffff
ffffffffff���oo����offfffffffffffffffffff
###���fff��f�f�f�f�f�f�f�f�f�f��o�������f�f�f�f�f�f�f�f�f�f�```e���###hffffffffffff
ffffffff��fffffff��ffffffffffffffffffffff
####�#ffb�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f��f�f�f�f�f�f�f�f�f�f�f````�#�###jffffffffff
fffffffffffffffffffffffffffffffffffffffffff"###���fff��f�f�f�f�f�f�f�f�f�f�f�f�f�f�
f�f�f�f�f�f�f�f�f�f�f�f�```e���##&hfffffffffffffffffffffffffffffff�ffffffo�ffffffff
fffff
###���bff�f�f�f�f�f�f�f����������o�f���f����o�f�f�f�f�f�f�f```e���###jfffffffffffo
o�of�ofo��������f�o���o��ffffffffffff
###���fff��f�f�f�f�f�f���f�f�o�f�f�f�f�f�f��f�f�f�f�f�f�f�f�f�```e���f#&hffffffffff
ffffffffffffffffffffffffff�ffffffffffffffff
###�#�fff�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```o#�##jfffffffff
fffffffff���ooof��o������ffffffffffffffffff"###���fff��f�f�f�f�f�f�f�f�f�o�����f���
���f�f�f�f�f�f�f�f�f�```e���fhffffffffffffffffff��f�ffofo�o��ffffffffffffffffffff
ff
###���fff�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```e���#jfffffffff
ffffffffffffffffffffffffffffffffffffffffffff
###���fff��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```e���f&fhfffffffff
fffffffffffffffffffffffffoffffffffffffffffff
####�#fff�f�f�f�f�f�f�f�f�o���o��f���������f�f�f�f�f�f�f�f�f````�#�#f#jffffffffffff
ffffo���oo�of��������fffffffffffffffff"###���fff��f�f�f�f�f�f�f�f�f�o�o�f���f�f�f�f
�f�f�f�f�f�f�f�f�f�```e���f&fhffffffffffffffffffff�ffffffffffffffffffffffffffffffff
###���fff�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```e���&f&jfffffffff
fffffffffff�o��f�o��oooffffffffffffffffffff
###���ff��f�f�f�f�f�f�f�f�f�f�����f���o�f�f�f�f�f�f�f�f�f�f�```e���fffhffffffffffff
ffffffffoofffffo��fffffffffffffffffffffff
###�#�fff�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```o#�#&f&jfffffffff
ffffffffffffffffffffffffffffffffffffffffffff"###���ff���f�f�f�f�f�f�f�f�f�f�f�f�f�f
�f�f�f�f�f�f�f�f�f�f�f�f�```e���fffhffffffffffffffffffffo�fffffffffffffffffffffffff
ffffff
###���fff�f�f�f�f�f�f�f�f�f�o����������o�f�f�f�f�f�f�f�f�f�f```e���fffjffffffffffff
ffffffoo�������o���fffffffffffffffffff
###����f���f�f�f�f�f�f�f�f�f���f�o�f�f�o�f�f�f�f�f�f�f�f�f�f�f�```e�##fffhfffffffff
fffffffffffffffffff�ffffffffffffffffffffffff
####�#f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f���f�f�f�f�f���f�f````�#�fffjffffo���o
��o���o��f���o�o�o�foof����o��������o�ffff"###����f���f�f�o��o�o�o�o���o�o���o�o�f
�o�������o��o�f�f�```e���fffhffffo��o�o�o���ofof�o��ooffo�o�o����o���o�ffff
###���fff�f�f�o�f�f�f�f�f�f����o�o�o�f��f�f�f�f�f�f�f�f�f�f```e���fffjfffffffffffff
ffffffffffffffffffffffffffffffffffffffff
###����f���f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```o###fffnfffffffff
fffffffffffffffffffffffffffffffffffffffffffn
###�#�f�f����������������������������```o#�#fff�����������������������������������
��������������������###����f�f�f�f�f�f�f�ffffffffffffffffffbfff`f`f`b`b````````````
```e���fffffffffffffffff&f&f&f#f################################���fff�fff�fff�
ffffffffffffffffbfff`fbf`b`b````````````````````e���ffffffffffffff&f&f#####
##############################����f�f�f�f�f�f�fff�ffffffffffffffbfffbf`f`f`b`b`````
```````````�#�d###�=)##�##�U)#####��)#####��)##4##��)###� 0##"##�/0#####�Q0##
##�i0#####��0#####��0##�##��0###�C1##"##�i1#####��1##@##��1#####��1#####��1##�##�
�1###��3##"##��3#####��3##@##��3#####�34#####�34##�##�34###��7##"##��7#####�#8#
#@##�#8#####�c8#####�c8##�##�c8###�3:##"##�Y:#####�{:##@##��:#####��:#####��:##.#
#��:###�#?##"##�'?#####�I?## ##�a?#####��?#####��?##�##��?
###�5@##"##�[@#####�}@##@##��@#####��@#####��@##�##��@###��C##"##��C#####��C##@
##��C#####�5D#####�5D##�##�5D###��G##"##��G#####�#H##@##�3H#####�sH#####�sH#####�
sH###��M##"##��M#####��M##@##��M#####�1N#####�1N##\##�1N###��Q##"##��Q#####��Q#
#@##��Q#####�-R#####�-R#####�R###�EU##"##�kU#####��U##@##��U#####��U#####��U##�##��U###��Z##"##��Z#####��Z##
@##�
[#####�I[#####�I[##V##�I[###��]##"##��]#####��]##@##��]#####�?^#####�?
^##�##�?
^###�#a##"##�1a#####�Sa##@##�ka#####��a#####��a#####��a###��c##"##��c#####��c##
@##�#d#####�Od#####�Od##>##�Od###��h##"##��h#####��h##@##��h#####�-i#####�i##�##�i###��l##"##��l#####��l##@##�#m#####�Sm#####�Sm##�##�Sm###��o##"##�#p#####�1p##
@##�Ip#####��p#####��p##
##��p###��r##"##��r#####��r##@##��r#####�3s#####�3s##f##�3s###��u##"##��u#####�
�u##@##��u#####�9v#####�9v##�##�9v###��v##"##��v#####�#w##@##�/w#####�ow#####�ow#
#J##�ow###��y##"##��y#####�#z##
##�#z#####�9z#####�9z##P##�9z###��~##"##��~#####��~##@##��~#####�)ࡱ#####�)ࡱ##p##�
)ࡱ###� ��
##"##���#####��##@##��#####�9�#####�9�##�##�9�###�#�##"##�'�#####�I�##@
##�a�#####���#####���##�##���###�+�##"##�Q�#####�s�##@##���#####�˅#####�˅##�##�˅#
##�g�##"##���#####���##@##�LJ#####�#�#####�#�##x##�#�###�ࡱ�##"##�� #####�lj##@##
�ࡱ �
##" # #��� ## #� #� # #� ##� #� #####� #� #####߉#####��##@##�#�#####�Q�#####�Q�##�
##�Q�###��##"##�#�#####�9�##@##�Q�#####���#####���##�##���###�S�##"##�y�#####��
�##@##���#####��#####��###��###�#�##"##�?
�#####�a�##@##�y�#####���#####���##�##���###�M�##"##�s�#####���##@##���#####��###
##��##V##��###�C�##"##�i�#####���##@##���#####��#####��##�##��###�w�##"##���###
##���##@##�ך#####�#�#####�#�##�##�#�###�\##"##��#####� �##@##�!
�#####�a�#####�a�##�##�a�###�C�##"##�i�#####���##@##���#####��#####��##�##��###
���##"##���#####�Ѣ##@##��#####�)�#####�)�##�##�)�###��##"##�#�#####�?
�##@##�W�#####���#####���##.##���###�Ũ##"##��#####��##@##�
%�#####�e�#####�e�##z##�e�###�
�߫##"##�#�#####�'�##@##�?
�#####�ࡱ�#####�ࡱ�##�##�ࡱ�###�9�##"##�_�#####�� ##@##���#####�
� #####�
�
� ##v##�
�
��###
�O�##"##�u�#####���##@##���#####��#####��##�##��###�ŵ##"##��#####��##@##�
%�#####�e�#####�e�##�##�e�###�#�##"##�5�#####�W�##@##�o�#####���#####���##�##���#
##�[�##"##���#####���##@##���#####��#####��##�##��###���##"##��#####�#�##@##�#�
#####�[�#####�[�##�##�[�###�#�##"##�)�#####�K�##@##�c�#####���#####���##`##���##&
##�#�##"##�)�#####�K�##@##�c�#####���#####���#####���###���##"##���#####���##@##�
#�#####�C�#####�C�##�##�C�###���##"##�#�#####�'�##@##�?
�#####�ࡱ�#####�ࡱ�##^##�ࡱ�###�� ##"##�#�#####�
%�##@##�=�#####�}�#####�}�#####�}�###�}�##"##���#####���##@##���#####�#�#####�#�#
#�##�#�###�
�##"##�3�#####�U�##@##�m�#####���#####���##p##���###�#�##"##�C�#####�e�##@##�}�##
###���#####���##�##���###�G�##"##�m�#####���##@##���#####���#####���##�##���###
�}�##"##���#####���##@##���#####�#�#####�#�##�##�#�###���##"##���#####�#�##@##�3�
#####�s�#####�s�#####�s�###�u�##"##���#####���##@##���#####�#�#####�#�##�##�#�##&
##�#�##"##�)�#####�K�##@##�c�#####���#####���##�##���###�5�##"##�[�#####�}�##@##�
��#####���#####���##�##���###�Y�##"##�ࡱ�#####�� ##@##���#####���#####���##�##���#
##���##"##���#####��##@##�
%�#####�e�#####�e�##�##�e�###�#�##"##�I�#####�k�##@##���#####���#####���##�##���#
##���##"##���#####���##@##�#�#####�U�#####�U�##H##�U�###���##"##���#####���##
##���#####�#�#####�#�##�##�#�###���##"##���#####�#�##@##�'�#####�g�#####�g�##�##�
g�###�S�##"##�y�#####���##@##���#####���#####���#####���###�####"##�######�O###@##�g######��######��###N##��####��###"##�#######�=###@##�U######��###
###��###�##��####�#
##"##�;
#####�]
##@##�u
#####��
#####��
#####��
###��##"##��
#####�####@##�#######�]######�]###�##�]####�####"##�7######�Y###@##�q######��####
##��###�##��####�S###"##�y###�##��######�[######�q###�##��######�i###�##�i###�##�
#####��"##@##��"#####�%######�%###P##�
%####�u$##"##��$#####��$#####��$#####��$#####��$#####��$###��$##"##� %#####�+
%#####�C%#####�C%#####�C%#####�C%###�Q%##"##�w%##�-#@�
%######!
###############�#################����####
#########AGg�#� ��############�##�#### A�7�`�W �#############�##�
�U####�###########r##�##��@�M
���####��####T�n#��K#########d#########
###INTRODUCTION
#
#########
#####$###########
#########
####��#��d#########d#########2##�##q�}�#
c#��####��####T�n#��K#########d#############COBOL has a Report Writer Module
that greatly facilitates print operations. By including additional DATA DIVISION
entries, the Report Writer will automatically handle all: 1. Spacing of forms.2.
Skipping to a new page.3. Testing for end of page.4. Printing of headings at the
top of a page and footings at the bottom of a page.5. Accumulating of amount
fields.6. Testing for control breaks.7. Detail and/or summary printing.8. Printing
of totals for control breaks.9. Printing of a final total when there are no more
input records.
###################################
###�###T#n###K#########d###########T#n###K#########d###########T#n###K#########d###
########T#n###K#########d#######S###T#n###K#########d#######"###T#n###K#########d##
#########T#n###K#########d###########T#n###K#########d#######*###T#n###K#########d#
######B###T#n###K#########d#######'###$#########################
%#####�#7,####(#################################����####
#########AGg��� ��############�##�#�#########UI######r##�##��#�M
����$###��#####��#��d#########d#####
###(###The Benefits of the#Report Writer
Module
#(#########(#####,###########(#########(####��#��d#########d#######.###+###########
��##########*###/###############�#################����####
#########AG���� S�############�##d#�=# A����#
�#############�##,
�=####�###########r##�###�� 6��$###��#####��#��d#########d#############For Detail
and Summary Printing�
#################$##########################��#��d#########d##### ###2##�##1���
�#��####��####U�l#��K#########d#########B###You will recall that many reports
in business require:1. Detail printing - The printing of one or more lines for each
input record.2. Summary or group printing - The printing of totals or other summary
information for groups of records.The Report Writer Module can be easily used for
both detail and/or summary reports.
#B#########B#################B#########7###U#l###K#########d#######N###T#n###K#####
####d#######j###T#n###K#########d#######S###U#l###K#########d#######5###2##########
###############3###4###4#7,1###6#################################����####
#########AGg�#� ��############�##d#�=# A�g�p� �#############�###
�=####�###)#######r##�##��0�M
���,###��#####��#��d#########d#############For
Control Break Processing
#################,##########################��#��d#########d#########2##�##���M
s#��####��####U�l#��K#########d#############A report has both detail and
summary printing. That is, when input records with the same department number are
read, the records are printed and the total amount of sales for each salesperson is
accumulated. When a change or �break� in the department number occurs, the
accumulated total of all amounts of sales is printed as a control total line. We
call department number a control field. Summary printing is performed as a result
of the control break that occurs when there is a change in thee department number.
#######################################0###U#l###K#########d#######�###U#l###K#####
####d#######�###U#l###K#########d#######,###U#l###K#########d#######|
###U#l###K#########d#######
#################
###################����############�����������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
�����������������������������������������������������##O#l#e#1#0#N#a#t#i#v#e######
#######################################������������################################
########$#######O#b#j#e#c#t#2######################################################
#����##############�######F#### ��#��#@�#��###############O#l#e#########################################################
###������������##################################################C#o#m#p#O#b#j#####
########################################################����#######################
################x###########������############
###�###�����#######
############################################################################## ###!
###"#######$###%#####'###(###)###*###+###,######.###/###0###1###2###3###4###5###6###7###8###9###:###;######?
###@###A###B###C###D###E###F###G###H###I###J###K###L###M###N###O###P###Q###R###S###
T###U###V###W###X###Y###Z###[###\###]###^###_###`###a###b###c###d###e###f###g###h##
#i###j###k###l###m###n###o###p###q###r###s###t###u###v###w###x###y###z###{###|
###}###~###ࡱ###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###
�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�##
#�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�#
##�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�###�
###�###�###�###�###�###�###�###�###�###�###�###�###�����###�###�###�###�###�###�###
�###�###�###�###�###�###�###�###�###�###������������������������������������������
�����������������������������������
�#####E###?
#1##�##f#>#(###(###y###[###########�#########################�##�###��#�###�#�#��##
���#���###�##�###��#�###�#�#��##���#```````````````````````````````````````````````
``````````````###################################################################``
```````````````````````````````````````````````````````````
############################################################
```�`````````````````````````````````````````````````````````
N###f#####################################################"###
```��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�````
###hfffffffffffffffffffffffffffffffffffffffffffffffffffff
######```�o�o�����f�f�f�f�f�f�f�o��f�f�f�f�f�f�f�f�f�f�f�f�f```f######jffffffffffff
fffffffffffffffffffffffffffffffffffffffff
######```��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�````Inc###hfffffffff
ffffffffffffffffffffffffffffffffffffffffffff ###rk
```�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```es
C###jfffffffffffffffffffffffffffffffffffffffffffffffffffff"###pyr```��f�f������f�f�
f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```ld
b###hfffffffffffffffffffffffffffffffffffffffffffffffffffff ##
In```�f�f�f�o������o������o���������������������f�f�f�f````onl###jffffffffffffffff
fffffffffffffffffffffffffffffffffffff ###o
r```��f�f�����o���������o�������������o��o������f�f�```he
u###hfffffffffffffffffffffffffffffffffffffffffffffffffffff
###ine```�f�f�f��������������o����������������o���f�o��f�f�f````#@####jfffffffffff
ffffffffffffffffffffffffffffffffffffffffff"##
###���###Cartoons#C:\MSOFFICE\CLIPART\PCSFILES\CARTOONS.PCS########################
###################################################################################
#################################################################PS################
##########################################��#ࡱ#�################>#####��#
##����######�######F####Microsoft ClipArt
Gallery#####MS_ClipArt_Gallery#####MS_ClipArt_Gallery#####��#ࡱ#�###################
#############��#ࡱ#�################>###��
###############O#l#e#1#0#N#a#t#i#v#e#############################################��
����������########################################$#######P#P#4#0##################
#######################################
###������������#########################################�########S#u#m#m#a#r#y#I#n#
f#o#r#m#a#t#i#o#n###########################(###������������#######################
#############�###�#######C#u#r#r#e#n#t#
#I#D#################################################������������##################
##############################################����####�������� ###
#######
###����####�����������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
����������������������������������������������������������������������������������
���������������������������������������������������������
###���###Cartoons#C:\MSOFFICE\CLIPART\PCSFILES\CARTOONS.PCS######################�#
#�###��#�###�#�#��##���#���###�##�###��#�###�#�#��##���#����#######################
#################################################################PS################
##########################################��#ࡱ#�################>#####��#
##����######�######F####Microsoft ClipArt
Gallery#####MS_ClipArt_Gallery#####MS_ClipArt_Gallery#�9�q############��#ࡱ#�#######
#############��#ࡱ#�################>###�� #############R#o#o#t#
#E#n#t#r#y#################################################��������################
################ ]
�#��#####�#######O#b#j#e#c#t#1#####################################################
## ###
#############�######F####�
m#��#@��#��###############O#l#e####################################################
#####
###������������##################################################C#o#m#p#O#b#j#####
########################################################����#######################
#################l###########b`b��f�f���o�������������������������������f�f�f�```o
�####hfffffffffffffffffffffffffffffffffffffffffffffffffffff
######```�f�f�f��������o�o���������o���o������o����f�f�f�f````######jfffffffffffff
ffffffffffffffffffffffffffffffffffffffff
######b`b��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```e���###hfffffffff
ffffffffffffffffffffffffffffffffffffffffffff
####�#```�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f````�#�###jfffffffff
ffffffff�fffffffffffffffffffffffffffffffffff"###���f`f��f�f�f�o�o�o�f���o��o����o�f
���o��o���f�f�f�f�```e���###hfffffffooo�o��oo�f��o����oo����of��o������ffffffff
###���`b`�f�f�f�f�o�f�f�f�o�f�o�f�f�f�f�f�o��f�f�f�f�f�f�f�f�f```e���###jffffffffff
fffffffffff�fffffffffffffffffffffffffffffff
###���f`f��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```e���###hfffffffff
ffffffffo��oo����o��oo��offffffffffffffffff
###�#�bf`�f�f�f�f�f�f�f�f�f�f�������o�������f�f�f�f�f�f�f�f�f```o#�####jfffffffffff
ffffffo��fofff�o�f�offffffffffffffffffffff"###���fbf��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f
�f�f�f�f�f�f�f�f�f�f�f�```e���###hfffffffffffffffffffffffffffffffffffffffffffffffff
ffff
###���`fb�f�f�f�f�f�f�f�f�f�f�f�f��f�f�f�f�f�f�f�f�f�f�f�f�f�f```e���###jffffffffff
ffffffffff���oo����offfffffffffffffffffff
###���fff��f�f�f�f�f�f�f�f�f�f��o�������f�f�f�f�f�f�f�f�f�f�```e���###hffffffffffff
ffffffff��fffffff��ffffffffffffffffffffff
####�#ffb�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f��f�f�f�f�f�f�f�f�f�f�f````�#�###jffffffffff
fffffffffffffffffffffffffffffffffffffffffff"###���fff��f�f�f�f�f�f�f�f�f�f�f�f�f�f�
f�f�f�f�f�f�f�f�f�f�f�f�```e���##&hfffffffffffffffffffffffffffffff�ffffffo�ffffffff
fffff
###���bff�f�f�f�f�f�f�f����������o�f���f����o�f�f�f�f�f�f�f```e���###jfffffffffffo
o�of�ofo��������f�o���o��ffffffffffff
###���fff��f�f�f�f�f�f���f�f�o�f�f�f�f�f�f��f�f�f�f�f�f�f�f�f�```e���f#&hffffffffff
ffffffffffffffffffffffffff�ffffffffffffffff
###�#�fff�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```o#�##jfffffffff
fffffffff���ooof��o������ffffffffffffffffff"###���fff��f�f�f�f�f�f�f�f�f�o�����f���
���f�f�f�f�f�f�f�f�f�```e���fhffffffffffffffffff��f�ffofo�o��ffffffffffffffffffff
ff
###���fff�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```e���#jfffffffff
ffffffffffffffffffffffffffffffffffffffffffff
###���fff��f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```e���f&fhfffffffff
fffffffffffffffffffffffffoffffffffffffffffff
####�#fff�f�f�f�f�f�f�f�f�o���o��f���������f�f�f�f�f�f�f�f�f````�#�#f#jffffffffffff
ffffo���oo�of��������fffffffffffffffff"###���fff��f�f�f�f�f�f�f�f�f�o�o�f���f�f�f�f
�f�f�f�f�f�f�f�f�f�```e���f&fhffffffffffffffffffff�ffffffffffffffffffffffffffffffff
###���fff�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```e���&f&jfffffffff
fffffffffff�o��f�o��oooffffffffffffffffffff
###���ff��f�f�f�f�f�f�f�f�f�f�����f���o�f�f�f�f�f�f�f�f�f�f�```e���fffhffffffffffff
ffffffffoofffffo��fffffffffffffffffffffff
###�#�fff�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f```o#�#&f&jfffffffff
ffffffffffffffffffffffffffffffffffffffffffff"###���ff���f�f�f�f�f�f�f�f�f�f�f�f�f�f
�f�f�f�f�f�f�f�f�f�f�f�f�```e���fffhffffffffffffffffffffo�fffffffffffffffffffffffff
ffffff
###���fff�f�f�f�f�f�f�f�f�f�o����������o�f�f�f�f�f�f�f�f�f�f```e���fffjffffffffffff
ffffffoo�������o���fffffffffffffffffff
###����f���f�f�f�f�f�f�f�f�f���f�o�f�f�o�f�f�f�f�f�f�f�f�f�f�f�```e�##fffhfffffffff
fffffffffffffffffff�ffffffffffffffffffffffff
####�#f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f���f�f�f�f�f���f�f````�#�fffjffffo���o
��o���o��f���o�o�o�foof����o��������o�ffff"###����f���f�f�o��o�o�o�o���o�o���o�o�f
�o�������o��o�f�f�```e���fffhffffo��o�o�o���ofof�o��ooffo�o�o����o���o�ffff
###���fff�f�f�o�f�f�f�f�f�f����o�o�o�f��f�f�f�f�f�f�f�f�f�f```e���fffjfffffffffffff
ffffffffffffffffffffffffffffffffffffffff
###����f���f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�f�```o###fffnfffffffff
fffffffffffffffffffffffffffffffffffffffffffn
###�#�f�f����������������������������```o#�#fff�����������������������������������
��������������������###����f�f�f�f�f�f�f�ffffffffffffffffffbfff`f`f`b`b````````````
```e���fffffffffffffffff&f&f&f#f################################���fff�fff�fff�
ffffffffffffffffbfff`fbf`b`b````````````````````e���ffffffffffffff&f&f#####
##############################����f�f�f�f�f�f�fff�ffffffffffffffbfffbf`f`f`b`b`````
```````````�#�d###�=)##�##�U)#####��)#####��)##4##��)###� 0##"##�/0#####�Q0##
##�i0#####��0#####��0##�##��0###�C1##"##�i1#####��1##@##��1#####��1#####��1##�##�
�1###��3##"##��3#####��3##@##��3#####�34#####�34##�##�34###��7##"##��7#####�#8#
#@##�#8#####�c8#####�c8##�##�c8###�3:##"##�Y:#####�{:##@##��:#####��:#####��:##.#
#��:###�#?##"##�'?#####�I?## ##�a?#####��?#####��?##�##��?
###�5@##"##�[@#####�}@##@##��@#####��@#####��@##�##��@###��C##"##��C#####��C##@
##��C#####�5D#####�5D##�##�5D###��G##"##��G#####�#H##@##�3H#####�sH#####�sH#####�
sH###��M##"##��M#####��M##@##��M#####�1N#####�1N##\##�1N###��Q##"##��Q#####��Q#
#@##��Q#####�-R#####�-R#####�R###�EU##"##�kU#####��U##@##��U#####��U#####��U##�##��U###��Z##"##��Z#####��Z##
@##�
[#####�I[#####�I[##V##�I[###��]##"##��]#####��]##@##��]#####�?^#####�?
^##�##�?
^###�#a##"##�1a#####�Sa##@##�ka#####��a#####��a#####��a###��c##"##��c#####��c##
@##�#d#####�Od#####�Od##>##�Od###��h##"##��h#####��h##@##��h#####�-i#####�i##�##�i###��l##"##��l#####��l##@##�#m#####�Sm#####�Sm##�##�Sm###��o##"##�#p#####�1p##
@##�Ip#####��p#####��p##
##��p###��r##"##��r#####��r##@##��r#####�3s#####�3s##f##�3s###��u##"##��u#####�
�u##@##��u#####�9v#####�9v##�##�9v###��v##"##��v#####�#w##@##�/w#####�ow#####�ow#
#J##�ow###��y##"##��y#####�#z##
##�#z#####�9z#####�9z##P##�9z###��~##"##��~#####��~##@##��~#####�)ࡱ#####�)ࡱ##p##�
)ࡱ###� ��
##"##���#####��##@##��#####�9�#####�9�##�##�9�###�#�##"##�'�#####�I�##@
##�a�#####���#####���##�##���###�+�##"##�Q�#####�s�##@##���#####�˅#####�˅##�##�˅#
##�g�##"##���#####���##@##�LJ#####�#�#####�#�##x##�#�###�ࡱ�##"##�� #####�lj##@##
�ࡱ �
##" # #��� ## #� #� # #� ##� #� #####� #� #####߉#####��##@##�#�#####�Q�#####�Q�##�
##�Q�###��##"##�#�#####�9�##@##�Q�#####���#####���##�##���###�S�##"##�y�#####��
�##@##���#####��#####��###��###�#�##"##�?
�#####�a�##@##�y�#####���#####���##�##���###�M�##"##�s�#####���##@##���#####��###
##��##V##��###�C�##"##�i�#####���##@##���#####��#####��##�##��###�w�##"##���###
##���##@##�ך#####�#�#####�#�##�##�#�###�\##"##��#####� �##@##�!
�#####�a�#####�a�##�##�a�###�C�##"##�i�#####���##@##���#####��#####��##�##��###
���##"##���#####�Ѣ##@##��#####�)�#####�)�##�##�)�###��##"##�#�#####�?
�##@##�W�#####���#####���##.##���###�Ũ##"##��#####��##@##�
%�#####�e�#####�e�##z##�e�###�
�߫##"##�#�#####�'�##@##�?
�#####�ࡱ�#####�ࡱ�##�##�ࡱ�###�9�##"##�_�#####�� ##@##���#####�
� #####�
�
� ##v##�
�
��###
�O�##"##�u�#####���##@##���#####��#####��##�##��###�ŵ##"##��#####��##@##�
%�#####�e�#####�e�##�##�e�###�#�##"##�5�#####�W�##@##�o�#####���#####���##�##���#
##�[�##"##���#####���##@##���#####��#####��##�##��###���##"##��#####�#�##@##�#�
#####�[�#####�[�##�##�[�###�#�##"##�)�#####�K�##@##�c�#####���#####���##`##���##&
##�#�##"##�)�#####�K�##@##�c�#####���#####���#####���###���##"##���#####���##@##�
#�#####�C�#####�C�##�##�C�###���##"##�#�#####�'�##@##�?
�#####�ࡱ�#####�ࡱ�##^##�ࡱ�###�� ##"##�#�#####�
%�##@##�=�#####�}�#####�}�#####�}�###�}�##"##���#####���##@##���#####�#�#####�#�#
#�##�#�###�
�##"##�3�#####�U�##@##�m�#####���#####���##p##���###�#�##"##�C�#####�e�##@##�}�##
###���#####���##�##���###�G�##"##�m�#####���##@##���#####���#####���##�##���###
�}�##"##���#####���##@##���#####�#�#####�#�##�##�#�###���##"##���#####�#�##@##�3�
#####�s�#####�s�#####�s�###�u�##"##���#####���##@##���#####�#�#####�#�##�##�#�##&
##�#�##"##�)�#####�K�##@##�c�#####���#####���##�##���###�5�##"##�[�#####�}�##@##�
��#####���#####���##�##���###�Y�##"##�ࡱ�#####�� ##@##���#####���#####���##�##���#
##���##"##���#####��##@##�
%�#####�e�#####�e�##�##�e�###�#�##"##�I�#####�k�##@##���#####���#####���##�##���#
##���##"##���#####���##@##�#�#####�U�#####�U�##H##�U�###���##"##���#####���##
##���#####�#�#####�#�##�##�#�###���##"##���#####�#�##@##�'�#####�g�#####�g�##�##�
g�###�S�##"##�y�#####���##@##���#####���#####���#####���###�####"##�######�O###@##�g######��######��###N##��####��###"##�#######�=###@##�U######��###
###��###�##��####�#
##"##�;
#####�]
##@##�u
#####��
#####��
#####��
###��##"##��
#####�####@##�#######�]######�]###�##�]####�####"##�7######�Y###@##�q######��####
##��###�##��####�S###"##�y###�##��######�[######�q###�##��######�i###�##�i###�##�
#####��"##@##��"#####�%######�%###P##�
%####�u$##"##��$#####��$#####��$#####��$#####��$#####��$###��$##"##� %#####�+
%#####�C%#####�C%#####�C%#####�C%###�Q%##"##�w%##�-#@�
%######!
###############�#################����####
#########AGg�#� ��############�##�#### A�7�`�W �#############�##�
�U####�###########r##�##��@�M
���####��####T�n#��K#########d#########
###INTRODUCTION
#
#########
#####$###########
#########
####��#��d#########d#########2##�##q�}�#
c#��####��####T�n#��K#########d#############COBOL has a Report Writer Module
that greatly facilitates print operations. By including additional DATA DIVISION
entries, the Report Writer will automatically handle all: 1. Spacing of forms.2.
Skipping to a new page.3. Testing for end of page.4. Printing of headings at the
top of a page and footings at the bottom of a page.5. Accumulating of amount
fields.6. Testing for control breaks.7. Detail and/or summary printing.8. Printing
of totals for control breaks.9. Printing of a final total when there are no more
input records.
###################################
###�###T#n###K#########d###########T#n###K#########d###########T#n###K#########d###
########T#n###K#########d#######S###T#n###K#########d#######"###T#n###K#########d##
#########T#n###K#########d###########T#n###K#########d#######*###T#n###K#########d#
######B###T#n###K#########d#######'###$#########################
%#####�#7,####(#################################����####
#########AGg��� ��############�##�#�#########UI######r##�##��#�M
����$###��#####��#��d#########d#####
###(###The Benefits of the#Report Writer
Module
#(#########(#####,###########(#########(####��#��d#########d#######.###+###########
��##########*###/###############�#################����####
#########AG���� S�############�##d#�=# A����#
�#############�##,
�=####�###########r##�###�� 6��$###��#####��#��d#########d#############For Detail
and Summary Printing�
#################$##########################��#��d#########d##### ###2##�##1���
�#��####��####U�l#��K#########d#########B###You will recall that many reports
in business require:1. Detail printing - The printing of one or more lines for each
input record.2. Summary or group printing - The printing of totals or other summary
information for groups of records.The Report Writer Module can be easily used for
both detail and/or summary reports.
#B#########B#################B#########7###U#l###K#########d#######N###T#n###K#####
####d#######j###T#n###K#########d#######S###U#l###K#########d#######5###2##########
###############3###4###4#7,1###6#################################����####
#########AGg�#� ��############�##d#�=# A�g�p� �#############�###
�=####�###)#######r##�##��0�M
���,###��#####��#��d#########d#############For
Control Break Processing
#################,##########################��#��d#########d#########2##�##���M
s#��####��####U�l#��K#########d#############A report has both detail and
summary printing. That is, when input records with the same department number are
read, the records are printed and the total amount of sales for each salesperson is
accumulated. When a change or �break� in the department number occurs, the
accumulated total of all amounts of sales is printed as a control total line. We
call department number a control field. Summary printing is performed as a result
of the control break that occurs when there is a change in thee department number.
#######################################0###U#l###K#########d#######�###U#l###K#####
####d#######�###U#l###K#########d#######,###U#l###K#########d#######|
###U#l###K#########d#######