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 |
What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?
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
How many sections are there in data division in COBOL?
How to remove 2 duplicate records and copy only one using job control language?
what is the purpose of linkage section?
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?
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.
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.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
2)Where the Plan is located in CICS-DB2?
What is the utilization of copybook in cobol?
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