Purchase Solution

COBOL Programming

Not what you're looking for?

Ask Custom Question

Hi, I need some help trying to understand the "MOVE" statement in COBOL programming. Can someone help with the following items?

1.) When do you need to move data, and how is this achieved in your code?
2) In order for the example below to work, could you have a variable named "field"? How would the variables on either side of the MOVE statement need to be defined as?

Move string constant "Hi There" to the variable field. Move "Hi There" to field.

Purchase this Solution

Solution Summary

The solution contains a word document explaining the "MOVE" statement in COBOL programming language with the help of examples. It also answers when do we need to use it and how to use it.

Solution Preview

Task:

1. When do you need to move data, and how is this achieved in your code?

2. In order for the example below to work, could you have a variable named "field"? How would the variables on either side of the MOVE statement need to be defined as?

Move string constant "Hi There" to the variable field.
MOVE "Hi There" TO field

Answer:

1. In COBOL, the MOVE verb is used to move data to an item. But, proper care must be taken when moving (using the MOVE verb) data to an item. In other languages, when we want to assign a value to XYZ (which is defined at the beginning of the program as an integer for example), then that's it. In COBOL, we ...

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.