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 to transfer the file from pc to mainframe??
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.
is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon
can we use 77 level no for Redefines?if we use give an example?
what is the advantage of using redefines instead of delaring the variables ?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
What is the use of EVALUATE statement?
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,
give the examples for strings and unstrings in cobol
I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.