• Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7




Saturday, September 1, 2012

COBOL MOVE - TUTORIAL FOR NEWBIE


Hello my friends.. you are o my blog at “We Are Knowledge”.. Im here you will taken many IT knowledge… from Web programming until dekstop programming, you are will obtain it..

Likely this article discuss about “program language COBOL”. In here I was making you tutorial about “MOVE on cobol”. Move on COBOL likely preform or go to on COBOL. You will know ?? let’s do read this article.. Have fun my friend to read.

You can copy this program
  
Example 1 :

       IDENTIFICATION DIVISION.
       PROGRAM-ID. MOVE.
       AUTHOR. WAK.
       ENVIRONMENT DIVISION.
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01 DMY.
           02 D PIC 99.
           02 M PIC 99.
           02 Y PIC 99.
       01 DN.
           02 D PIC 99.
           02 FILLER PIC X VALUE "-".
           02 M PIC 99.
           02 FILLER PIC X VALUE "-".
           02 Y PIC 99.
       PROCEDURE DIVISION.
       MP.
           DISPLAY "WE ARE KNOWLEDGE".
DISPLAY "   GIVING YOU".
DISPLAY "MANY IT KNOWLEDGE".
DISPLAY " ".
ACCEPT DMY FROM DATE.
           MOVE CORR DMY TO DN.
           DISPLAY DN.
           DISPLAY DMY.
       E.
           STOP "PLEASE, PRESS ENTER TO EXIT FROM ME".
           STOP RUN.


Logic ::

previously making program you must enter to cmd.
And it is you can write “edit move.cob”.

Move
>> Moving data to a receiver or other statement item, so that the input Data can be manipulated to produce the output window.

>> This syntax allows the data that has not been edited (modified) are useful in presenting information (displayed in the output window).

D, M, and Y
>> it is variable for data date, month, and year.

Display
>> for printing statement to output window

Accept
>> this syntax for input the value at output window, then to process

Stop run
>> the syntax for ending or stoping the program.

Identification division.
>> program-id is name of the your program
>> author is name programmer. You can change with your name


Ok.. just it.. I hope you likely..
See yo later

No comments:

Post a Comment