Logo 
Search:

Cobol Articles

Submit Article
Home » Articles » Cobol » Homework HelpRSS Feeds

Program of move clause

Posted By: Bittan Fischer     Category: Cobol     Views: 3221

Write a Program of move clause.

Code for Program of move clause in Cobol

       IDENTIFICATION DIVISION. 
       PROGRAM-ID. decmove.

       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01 src PIC x(6) value"123.45".
       01 dest PIC 9(3)v99 value 123.45.

       PROCEDURE DIVISION.
       movedec.
           
           MOVE src TO dest.
           DISPLAY "MOVE SRC TO DEST".
           DISPLAY "SOURCE " src.
           DISPLAY "DESTINATION " dest.
           
           MOVE 123.45 TO dest.
           MOVE dest TO src.
           DISPLAY "MOVE DEST TO SRC".
           DISPLAY "SOURCE " src.
           DISPLAY "DESTINATION " dest.

           STOP RUN.  
           
  
Share: 


Didn't find what you were looking for? Find more on Program of move clause Or get search suggestion and latest updates.

Bittan Fischer
Bittan Fischer author of Program of move clause is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!