Nassau Community College: Nancy Stern Hofstra University Robert A. Stern
Nassau Community College: Nancy Stern Hofstra University Robert A. Stern
Programming “Copyright @ 2000 John Wiley & Sons, In. All rights
reserved. Reproduction or translation of this work beyond
that permitted in Section 117 of the 1976 United States
Hofstra University
Wily & 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 damages, caused by the use of these programs or from the
use of the information contained herein.”
Robert A. Stern
Nassau Community
College 9th Edition
PowerPoint Presentation:
Richard H. Baum, Ph.D.
DeVry Institute of Technology
CHAPTER 6
Moving Data,
Printing Information, and
Displaying Output
Interactively
Examples:
MOVE ZEROS TO TOTAL-OUT.
MOVE SPACES TO HEADING1.
SOLUTION: is not
– Literals appearing in the PROCEDURE
DIVISION need not be defined
elsewhere in the program.
SOLUTION: AB1
SOLUTION: XX
SOLUTION: 0bbbb; no
Structured COBOL Programming, Stern & Stern, 9th Ed
ition
Performing Multiple Moves
with a Single Statement
Full Format for the MOVE Instruction
MOVE {identifier-1}
{literal-1} TO identifier-2 . . .