what if any ,is the syntax error in the following piece of code
01 B PIC A(7)
02 C PIC 9(4)
........
IF(B NUMERIC)
ADD 10 TO C
a.the condition in the if statement is wrong
b.noting is wrong
c.because C is initialised.ADD 10 TO C is wrong
d.both B and C shoud have same size.
Answer Posted / dimpy19
"B (ALPHABETIC)" did not have a valid type for the specified class condition. T
nformational Warning Error Severe Terminating
WORKING-STORAGE SECTION.
01 B PIC A(7) VALUE '1'.
01 C PIC 9(4) VALUE 2.
PROCEDURE DIVISION.
IF(B NUMERIC)
ADD 10 TO C.
STOP RUN.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
what is the JCL statement consists of?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
What is the difference between run mode and addressing mode?
what happens in execution stage in job processing?
what is use of dcb parameter in dd statement?
what is SOC4 error?
Which dd parameters are required?
Name a few IBM utility programs, and explain its function.
what is DD statement is used in JCL?
What do you understand by the term job time – out and how can you overcome that?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
How to do automated restart when a job abend?