Write a program to explain size error.
Answer / 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 |
Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .
what is the maximum error code in mainframe
A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
1.Can we define condition-name conditions in FD entry.
How to delete the records of a dataset through cobol programme?We should not use jcl utilitities like IDCAMS.
how would find total records in files using seqientional
What are literals?
What is the file organization clause ?
Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?
can we use variable picture clause as xx.99 in cobol.
what is scope terminator