Program for move corresponding, COBOL Programming

PROGRAM FOR MOVE CORRESPONDING:

We have to write a simple program to demonstrate Move Corresponding.

identification division.

  program- id.

  environment division.

  data division.

  working-storage section.

  01  rec-1.

    02   sno   pic  9(2) value 11.

    02   name  pic  x(4) value "Ravi".

  01  rec-2.

    05   sno   pic  z(2).

    05   f    pic  x(10) value spaces.

              05   name   pic  x(4).

    05   f    pic  x(10) value spaces.

  procedure division.

  p-1.

    display(1 1) erase.  

    move corr rec-1 to rec-2.

    display rec-2.

    stop run.

Posted Date: 10/18/2012 2:04:01 AM | Location : United States







Related Discussions:- Program for move corresponding, Assignment Help, Ask Question on Program for move corresponding, Get Answer, Expert's Help, Program for move corresponding Discussions

Write discussion on Program for move corresponding
Your posts are moderated
Related Questions
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:

Example of add verb: (a) ADD A TO B. This illustration represents that the value of A will be added to the value of B and the result will be stored in B.  The alignment of

File volatility: File volatility associates to the number of times the updating of records are needed during some time period. File interrogation: Some files hold re

CONDITION - COBOL Programming: The condition is an entity which at one point of time can have only one of the two values - true or false. As we already know that, the IF verb

Illustration of Renames clause: In the illustration, PAT-OTHER-THAN-BASIC will become a fresh group consisting of DEARNESS-ALLOWANCE, HOUSE-RENT & MTHLY-INCENTIVE. Keep in min

DECLARATIVE and FILE STATUS Clause: The input-output exception condition in the situation of a direct access files can be handled by a declarative procedure in a manner simila

Buffers: The Modern computers are able of handling I-O operations independent of the CPU by means of the hardware termed as data channel. For illustration, if two buffers a

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

Size: The number of characters or digits needed to store the data item in the memory in termed as the Size of the data item. All the 4 general characteristics explained can

PROGRAM USING OCCURS CLAUSE: We have to write a simple program to demonstrate Occurs Clause. Get the employee details for 3 persons and compute the total salary. identifica