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
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 "-"

Occurs Clause: Let us establish tables with the help of an illustration. Assume that there are ten different types of income-tax rates that are read from some input medium and

DELETE STATEMENT : The file should be opened in the I-O mode. If the access is SEQUENTIAL, the INVALID KEY phrase must be specified. Rather than, the last input-output state

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition

NONSTANDARD CLAUSES: The various clauses explained above are as per the ANSI standard. Also, most compilers provide for additional nonstandard clauses to meet the specific nec

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM

Write a COBOL IF sentence to use the values of numeric variables EXAM and COURSEWORK , both assumed to be with format PIC 999 and in the range 0 to 100 and to move the value:

Example of Sign condition: The illustration below describes the use of the sign condition. Illustration:     77  BALANCE  PIC  S9 (6) V99.       .       .     I

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.

RULES FOR OCCURS CLAUSE: The rules apply for the OCCURS clause and the subscripts are as shown below. (1) The integer in the OCCURS clause should be a positive integer.