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




Sunday, June 17, 2012

COBOL GO TO - TUTORIAL FOR NEWBIE


Hi... Now You at Site WE ARE KNOWLEDGE... Having Knowledge in here... Let's Read it...

This time I want giving you tutorial about COBOL programing...
COBOL Is common bussiness oriental language...

In programing COBOL little different with other program... Because COBOL program not have compiller.. In compiller helped other aplication...
And this time, I want introduction using "GO TO"....


Ok...dirrect to use.... firstly you must open notepad or other for make program. If program code done you must saving in folder same with place installer COBOL program..

1. Open CMD with method...

press icon windows + R... and write CMD >> ENTER
OR
click start >> Run.. and write CMD >> ENTER



2. In here you must understand using CD, CD...

CD.. for back to folder
cd program files\cobol for enter in COBOL program
edit for enter in make code... You can using this for make code
ussually likely "edit (spasi) namefile.cob... avail when we want saving just click save And not write name file again....




You can copy paste this program code in your program




       IDENTIFICATION DIVISION.
       PROGRAM-ID. GOTO.
       AUTHOR. MY KNOWLEDGE.
       ENVIRONMENT DIVISION.
       DATA DIVISION.
       SCREEN SECTION.
       01 CLEANING.
           02 BLANK SCREEN.
       PROCEDURE DIVISION.
       GOING.
           DISPLAY CLEANING.
           GO TO C.
           DISPLAY " ".
       A.
           DISPLAY "BY KNOWLEDGE".
           GO TO D.
       B.
           DISPLAY "EXAMPLE STATEMENT GO TO".
           GO TO A.
       C.
           DISPLAY "HI... WELCOME TO MY SITE".
           GO TO E.
       D.
           DISPLAY "LET'S READ MY OTHER ARTICLE".
           GO TO STOPING.
       E.
           DISPLAY "IN WE ARE KNOWLEDGE".
           GO TO B.
       STOPING.
           STOP RUN.

And result :



If done you must compille before execution program
before, you must save it in place same with Cobol program...
And exit...

For compille write "COBOL namefile.cob >> enter"
and look if have wrong, you must repair this program.... If noting you can execution...




And for starting program...
write "RUNCOB namefile.cob"




Ok just it....
Thanks for you...

No comments:

Post a Comment