When and how can we use index & subscript ?

Answers were Sorted based on User's Feedback



When and how can we use index & subscript ?..

Answer / shibin shah k j

wen we need to access array we need to use these two...
index with pointer ...

Is This Answer Correct ?    1 Yes 0 No

When and how can we use index & subscript ?..

Answer / suman kumar

1.Wen u use array commands search we use index,idex
is nothing but displacement position of array
2.Wen u use perform loop we use subscript, subscript is
nothing but a number

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is the point of the REPLACING option of a copy statement?

3 Answers  


How do you code Cobol to access a parameter that has been defined in JCL?

3 Answers  


How can I find the maximum value of a field in a file while reading the file dynamically? without using sort function. Suppose i have a file with fields Timestamp, description, teamname, teamnumber.. i have read the file till end and find the maximun value of timestamp which is not in sorted order.. can we use function max(timestamp)?

1 Answers   CGI,


How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.

7 Answers   CGI, TCS,


I know my query will return more than one row but I don't want cursor what should I do?

1 Answers  






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.

0 Answers   Cap Gemini,


What are the divisions in a cobol program?

1 Answers  


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

0 Answers  


) How do u handle errors in BMS macro

0 Answers   IBM,


Why occurs can not be used in 01 level ?

2 Answers   TCS,


how do you reference the esds vsam file formats from cobol programs

0 Answers  


How do you compile cobol program..?

1 Answers  


Categories