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


Please Help Members By Posting Answers For Below Questions

What are s0c1, s0c4, s0c5, s0c7 and socb?

937


Explain the function of the steplib dd statement?

844


what are the statements that are not valid to be included in an include statement?

1088


What are the jcl procedures?

844


which parameter is used to check the syntax of a jcl without executing it?

1050


Name a few IBM utility programs, and explain its function.

4689


Are there any set of rules for the names of the steps used in a job?

856


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?

921


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

2132


Name what parameter directs the output of the job log dataset?

788


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

780


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

1023


how you can access an uncataloged dataset in a JCL?

876


Explain the function of //jcllib statement?

934


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

1908