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
What is the function of job statement in jcl?
which parameter is used to check the syntax of a jcl without executing it?
What are hierarchy levels in jcl?
How does jcl act on a cobol code?
What is timing concept in mainframe?
What is the significance of addrspc parameter in exec statement?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
which parameter is use to declare the name of dataset in dd statement?
What is jcl in mainframe?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
What is the maximum length of a single line of jcl?
What statement can be used to send data to another mvs jes3 node?
What are some jcl statements that are not allowed in procedures?
what operation is performed by job statement?