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




Monday, August 27, 2012

COBOL TABLE - TUTORIAL FOR NEWBIE


Hi.. welcome to my site at “We Are Knowledge”. Yeah that’s right you are on my blog… This is blog want giving you many IT knowledge. Try you look my other article would have found a tutorial on IT knowledge and other knowledge…

You are can take many IT knowledge in here, from IT knowledge about dekstop programming until web programming.. you can take You can pick it up for free. For knowledge to be shared and not for himself.

Now.. I want giving you IT Knowledge about program language COBOL. And discus about “TABLE in cobol”. You will gettingIT knowledge about it.. ?? let’s do read it..
table on pascal array also certainly discussed. because the array is a collection of data (more than one) that has the same data type

The table on cobol  programming language is a collection of (many) data with the same data type that is accessible by using the same name as well, and are stored in memory in sequence (also called an array).

Cobol programming language for declaring the table we can only make it in the DATA DIVISION in the WORKING-STORAGE SECTION, as discussed cobol programming language is structured.

This is an example of defining a table in cobol :

This example of the cutting :

01    table_ipk_student.
                   02  student_value             PIC 999 OCCURS 10 TIMES.

Declare an array of values ​​that accommodate as many as 10 students of numerical data.

if the coding is not abbreviated like this:

01    table_ipk_student.
                   02  student_value -1         PIC 999.
02  student_value -2         PIC 999.
                   02  student_value -3         PIC 999.
02  student_value -4         PIC 999.
02  student_value -5         PIC 999.
02  student_value -6         PIC 999.
02  student_value -7         PIC 999.
02  student_value -8         PIC 999.
02  student_value -9         PIC 999.
02  student_value -10       PIC 999.

cobol programming language there are some statements that must end with a dot.


Ok.. just it…
I hope you understand with this article…
See you later friends….

No comments:

Post a Comment