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.
"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 |
how JCL works?
wht r different types of sorts ?
How does jcl specify the job to the operating system?
What is the syntax of JCL statement?
do we need to mention the location of catalogued procedure for each it's call in a single job?
Can we have a JOBSTEP without any EXEC ?
Is automatic restart possible in jcl? If yes, how?
Explain about File Tailoring
How is a new GDG coded?
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.
If Name is NOT given for a JOB statement, then will it give error or installation will supply it for the JOB ?
Can you code instream data in a PROC ?