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



What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript w..

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

What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript w..

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

Post New Answer

More COBOL Interview Questions

I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


How to delete the records of a dataset through cobol programme?We should not use jcl utilitities like IDCAMS.

2 Answers  


What is 77 level used for ?

12 Answers   IBM, iGate,


What rules are to be followed while using the corresponding options?

0 Answers  


How to recover a deleted source physical file from library?

1 Answers   HCL,


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

0 Answers   Amdocs,


What was removed from COBOL in the COBOL II implementation?

0 Answers  


diffrence between z(2) and z9(2)

4 Answers   Cap Gemini,


How do you get the data to code the BMS macro?

0 Answers   IBM,


IDENTIFICATION DIVISION. PROGRAM-ID. MOVEPGM. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-I PIC 9(2). PROCEDURE DIVISION. A1000-MAIN-PARA. PERFORM PARA-X WITH TEST BEFORE UNTIL WS-I= 5 STOP RUN. PARA-X. DISPLAY "BEST2". I m getting error s722,while executing the program, seems getting in loop, can anybody tell me why

3 Answers  


Why did you choose to work with ibm mainframe cobol programming?

0 Answers  


1.What is the limit of linkage section?

4 Answers  


Categories