Move corresponding - cobol verb, COBOL Programming


It is frequently required to move some of the data items of one group to some other data items in the other group. If the names of the equivalent data items of the two groups are different, then for each of the data item, a separate MOVE verb must be used. Though, if the equivalent data items of both the records have identical names, then rather than of using separate MOVE statement,  just one MOVE statement with CORRESPONDING  option can be used. The illustration below describes the use of the MOVE verb with the CORRESPONDING option. 



Posted Date: 10/16/2012 6:11:33 AM | Location : United States

Related Discussions:- Move corresponding - cobol verb, Assignment Help, Ask Question on Move corresponding - cobol verb, Get Answer, Expert's Help, Move corresponding - cobol verb Discussions

Write discussion on Move corresponding - cobol verb
Your posts are moderated
Related Questions
Program for Sequential File Creation & Rewriting  We have to write a program to create a Length file with just two fields: l (Length) and l-c (Length-Code). Add a few records.

Example of Move corresponding: Consider the DATA DIVISION entries shown below. Suppose it is needed that the data stored in the 4 fields of the PAY_REC should be

FILLER CLAUSE: Consider the statements as shown below: 1)  01    f    pic     x(80)  value    all "-". This statement origins a line of 80 characters filled with "-"

IF ... ELSE STATEMENT: We are familiar with an easy form of the IF statement. The common form of the IF statement is as shown below: Each of the statement-1 and statem

B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples:

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

Example of Accept statement: For illustration, ACCEPT FLAG-A can be specified to read the value of the FLAG_A from the console. It may be keep in mind that no file definition

Non numeric: The nonnumeric literal is used in normal to output messages or headings. The Characters which are enclosed between " " constitute nonnumeric literal. The maximum

, (Comma) : A comma, whenever used in a picture, is considered as an insertion character and inserted wherever it become visible. There can be more than one comma in the pictu