View previous topic :: View next topic
|
Author |
Message |
sats456
New User
Joined: 29 May 2005 Posts: 12
|
|
|
|
What are the minimum Divisons,Sections, Paragraphs that need to be coded to make a COBOL program run free of error ? Assume that there are no Input and Output files.
Regards,
Sats |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Code: |
ID DIVISION.
PROGRAM-ID. SAMPLE. |
is enough... |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
hi,
My idea diffres from priya.I think PROCEDURE DIISION is also required, as that is the division which contains the code need to be executed.
as per me
Code: |
ID DIVISION
PROGRAM-ID. TEST.
PROCEDURE DIVISION. |
Correct me if i am wrong. |
|
Back to top |
|
|
nil_mf
New User
Joined: 06 Jun 2005 Posts: 29
|
|
|
|
Hi,
I think kanak is correct. Procedure Division is needed. |
|
Back to top |
|
|
Deepa.m
New User
Joined: 28 Apr 2005 Posts: 99
|
|
|
|
Priya is correct..
just Identification Division and program ID is enough. Try for yourself. |
|
Back to top |
|
|
asr1983
New User
Joined: 31 May 2005 Posts: 11
|
|
|
|
Hi,
Priya is correct. Just Identification Division and Program-Id are enough
for a program to compile error-free. |
|
Back to top |
|
|
|