adspace
Answer Posted / Abhay Jindal
The following COBOL program demonstrates a Size Error due to a variable being declared with an incorrect length:nnIDENTIFICATION DIVISION.nPROGRAM-ID. SizeErrorExample.nENVIRONMENT DIVISION.nINPUT-OUTPUT SECTION.nDATA DIVISION.nWORKING-STORAGE SECTION.n01 WS-NAME PIC X(20).nPROCEDURE DIVISION.nDISPLAY 'Enter your name:'nACCEPT WS-NAME.nDISPLAY 'Your Name is: ' WS-NAME.nSTOP RUN.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers