What are the situations u have used in ur project for
Subcript and Index ?
1.if u use Subscript why not Index,why u choose Subscript
only?
2.if u use Index why not Subscript,what abt Displacement?
Answers were Sorted based on User's Feedback
Answer / app
SUBSCRIPT: No. of occurences of a table is called Subscript.
INDEX: The disposition of the element.
Index can be used in Table data searching and Sorting but
Subscript won't be useful for the above.
Subscript reperesents as a occurence no. it must be
converted to displacement value each time its used so.. it
is less efficent than index.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / talluri
---subcript is a occurence of arry element
---index is a displacement no of an array element
subcript is declared as a variable in wss but index declared
using index by clause
| Is This Answer Correct ? | 1 Yes | 1 No |
How to resolve the soc4 and soc7 errors?
Name some of the examples of COBOl 11?
Have you code any new programs in COBOL ? What is the functionality of the programs?
what will happen if pass values more than 100 using PARM parameter?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Why we are using comp and comp-3 in real time projects?
If you were passing a table via linkage, which is preferable - a subscript or an index?
I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.
i have variable record in the 5th, i want to sort from 5th filed ? how ?
What are the different types of condition in cobol and write their forms.
What is the difference between working storage copybook and linkage section copybook?