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

What is the function of job statement in jcl?

638


which parameter is used to check the syntax of a jcl without executing it?

802


What are hierarchy levels in jcl?

960


How does jcl act on a cobol code?

659


What is timing concept in mainframe?

1664






What is the significance of addrspc parameter in exec statement?

737


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

812


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1361


which parameter is use to declare the name of dataset in dd statement?

744


What is jcl in mainframe?

696


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1972


What is the maximum length of a single line of jcl?

834


What statement can be used to send data to another mvs jes3 node?

836


What are some jcl statements that are not allowed in procedures?

732


what operation is performed by job statement?

663