Rules of move verb, COBOL Programming

Assignment Help:

RULES OF MOVE VERB:

 The Data movement is managed by the rules which are as shown below:

(a) The contents of the identifier - 1 or the value of the literal - 1 is moved to the identifier - 2, identifier - 3, etc. Note that there may be more than one receiving field whereas there should be only one sending field, the contents of all the receiving fields will be substituted by the value of the sending field. The contents of identifier - 1 stay unchanged.

(b) Whenever the sending field is numeric and the receiving field is numeric or numeric edited (that is picture holds edit symbols) the data movement is termed as numeric data transfer.  In such situation the dominant factor in the movement is the alignment of the decimal points of the two fields.  For the aim of this alignment, the numeric fields for which the place of the decimal point is not explicitly indicated, the decimal point is supposed to be at the right of the rightmost digit.  If the receiving field is not large sufficient to hold the data received, the truncation can take place at either and depending on whether the fractional part, integral part or both can or cannot be accommodated. Though, if significant the integral positions are likely to be lost, a warning to which effect is issued by the compiler. On the other hand, when the receiving field is bigger than the sending field, zero- fill will acquire place in the unused positions to keep the numeric value unchanged.

(c) Whenever both the sending and receiving fields are alphanumeric, alphabetic or alphanumeric edited, the data movement is termed as the alphanumeric data transfer.  In such situation the receiving area is filled from left to right and space fill occurs to the right if the receiving area is bigger than the sending field. Whenever the receiving area is smaller, the truncation occurs from the right and the compiler gives a warning to that effect.

Preferably, both the sending and receiving fields must belong to similar category. Though, quite often it becomes essential to transfer a data to a field having various categories.  Identifier - 1, identifier - 2, identifier - 3, etc., can be group items.  In such situations, the move is very often used.  This is when we wish to initialize a record area by spaces. For illustration, the statements MOVE SPACES TO REC-AREA will space- fill the whole area represented by the group name REC-AREA.


Related Discussions:- Rules of move verb

Program to find interest on bank deposits, PROGRAM TO FIND INTEREST ON BANK...

PROGRAM TO FIND INTEREST ON BANK DEPOSITS: We have to write a program to find interest on deposits. The criteria is given below : identification division. program-

Identification division - cobol programming, Identification Division: ...

Identification Division: The Identification Division is the first division of each and every COBOL source program. The paragraph PROGRAM-ID is necessary in most of the mac

Write statement - relative files, WRITE Statement:      The WRITE stat...

WRITE Statement:      The WRITE statement for a relative file has the format which is as shown below.          WRITE  record-name   [ FORM   identifier ]

Example of perform statement, Example of Perform statement: PERFORM BE...

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

File-control paragraph for the relative files, FILE-CONTROL paragraph for t...

FILE-CONTROL paragraph for the relative files: The normal format for the SELECT clause for a relative file is as shown below. SELECT  file-name  ASSIGN  TO  implementor-nam

On size error option, ON SIZE ERROR OPTION:   If after an arithmetic ...

ON SIZE ERROR OPTION:   If after an arithmetic expression, the result exceeds the highest value which can be accommodated in the result; this error is termed as size error. T

Relational condition - cobol programming, RELATIONAL CONDITION:   We ...

RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

Example of special-names - configuration section, Example of Special-names:...

Example of Special-names: Consider the illustration: Let the SPECIAL-NAMES paragraph be as shown: SPECIAL-NAMES. CHANNEL 1 IS PAGE-TOP. The Channel is related with the t

Program for divide verb, PROGRAM FOR DIVIDE VERB:   We have to write ...

PROGRAM FOR DIVIDE VERB:   We have to write an easy program to elaborate DIVIDE verb. You can also use edit characters in the program. Identification division. Program-

Structure of a cobol program, Structure of a COBOL Program: Every COBO...

Structure of a COBOL Program: Every COBOL program should have the 4 divisions in the order in which they are specified below: 1. Identification division 2. Environment D

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd