what are the diferences b/w sub-script and index?

Answers were Sorted based on User's Feedback



what are the diferences b/w sub-script and index?..

Answer / kiran

Index is a displacement we cannot do any arthematic
operation by using index only we can asign value by using SET

Ex: set indexname to 1
upby/downby

Subcript is working storage variable we can use in
arethematic operations and used for occurances of a para

Is This Answer Correct ?    10 Yes 0 No

what are the diferences b/w sub-script and index?..

Answer / ajay dwivedi

Subscript refers to an array occurrance, whereas Index
shows the displacement in number of bytes.

Is This Answer Correct ?    2 Yes 0 No

what are the diferences b/w sub-script and index?..

Answer / mchava

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 by ADD TO and
SUBTRACT FROM statements.
An index is a register item that exists outside the
program's working storage. You SET an index to a value and
SET it UP BY value and DOWN BY value.

Is This Answer Correct ?    1 Yes 0 No

what are the diferences b/w sub-script and index?..

Answer / sumankumar

SUB-SCRIPT IS NOTHING BUT NUMBER ITS CAN DEFINE IN PERFORM
AND IT CAN BE INCREMENTED BY ARITHMETIC OPERATION, AND IT
CAN BE DISPLAY DIRECTLY

INDEX IS NOTHING BUT DISPLAY POSITION OFF ARRY COMAND AND IT
INCREMENTED BY SET VERB AND IT CANNOT DIRECTLY DISPLAYED

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is the difference between a binary search and a sequential search?

3 Answers  


how will you define vsam file in select clause?

3 Answers   Patni,


what is the difference between Plan & package

3 Answers   IBM,


I have a cobol program with a sub program. How ca i find that it is a dynamic call? or static call..?

3 Answers   HCL, IBM,


What is the Importance of GLOBAL clause According to new standards of COBOL?

2 Answers   Infosys,






hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe

6 Answers   Citi Bank, CitiGroup, HSBC, iNautix, Wipro,


i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?

12 Answers  


How to recover a deleted source physical file from library?

1 Answers   HCL,


how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


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?

2 Answers   Cap Gemini,


Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad

35 Answers  


what is subscript in cobol?give realtime example?

2 Answers   Wipro,


Categories