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 / santhosh

please be in attention.Read the code thoroughly for syntax
errors.Here in this code he is performing a paragraph which
is not defined (i,e.)he is performing pri-out paragraph &
defined pre-out paragraph.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules of the move verb?

701


How do u write test cases?

1633


Write a program to enter and display the names of students in a class using the occurs clause.

647


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

709


What is a report item?

737






How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2093


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2101


How to remove 2 duplicate records and copy only one using job control language?

738


Can we change the password using ALTER? anyone tried and changed?

1542


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1798


How to know whether the module is dynamical or statistical?

650


What are the various section in data division and briefly explain them.

692


What are all the divisions of a COBOL program?

660


What are various search techniques in cobol? Explain.

641


What is the use of intialize verb?

742