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.



what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) .......

Answer / 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

More JCL Interview Questions

What is the difference between primary and secondary allocations for a dataset?

8 Answers  


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

0 Answers  


What are the kinds of job control statements?

3 Answers  


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

0 Answers  


A dd statement consists of 4 fields. Name them?

0 Answers  






Mention the types of job control statements?

0 Answers  


What are steplib and joblib?

0 Answers  


do we need to mention the location of catalogued procedure for each it's call in a single job?

1 Answers  


Where & How Do You Code Identifier In Jcl?

0 Answers   IBM,


What happens if both JOBLIB and STEPLIB is specified ?

8 Answers  


i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can u do this.

7 Answers   Syntel,


How many steps we can overide in the proc's?

2 Answers   CS,


Categories