What is the difference between a subscript and an index in
a table definition?

Answer Posted / satheesh gova

subscript specifies the no of occurances of a table or
array where as index specifies the displacement of a
table,subscript is working storage variable but index is not
working storage section variable,by using arithematic
operations we can increment and decrement the value of
subscript,but by using SET verb we can get it in index.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Pic 9v99 Indicates in COBOL?

837


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2203


What are the pertinent COBOL

2124


What are literals?

724


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2007






What are the different rules to perform a Search?

701


Name the divisions, which are available in a cobol program?

799


What are the cobol coding sheets?

744


What is length is cobol?

749


what is amode(24), amode(31), rmode(24) and rmode(any)?

789


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2116


Write some characteristics of cobol as means of business language.

708


how can i see junk values in dclgen or in hostvariable of comp ?

2635


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

803


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

802