what if any ,is the syntex 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 / ramesh
HI Vish,
We can use 02 level to describe C.
Only Mistake seems to be Wrong Syntax.
Thanks
Rameshkumar.H.K.
Infosys
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is amode(24)?
What rules are followed by the search verb.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
A table has two indexes defined. Which one will be used by the SEARCH?
what is difference between cobol and cobol/400
What is a SSRANGE and NOSSRANGE?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is the difference between binary search and sequential search?
For rewrite, why is it mandatory that file needs to be opened?
Difference between cobol and cobol-ii?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What are different data types in cobol?
Define static linking and dynamic linking.