what are the diferences b/w sub-script and index?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
how many bytes does s9(7)COMP-3 field occupies?
sample code for read a 2nd record from last in flatfile how can do?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How to recover a deleted source physical file from library?
What is the difference between NEXT SENTENCE and CONTINUE?
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
can any one help -s806
CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?
What is Comm?
2 Answers IBM, Kemper Corporation,
What do you do to resolve SOC-7 error?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Explain about Redefines cluse?