What do you feel makes a good program?
Answers were Sorted based on User's Feedback
Answer / raghunandan modak
A program that follows a top down approach. It is also one
that other programmers or users can follow logically and is
easy to read and understand.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / suresh babu
A good program should have the qualities like:
1. Correctness: It is the most important of the qualities.
A program that fails to produce correct results is
worthless.
2. Readability: Readability means the program shoud be
written in such a way that if a person wants to read and
understand the program, it shoud be possible for him to do
so without much difficulty. It is the primary objective of
structured programming.
3. Portability: A portable program is the one that can be
executed on different machines(with different compilers)
without any change or with only minor changes if required.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to solve SOC7. I have the cobol coded as below 01 A PIC 9(4). 01 AIN REDEFINES A. 05 AIN1 PIC S9(4) 01 B PIC 9(4)V99. 01 BIN REDEFINES B. 05 BIN1 PIC S9(4)V99. PROCEDURE DIVISION. START-PARA. INITIALIZE A AIN B BIN. ACCEPT A B. DISPLAY 'VALUE OF A=' A. DISPLAY 'VALUE OF B=' B. DISPLAY 'VALUE OF BIN1=' BIN1. DISPLAY 'VALUE OF AIN1=' AIN1. COMPUTE AIN1 = BIN1 - AIN1. DISPLAY 'VALUE OF AIN1=' AIN1. When i'm executing this code i'm getting SOC7 for A = 12 & B=34. Can someone explain SDSF OUTPUT DISPLAY TCOM058R JOB05458 DSID 102 LINE 0 COLUMNS 02- 81 COMMAND INPUT ===> SCROLL ===> CSR ********************************* TOP OF DATA ********************************** VALUE OF A=12 VALUE OF B=34 VALUE OF BIN1=34 VALUE OF AIN1=12 CEE3207S The system detected a data exception (System Completion Code=0C7). From compile unit PROG1 at entry point PROG1 at statement 29 at compile +000004CE at address 00007ECE. Please address how to solve this issue Thanks in advance.
What do you do to resolve SOC-7 error?
Name the sections present in data division.
How to retain the Duplicates in the one records?
What is report-item?
what is the difference between PA & PF keys?
Are you comfortable in cobol or jcl?
What is a scope terminator? Give examples.
what are decleratives in cobol?
Write a program to explain size error.
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.