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
displayed after the
PERFORM is over? assume that N0.OF.REC has PIC 9(4)
a.1000
b.1001
c.1
d.none of the above

Answer Posted / dimpy19

d.none of the above
since there is a syntax error

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1943


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

1960


what are the types of abends that occur on job failure? And explain the possible causes of these

1112


What is the function of //cntl statement?

824


A dd statement consists of 4 fields. Name them?

912






i want to store 20 digits . how will u do it in cobol ?

856


write a jcl to execute a job by 7:00 am on jan 20,1986?

689


How to submit jcl through a cobol program?

669


How to execute 2nd and 4th steps among 5 steps in jcl proc?

744


what is use of space parameter in dd statement?

745


List the different components of jcl statement?

685


How does the jcl specify the job to os?

682


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

726


which utility is used to sort a file in jcl?

743


Name a few IBM utility programs, and explain its function.

4424