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
What is perform what is varying?
What are the different data types in cobol?
What is the difference between PIC 9.99 and PIC9v99?
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
HOw can I get the negative sign while deduct high value from low value
what is amode(24), amode(31), rmode(24) and rmode(any)?
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
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What rules are to be followed while using the corresponding options?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the Purpose of Pointer in the string?
What are the different open modes available in cobol?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Difference between array and sub-script ?