What is a subscript ?

Answer Posted / ananta

Subcript : it is occurences of same type of records.

Ex-1.

01 arry.

02 a pic x(5) occures 5 times.
03 i pic 9.

ex-2.

01 rec-1.
02 rec1 pic x(5).
02 rec2 pic x(5).
02 rec3 pic x(5).
02 rec4 pic x(5).
02 rec5 pic x(5).


these 2 example shows that ex-2 can be writen in the form
of subcript .it make fast proccessing by usin g less I/o
sources.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

996


How to print 10 to 1 if the input have only 10 digit number?

811


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


Define cobol?

860


What is a SSRANGE and NOSSRANGE?

820






input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1783


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2058


What is the problem of ordered sequential files access?

698


Are you comfortable in cobol or jcl?

643


how do you reference the printer file formats from cobol programs

661


For rewrite, why is it mandatory that file needs to be opened?

620


Write down the divisions of cobol program?

671


Differentiate between structured cobol programming and object-oriented cobol programming.

667


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.

1115


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

709