consider the following progrm statements
MOVE 0 TO SW.NO.OF.REC
PERFORM PRI-OUT UNTIL SW=1
DISPALY NO.OF.REC
STOP RUN
PRE-OUT
READ IN-FILE AT END
MOVE 1 TO SW
WRITE OUO-REC FROM IN-REC
ADD 1 TO NO.OF REC
if the IN-FILE contains 1000 records what value will be
displayedafter the
PERFORM is over?assume that N0.OF.REC has PIC 9(4)
a.1000
b.1001
c.1
d.none of the above since there is a syntex error

Answer Posted / islam

the correct answer is : c (i.e. 1)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How arrays can be defined in COBOL?

661


Write a cobol program making use of the redefine clause.

725


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

704


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

1912


What is the usage of comp fields in cobol?

653






1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5370


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1607


Name the divisions, which are available in a cobol program?

681


Whats the difference between search & search ALL?

5258


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1767


How do define dynamic array in cobol.

669


What is the local-storage section?

681


How you can read the file from bottom?

658


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1019


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

708