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 to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is inspect in cobol ?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is the local-storage section?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Write a program to explain size error.
What is the use of intialize verb?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
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.
Which mode is used to operate the sequential file?
What is perform what is varying?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
) how do u code after getting data?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?