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 diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?

1 Answers   Fidelity,


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

0 Answers  


How many sections are there in data division in COBOL?

0 Answers   B-Ways TecnoSoft,


How to remove 2 duplicate records and copy only one using job control language?

0 Answers  


what is the purpose of linkage section?

10 Answers  






What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?

4 Answers   IBM,


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

0 Answers   IBM,


There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.

8 Answers   Danske, iGate,


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


2)Where the Plan is located in CICS-DB2?

1 Answers   IBM,


What is the utilization of copybook in cobol?

0 Answers  


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

0 Answers   IBM,


Categories