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 to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
I need exexution process for JCL programs
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Which dd parameters are required?
how to do automated restart when a job abends?
Describe the various parameters utilized in the creation of a gdg?
Mention the types of job control statements?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What is jcl in mainframe?
Explain how can values be passed from the job stream to an executable program?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
How to pass data to a program that is coded in an exec statement?
Are there any set of rules for the names of the steps used in a job?