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.
Answer Posted / 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 View All Answers
What are s0c1, s0c4, s0c5, s0c7 and socb?
Explain the function of the steplib dd statement?
what are the statements that are not valid to be included in an include statement?
What are the jcl procedures?
which parameter is used to check the syntax of a jcl without executing it?
Name a few IBM utility programs, and explain its function.
Are there any set of rules for the names of the steps used in a job?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
Name what parameter directs the output of the job log dataset?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
how you can access an uncataloged dataset in a JCL?
Explain the function of //jcllib statement?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C