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 steplib and joblib?
Explain how can the attributes of one sms dataset be copied to another dataset?
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
is there any way to execute more than one proc in the same exec statement at the same time..?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
How does the jcl specify the job to os?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Give the syntax of job specifying jcl statement.
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
Is their any limit for data sets?
What are hierarchy levels in jcl?
What is jcl in mainframe?
How dummy is used in jcl?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?