When and how can we use index & subscript ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you used comp and comp-3 in your project? And how?

2209


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2228


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.

2212


What is the Purpose of POINTER Phrase in STRING command in COBOL?

963


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

2109


Why would you use find and get rather than to obtain?

903


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1350


What guidelines should be followed to write a structured cobol prgm?

865


What is an in line perform? When would you use it? Anything else you wish to say about it.

836


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

868


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

860


What is the use of intialize verb?

978


What is the difference between goback, stop run and exit program in cobol?

1232


How do we get current date from system with century in COBOL?

1066


What is the difference between PIC 9.99 and PIC9v99?

1036