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
How arrays can be defined in COBOL?
Write a cobol program making use of the redefine clause.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the usage of comp fields in cobol?
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?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Name the divisions, which are available in a cobol program?
Whats the difference between search & search ALL?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How do define dynamic array in cobol.
What is the local-storage section?
How you can read the file from bottom?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?