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


Please Help Members By Posting Answers For Below Questions

Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

721


what is the JCL statement consists of?

699


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

939


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2173


What is the difference between run mode and addressing mode?

636






what happens in execution stage in job processing?

657


what is use of dcb parameter in dd statement?

775


what is SOC4 error?

740


Which dd parameters are required?

695


Name a few IBM utility programs, and explain its function.

4440


what is DD statement is used in JCL?

683


What do you understand by the term job time – out and how can you overcome that?

606


How to execute 2nd and 4th steps among 5 steps in jcl proc?

750


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

584


How to do automated restart when a job abend?

791