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

i have a jcl containing header body and trailer .in header i have viswa body 2 6 1 9 7 trailer reddy .now i need to sort only body in either asecending or descending order how can i do it

1 Answers   L&T,


How to get cursor position from system in CICS environment ?

8 Answers  


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

0 Answers  


when we use sysprint and sysout statements

3 Answers  


How do you restart a step in JCL?

12 Answers   HSBC,






Can we write same stepname for one or more steps in on job ?

2 Answers  


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.

1 Answers  


Explain how can an in-stream dataset be terminated?

0 Answers  


what is use of space parameter in dd statement?

0 Answers   IBM,


Explain the function of dd name parameter with a 2 part structure; audit.report?

0 Answers  


Statement1 "We can not use UNCATLG in SMS managed VSAM datasets" Statement2 "We can not delete a SMS managed data set without UNCATLG it" (P-353, Saba Zameer book) Then how do we delete SMS managed VSAM datasets ?

1 Answers   IBM,


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

0 Answers   IBM,


Categories