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
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
A dd statement consists of 4 fields. Name them?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
What is NOTCAT ?
Where & How Do You Code Identifier In Jcl?
List the different jcl statements that are not permitted in the procedures?
what operation is performed by job statement?
Give the syntax of job specifying jcl statement.
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
What are the rules employed while naming the steps in a job?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What is notcat 2 - gs?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
What are hierarchy levels in jcl?
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.