Cobol subscript definition
COBOL programs were infamous for being monolithic and lacking modularization. COBOL code could only be modularized through procedures, which were found to be inadequate for large systems. It was impossible to restrict access to data, meaning a procedure could access and modify any data item.How can the answer be improved? cobol subscript definition
Subscript represents occurrence# of the Table Entry. Subscript can be represented explicitly and implicitly. Explicitly means thru occurrence# of the table entry; implicitly means thru a data name. That data name should be defined as an independent item in the W orkingS torage Section. The most efficient definition of Subscript is FullWord
Cobol subscript definition free
subscript: it indicates the no of occurences of the table and it is a normal cobol variable index: it indicates the offset from the begining of the table and by using the three cobol verbs (set, serch, perform)we will do the operations on the index variable. we cannot display the index variable like normal cobol variable. we will not declare the index variable in the working storage section.
Subscript values can range from 1 to the number of times the table occurs. A subscript can be any positive number. It does not require any declaration in data division.
Mar 05, 2010 Hi, In a recent performance drive it was a suggested that usage of indexes was better than subscripts and would lead to performance improvement in a COBOL code.
The subscript can be an integer numeric literal, an integer numeric data item or (in COBOL85) an expression. Literal Subscripts. To reference an array element, you must specify its position in the array with a subscript contained in parentheses following the array name and separated from it
Subscript is the absolute position of the element in the table. As an example, let's assume that a bank's customer accounts information is stored in a table. As an example, let's assume that a bank's customer accounts information is stored in a table.
A subscript is a working storage data definition item, typically a PIC (999) where a value must be moved to the subscript and then incremented or decremented
A SUBSCRIPT is an integer data item which describes the number of occurrences of an array element in the table. Subscript is not the actual memory location rather refers to a position of the data item.
Rating: 4.56 / Views: 350