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 |
Which is not true about evaluate statement
If my file contains 100,000 records and job abended at 55,000th records processing then how can i restart job from that record onward by ignoring that record. I can not edit the file as file size is big and it is getting browse substituted?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will achieve this ? (a) IF A NOT = 1 OR B NOT = 1 OR C NOT = 1 PERFORM PARA-X (B) IF NOT A= 1 AND B= 1 AND C = 1 PERFORM PARA-X (C) IF A NOT =1 IF NOT B = 1 OR C= 1 PERFORM PARA-X (C) IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X
can we declare occurs in 01 level?
How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?
S9(5)V9(2) occupies how many bytes memory ?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?
HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
What is difference between static and dynamic call in cobol?