what are the diferences b/w sub-script and index?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do get the result of your program directly on your pc?

1878


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

709


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2104


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

818


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

680






How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

643


Which is not true about evaluate statement

1567


how do you reference the variable unblock file formats from cobol programs

743


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1950


How do define dynamic array in cobol.

669


how do you reference the fixed unblock file formats from cobol programs

705


Write a program to explain size error.

669


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5370


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

704


what is the difference between COBOL2 AND COBOL390?

2449