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

is there any utility for restarting a particular step in jcl reply soon ?

5 Answers  


How many JOB statements a JCL can have ? If there are more than one JOB statements in a JCL, are they submitted in succession or in parallel ?

4 Answers   IBM, Tech Mahindra,


I have two input SORTIN files and We need to create one SORTOUT file which contains data of both input files. What is the SortCard for this?. Suppose the length of the both files are different, then How we do it? Please reply ASAP

4 Answers   CSC,


what is use of disp parameter in dd statement?

0 Answers   IBM,


MOD, DELETE; What does a disposition of (,DELETE) mean ?

3 Answers  






what is a steplib

4 Answers   CGI,


How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL.

3 Answers   IBM,


What are the parameter we cannot use in procedure?

0 Answers  


How to override loadlib?

0 Answers   Fiserv,


what is the job entry system used in your project?

3 Answers  


Suppose your program is reading a Sequential Vsam file. The file contains 10 records. How will you code the JCL to read only 2nd, 5th, 7th,and 10th record?

1 Answers   Thomson,


if we are specifing joblib as well as steplib in job then at the time of execution how the process will complete

4 Answers  


Categories