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
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.
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
what are the types of abends that occur on job failure? And explain the possible causes of these
What is the function of //cntl statement?
A dd statement consists of 4 fields. Name them?
i want to store 20 digits . how will u do it in cobol ?
write a jcl to execute a job by 7:00 am on jan 20,1986?
How to submit jcl through a cobol program?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
what is use of space parameter in dd statement?
List the different components of jcl statement?
How does the jcl specify the job to os?
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.
which utility is used to sort a file in jcl?
Name a few IBM utility programs, and explain its function.