adspace


Write a program to explain size error.

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


Please Help Members By Posting Answers For Below Questions

i need a small 3d program using inline and outline.

2311


Are you comfortable in cobol or jcl?

1117