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 to increase the space of a dataset in instream procedure.
wht is the d/f between positional parameter n keyword parameter ?
What is the difference between catalogue procedure and In-Stream procedure?
When we use conditional statement in JCL using if-then-else-endif, IF statement is true, the step is bypassed or executed?
In my JCL 10 Steps Will Be there Now i want to execute step05 And step06. How to Give the Cond?
I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
which statement is used to end the in-stream procedure in a jcl?
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
What are the 4 fields in dd statement?
Can anyone tell me the syntax for printing two files at two different destinations in a single step?
What is the DD statement for a output file?