###����####��������####################################################����####���� ### ###Cartoons#C:\MSOFFICE\CLIPART\PCSFILES\CARTOONS.PCS#ࡱ j# = ࡱ j#@ࡱ
�������� ��� �� � � ���
#################��#ࡱ# ################>###� ��############################# ffffffffo��oo���� ��o oo��offffffffffffffffff ##
D# bf` f f f f f f f f f f� � � � � � � � � � � ������� ������� � � � � � � � �o f f f f f f f f f```oD#D###jffffffffffffff fffo��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 ```eD# ###hffffffffffffffffffffffffffffffffffffffffffffffffffff� � � � � � � � � � � f
######`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```dD# ###jffffffffff� ffffffffff���oo����offfffffffffffffffffff ##
D# fff� �� � � � � � � � � � �� ������� � � � � � � � � � �f f f f f f f f f f o f f f f f f f f f f ```f######hfffffffffffffff fffff��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 f f f f f f f f f ```a###&#fhffffffffffffffffff f ffofo o ffffffffffffffffffff
��� � � � � � � � � � �� � � �� f f f f f f f f f ```f###f&fhffffffffffffffffffff ffffffffffffffffffffffffffffffff
� � � � � � � � � � �
###DDDfff 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```dDDD&f&jfffffffff� � � � � � � � � � � � � � � � � � � � � � � � � � � fffffffffff o� �� � ��f o oooffffffffffffffffffff
###DDDfff 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 D &f&jfffffffff� � � � � � � � � � � � � � � � � � � � � � � � � � � � � ffffffffffffffffffffffffffffffffffffffffffff"###C##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 ```dDDDfffhffffffffffffffffffffo fffffffffffffffffffffffff
� � � � � � � � � � � � � �
ffffff
###DDDfff f f f f f f f f f o� � � � � � � � � � ���������� � � � � � � � � � �o f f f f f f f f f f```dDDDfffjffffffffffff ffffffoo������� ���o fffffffffffffffffff
###DDD 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 ```dDDDfffhfffffffff ###DDD f f f f f f f ffffffffffffffffffbfff`f`f`b`b```````````` �������������������� � � � � � � � �
#########AG����� ��############ ##D� �:# A��� �0 ## ############ ##� � � �:##`# P#`#p############# ##d
(##a# # #
� ��� �
############# ##t# : ### ##### #####3## ##� � � � � � �� � � ��# # #
###��#####�� ��# d#########d#2#######r### Copyright 1997 John Wiley & Sons, Inc. � � All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976 United States Copyright Act without the express written permission of the copyright owner is unlawful. Request for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. The purchaser may make back-up copies for his/her own use only and not for distribution or resale. The Publisher assumes no responsibility for errors, omissions, or
#r#########r#####
###########r#########r##### #��d#########d#2#######r## ##�
#################$##########################�� ��# d######3##d#########2## ##� �� �M F#�� #### ####T # K######0##d#########Z### Eighth edition Nancy Stern
� �� � ��
#Z#########################################>###############################A####### ########b###############1############### #################Z#############T#
#########AGp #� � �############ ## #w{################r## ##� � � �� �- V
,### ##### # d#########d#########Y###CHAPTER 6##Moving Data, Printing
��� �� �� ��
#Y#########Y#####,###########Y#########Y####�� ��# d#########d####################### ############
�� ###
#########AGg #� � ��############ ##� � 7 # A g p� � � � ############# ## #w{#### ###########r## ## 0 M
� � � � � �� � ���####��####U �
#
#########
#####,########### #########
####�� ��# d#########d#########2## ##� ���M s#��####��####U �
# ######### ################# #############U# ###K#########d#######.###U# � � �
#########AGp #� � ############ ##D� � �:# A��� ��P p############# ##� � :#### ###########r## ## - V
� � � �� �
#################,##########################�� ��# d#########d#########2## ##� m
#######################################
###U#l###K#########d#######.###U#l###K#########d#######
#########AGp�� ��############ ##D� �:# A p� ����############# ##� � :#### ###########r## ## V
� � � ���
#################,##########################�� ��# d#########d#########2## ##� ����V # #### ####U l# K#########d#############Nonnumeric or Alphanumeric MOVE
� �� �� � ��
###U#l###K#########d#######-###U#l###K#########d#######$###U#l###K#########d###########U#l###K#########d####### 2###U#l###K#########d#######E###U#l###K#########d#######
#################,##########################�� ��# d#########d#########2## ##� ��� # #### ####U l# K#########d#############Printing OutputFeatures of Printed
� �� �� � ��
###################################
#######U#l###K#########d###########U#l###K#########d###########U#l###K#########d### ####
###U#l###K#########d###########U#l###K#########d###########U#l###K#########d####### *###U#l###K#########d###########U#l###K#########d###########U#l###K#########d###### #&###U#l###K#########d#######'###$#########################
#########AG#���
#################,##########################�� ��# d#########d#########2## ##�
#########AGg #� � ��############ ## #o:# A g p� � � � � ############# ##L#o:#### ### #######r## ## 0 M
� � � � � �� �
$### ##### # d#########d#########
####�� ��# d#########d##### ###2## ##� ���M
o:##A #� ��0�############# ##� �
#-#########-#####,###########-#########-####�� ��# d#########d#####
#################$##########################�� ��# d#########d#########2## ##� ���� #############U# ###K#########d######### ###Numeric Literals1. 1 to 18 digits.
� �
# ######################### ################# #############U# � � �
###K#########d###########U# ###K#########d#######H###U# ###K#########d#######G###U# ###K#########d#######C###@#########################A###B###� #@?
#4###########################################4#########$###U#
###K#########d#######K###U# ###K#########d#######E###U# ###K#########d####### ###U#� ###K#########d#######J###G############## ###### ###H###I###|� �
#########AG@ `� �
############ ## #w{#### P# ############# ############## #######r## ##z = &
� � � ��� � � � � � �
#
#########
#####,########### #########
#Q###N###########��########## #O###P###D�
:#### ###########r## ##
# ######### ################# #########0###U# ###K#########d###########U# � � � ###K#########d#######Y###U# ###K#########d#######<###U#
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##|�
# ######### #####$########### ######### ####�� ��# d#########d#2#######r## ##� �� �0 M ,### ##### # d#########d############# #
#=#########=#################=######### ###U# ###K#########d#######O###U# �
#########AGg #� � ��############ ## ##,# A g p� � � � � ############# ##l# :#### ###########r## ## 0 M
� � � � � �� �
$### ##### # d#########d#########
######## A g p� � � �############# ## ##,##AGg #� � � � ############ #####G#### ###########r## ## 0 M
�� � � � �� �
$### ##### # d#########d#########
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##� � :#### ###########r## ## 0 M
#c#########c#################c#########A###U# ###K#########d#######"###U# ###K#########d#######t###q#########################r###s###d
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##� � :#### ###########r## ## 0 M
# ######### ################# #########3###U# ###K#########d###########U# � � � ###K#########d#######O###U# ###K#########d#######2###U#
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ###� :#### ###########r## ## 0 M
# ######################### ################# ######### ###U# � � � � ###K#########d###########U#
######## A g p� � � �############# ## ##,##AGg #� � � � ��############ ##� � :#### ###########r## ## 0 M
# ######### ################# #########1###U# ###K#########d###########U# � � � ###K#########d#######!###U# ###K#########d###########U#
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##� � :#### ###########r## ## 0 M
#h#########h#################h#########B###U# ###K#########d#######&###U#
#########AGg #� � ��############ ## ##,# A g p� � � � � ############# ## ##G#### ###########r## ## 0 M
� � � � � �� �
$### ##### # d#########d#########
# ######### #####$########### ######### ####�� ��# d#########d#########2## ##� ���M s#��####��####U #� ��K#########d#########v###10. To obtain exactly AB1 in
#v#########v#################v#########`###U# ###K#########d###########U#
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ###�
# ######### ################# #########5###U# ###K#########d#######n###U# � � �
######## A g p� � � �############# ## ##,##AGg #� � � � ��############ ##|�
# ######### ################# #########z###U# ###K#########d#######+###U# � � �
#########AGg #� � ��############ ## ##,# A g p� � � � � ############# ##l# :#### ###########r## ## 0 M
� � � � � �� �
$### ##### # d#########d#########
####################################### ###U# ###K#########d#######L###U# �
#########AGg #� � ��############ ## ##,# A g p� � � � � ############# #####G#### ###########r## ## 0 M
� � � � �� �
$### ##### # d#########d#########
# ######### ################# ######### ###U# ###K#########d#######c###U# � � � �
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##� � :#### ###########r## ## 0 M
# ######### ################# ######### ###U# ###K#########d#######I###U# � � � �
#;#########;#####$###########;#########;####�� ��# d#########d#########2## ##� �� �- M ##��####��####U l#� ��K#########d######### ###We have seen that if the PIC �
# ######### ################# #########b###U#l###K#########d#######=###U#l###K#####� � � ####d####### ### ################### ##### ### ###l� � � � �
#5#########:############### #################5#########;###U# �
#########AG��� s ############ ## #o:# A� � � ��� �� @############# ##|�
#J#########1#################################J#########2###U#
#*#########*#####$###########*#########*####�� ��# d#########d##### ###2## ##q� ��# #############U# ###K#########d######### ###Numeric literals are moved to
� �
#########AGg #� � ��############ ## #o:# A g p� � � � � ############# ## #o:#### ###########r## ## 0 M
� � � � � �� �
$### ##### # d#########d#########&###Moving Signed Numbers:#An
��� �� �� ��
#&#########&#####$###########&#########&####�� ��# d#########d#####!###2## ##� ���M s#��####��####U l#� ��K#########d#########%###If a numeric field can have
#%#########%#################
%#########Z###U#l###K#########d#######\###U#l###K#########d#######o###U#l###K###### ###d####### ### ######################### ### #####_< ### #########################� � � � � �
#########AG����
############ ## #w{####C @# ############# ######################r## ##
�� � � ��� � � � ���
$### ##### # d#########d#############MORE QUESTIONS!!!#
#################,##########################�� ��# d#########d#####"# ### ###########� � ######M###`# ### ### #_< ### #########################
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ###� :#### ###########r## ## 0 M
# ######### #####$########### ######### ####�� ��# d#########d#########2## ##� ���M s#��####��####U #� ��K#########d#############Use the following statement for Questions 1--4. MOVE TAX TO TOTAL TAX
#######################################1###U# ###K#########d####### ##### � #��d#########d#######?###U# ###K#########d###########U#
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##� � :#### ###QU######r## ## 0 M
# ######### #####$########### ######### ####�� ��# d#########d#####$###2## ##� ���M s#��####��####U #� ��K#########d#########5###Use the following statement for Questions 1--4. MOVE TAX TO TOTAL TAX
#5#########5#################5#########0###U# ###K#########d####### ###U# � ###K#########d#######G###U# ###K#########d###########U#
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##� � :#### ###########r## ## 0 M
# ######### #####$########### ######### ####�� ��# d#########d#####%###2## ##� ���M s#��####��####U #� ��K#########d#########8###Use the following statement for Questions 1--4. MOVE TAX TO TOTAL TAX
#8#########8#################8#########0###U# ###K#########d####### ###U# � ###K#########d#######C###U# ###K#########d###########U#
#########AGg #� � ��############ ## ##,# A g p� � � � � ############# ## # :#### ###########r## ## 0 M
� � � � � � �� �
$### ##### # d#########d#########
# ######### #####$########### ######### ####�� ��# d#########d#####&###2## ##� ���M s#��####��####U #� ��K#########d#########(###Use the following statement for Questions 1--4. MOVE TAX TO TOTAL TAX
#(#########(#################(#########0###U# ###K#########d####### ###U# � ###K#########d#######@###U# ###K#########d###########U#
######4#_<
#########A @� ��`
############# ## ##,##a#@ #d ############ ##l# :#### ##### #####3## ##z V#G #
� � � ��� � � � � � � ��� ��
# ######### #####$########### ######### ####�� ��# d#########d#2#######2## ##z� ��& # #### ####U # K#########d######### ###5. The specific questions from the
� �� �� � �� �
# ######### ################# #########b###U# ###K#########d#######R###U# � � �
#########AGg #� � ��############ ## ##,# A g p� � � � � ############# #####G#### ###########r## ## 0 M
� � � � �� �
$### ##### # d#########d#########
#########AGg #� � ��############ ## ##,# A g p� � � � � ############# ## ##,#### ###########r## ## 0 M
� � � � � �� �
$### ##### # d#########d#########
#########AGg�� S ############ ####GR################r## ##� � � ���M
#################,##########################�� ��# d#########d#####*#*###'########### ############(###)### _<&###+################################# ####
#2#########################"#################2#############U#
###K#########d####### ###U# ###K#########d#######G###U# ###K#########d#######[###U#� ###K#########d#######1###.############# #####a# # #/###0#####_<-###2###############� � �
#########AGg #� � ��############ ## #o:# A g p� � � � � ############# ## #o:#### ###########r## ## 0 M
� � � � � �� �
#### ##### # d#########d#########$###BASIC RULES#RULE FOR NONNUMERIC MOVE
#u#########u#################u#########m###U#l###K#########d####### ###U#l###K#####�
#########AG��� ��############ ##� �
',# A 7� ��W�############# ## #_<#### ###########r## ##� � � � ����}
#,#########,#####$###########,#########,####�� ��# d#########d#####.###2## ##q� ��# # #### ####U l# K#########d#########j###FIELD TYPESSending fields are of
� �� �� � ��
six types: numeric, alphabetic, alphanumeric, the figurative constant ZEROS, the figurative constant SPACES, and group item. Numeric, alphabetic, and alphanumeric sending fields can be either identifiers or literals. A numeric field is moved in the same manner as a numeric literal. The receiving fields refer only to
###U#
###K#########d####### ###U#l###K#########d#######]###U#l###K#########d#######C###U#� l###K#########d#######q###U#l###K#########d#######E###U#l###K#########d#######t###U #l###K#########d#######?
#################,##########################�� ��# d#########d#####/#F###C########### ########## #D###E### #ࡱ3B###G#########################
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##� � :#### ###########r## ## 0 M
#h#########h#################h#########R###U# ###K#########d###########U#
:#### ###########r## ## 0 M
# ######### ################# ######### ###U# ###K#########d###########U# � � � �
###K#########d#######T###Q#############��###### ###R###S### #ࡱ3P###U###############� � #########
#########A @� ���` �############# ## ##,##a#� � �� �# p#��############ ##� � :#### ##### #####3## ##
� � � �
# 6#w #### ##### # d#########d#2#######
# ######### #####$########### ######### ####�� ��# d#########d#2#######2## ##z� ���& # #### ####U # K#########d#########[###Use the following statement for
� �� �� � ��
#[#########[#################[#########0###U# ###K#########d####### ###U# � ###K#########d#######R###U# ###K#########d#######(###U#
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ##� � :#### ###########r## ## 0 M
#<#########<#################<#########0###U# ###K#########d####### ###U# � ###K#########d#######R###U# ###K#########d###########U#
###K#########d#######b###_#############��###### ###`###a### #ࡱ3^###c###############� � ################# ####
#########AGg #� � ��############ ## ##,# A g p� � � � � �############# ###� :#### ###########r## ## 0 M
#.#########.#################.#########0###U# ###K#########d####### ###U# � ###K#########d#######H###U# ###K#########d##########U#
###K#########d#######i###f#############��###### ###g###h### #ࡱ3e###j###############� � ################# ####
#########AGg #� � ��############ ## ##,# A g p� � � � � ############# ## # :#### ###########r## ## 0 M
� � � � � � �� �
$### ##### # d#########d#########
# ######### ################# ######### ###U# ###K#########d###########U# � � � �
###K#########d#######p###m#############��###### ###n###o###D#ࡱ3l###q###############� #########
#########AG�� �S # ############ ## #o#################r## ##� � � � �� �p }
#################,##########################�� ��# d#########d#####6#w###t########### ############u###v### #ࡱ3s###x###############w################# ####