what is subscript in cobol?give realtime example?
Answer Posted / jagan kumar
it is a number of occrances of array data name. subscript is
coded in working-storage section with separate variable.
example.
01 g1.
02 ele pic x(3) occurs 10 times.
01 i pic 99.
procedure division.
perform varying i from 1 by 1 until i > 10
accept ele(i)
display ele(i)
end-perform.
in this is case i is a subscript variable
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
What guidelines should be followed to write a structured cobol prgm?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
What is report-item in COBOL?
How do get the result of your program directly on your pc?
Which division and paragraphs are mandatory for a COBOL program?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
) How do u handle errors in BMS macro
Which Search verb is equivalent to PERFORM…VARYING?
What is difference between static and dynamic call in cobol?
how do you reference the variable block file formats from cobol programs
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How are the next sentence and continue different from each other?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?