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
how you can direct the data to spool using SYSOUT option?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
How do you overcome this limitation ?
whats the diff bw the evaluate also and and?
what are the statements that are not valid to be included in an include statement?
Is their any limit for data sets?
What parameter of the job statement is used to limit the cpu time consumed by the job?
what is a jcl?
Can I send output of job to my remote device careerride123?
is there any way to execute more than one proc in the same exec statement at the same time..?
Explain the jcl exec statement?
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
Are there any set of rules for the names of the steps used in a job?
What is the purpose of dd?