Termux Work & Programming Language

Termux Work & Programming Language
TUTORIAL How to Quickly Learn COBOL Programming Language



Common Business Oriented language or abbreviated as COBOL.


The use of COBOL is commonly used to write application programs but we cannot use it to write System software. Commonly its COBOL is used to create applications such as in the defense domain, insurance domain, and others - others that require processing of large data make extensive use of COBOL.


 


 


It would certainly be better if you have an understanding of computer programming terminology and JCL. A basic understanding of one of the programming languages will help you understand the concepts that exist in COBOL programming and of course grow rapidly in this learning.


 


 


The COBOL program structure consists of 4 main divisions :


 


 


1. DIVISION IDENTIFICATION


As an identification of the COBOL program that we create for example the name of the program (PROGRAM-ID).


 


 


DIVISION IDENTIFICATION.


PROGRAMID. MUKHSHINS.


 


 


2. DIVISION ENVIRONMENT


To provide information on equipment used in the program.


 


 


3. DIVISION DATA


Describe the variables and types of data types used in COBOL programs.


 


 


This division has 5 sections:


 


 


·         THE FILE SECTION.


·         WORKING-STORAGE SECTION.


·         THE · SCREEN SECTION.


·         LINKAGE SECTION'S.


·         REPORT SECTION


 


DIVISION DATA.


SCREEN SECTIONS.


01 REMOVE.


     02 BLANK SCREENS.


01.APPEARING.


     02 LINE 2 COLUMN 25 'MUKHSIN ALITAS'.


     02 LINE 3 COLUMN 25 '13113932'


     02 LINE 4 COLUMN 28 '2MA51'.


     02 LINE 5 COLUMN 28 'COBOL PROGRAMMING LANGUAGE LEARNING '


 


 


 


 


4. PROCEDURE DIVISION


DISPLAY is used for output, while STOP RUN is used to stop the program process.


 


 


PROCEDURE DIVISION'S.


START OFF.


   DISPLAY REMOVE.


   DISPLAY APPEAR.


DONE IT.


   STOP RUN'S.


 


 


 


 


Example Program


 


 


For 64 bit windows, COBOL programs must be run using the help of DosBox, because the COBOL version of the program is still 32 bit.


 


 


[-] Admission to the DosBox program.


 


 


Originally it was only on the Z drive, in DosBox. To be able to access the drive of our computer, then we have to mount the drive using sytax:


 


 


MOUNT E E:\ for example wants to mount Drive E on our computer to be


E: becomes the E: drive in DosBox.


 


 


Or for example we want to mount the COBOL folder then we type : COBOL CD


 


 


well next make the coding can use notepad or notepad++


 


 


[-] Save as in the COBOL folder on the E drive with the extension .COB, for example: MUKHSIN.COB or HELLOCOBOL.COB


 


 


[-] Then return to the DosBox program and then in the COBOL folder select the file with the name you saved with extension .COB  .You can type E:\COBOL\COBOL NamaFileAnda.COB. Enter 3 times. If successful, the message No errors or warnings appears.


 


 


[-] then Compile , for the way Compile that does not understand can be searched on google..


 


 


After completing compile, please run the program by typing RUNCOB NAMEFILEANDA.COB and then press ENTER.


 


 


* what I call NAMEFILEANDA is the name of the file you saved as earlier with extension .COBB   ...