IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Minimum Requirements for a COBOL program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sats456

New User


Joined: 29 May 2005
Posts: 12

PostPosted: Sat Jun 04, 2005 11:57 pm
Reply with quote

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
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sun Jun 05, 2005 12:28 am
Reply with quote

Code:
ID DIVISION.
PROGRAM-ID. SAMPLE.


is enough...
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Mon Jun 06, 2005 12:34 pm
Reply with quote

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
View user's profile Send private message
nil_mf

New User


Joined: 06 Jun 2005
Posts: 29

PostPosted: Mon Jun 06, 2005 12:38 pm
Reply with quote

Hi,
I think kanak is correct. Procedure Division is needed.
Back to top
View user's profile Send private message
Deepa.m

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Mon Jun 06, 2005 1:50 pm
Reply with quote

Priya is correct..
just Identification Division and program ID is enough. Try for yourself.
Back to top
View user's profile Send private message
asr1983

New User


Joined: 31 May 2005
Posts: 11

PostPosted: Mon Jun 06, 2005 5:30 pm
Reply with quote

Hi,
Priya is correct. Just Identification Division and Program-Id are enough

for a program to compile error-free.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top