What is the difference between index and subscript?
Answer Posted / vamsi krishna g
subscript is occurence type like arrays so if u want to
dispaly a value of it means it will search for it from
begining
indexed:
if u want to dispaly a value of an vairable it will
directly diplaces to that value and display the value
so from this we can say
subscript is an occurance type and indexed is displacement
type
if any wrong means please update me
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is the difference between perform … with test after and perform … with test before?
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 ......
Which division and paragraphs are mandatory for a COBOL program?
how do you reference the fixed unblock file formats from cobol programs
how do you reference the ksds vsam file formats from cobol programs
What are the different rules for performing sort operation?
What are declaratives and what are their uses in cobol?
What is a SSRANGE and NOSSRANGE?
What are the different data types in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What guidelines should be followed to write a structured cobol prgm?
What is the LINKAGE SECTION used in COBOL?
What is an in line perform? When would you use it? Anything else you wish to say about it.
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.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there