Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Which is the most important Division in Cobol programming

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
mytags

New User


Joined: 28 Apr 2008
Posts: 63
Location: US

PostPosted: Fri May 23, 2008 10:42 am    Post subject: Which is the most important Division in Cobol programming
Reply with quote

Hi all,
I got a question from an interviewer recently that" Which is the most important Division in Cobol programming" I answered for it but he is not fully satisfied, Can any body reply with a most apt answer for this question?
With Thanks
Hari
Back to top
View user's profile Send private message

the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Fri May 23, 2008 10:51 am    Post subject:
Reply with quote

IDENTIFICATION DIVISION.
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Fri May 23, 2008 12:37 pm    Post subject: Reply to: Which is the most important Division in Cobol prog
Reply with quote

IDENTIFICATION DIVISION.

WE cant proceed to any other division without this one. Correct me if I am wrong.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri May 23, 2008 1:15 pm    Post subject: Reply to: Which is the most important Division in Cobol prog
Reply with quote

Just curios icon_smile.gif

Why ?

I just searched the net and the opinions differ
DATA and PROCEDURE are quoted mostly

since the COBOL Divisions are mandatory
it' s just a stupid question posed to embarrass the candidate
without any relevance to real skills
Back to top
View user's profile Send private message
mytags

New User


Joined: 28 Apr 2008
Posts: 63
Location: US

PostPosted: Fri May 23, 2008 5:25 pm    Post subject:
Reply with quote

Hi all,
I too answered as Identification division, but as Enrico says at that time i too thought like that i just as stupid question, But i found that many of my friends got asked the same question so i feel its a good question to discuss with you all ,Since different people have different opinion.
Thanks
Hari
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri May 23, 2008 5:33 pm    Post subject: Reply to: Which is the most important Division in Cobol prog
Reply with quote

Quote:
at that time i too thought like that i just as stupid question


the fact that was asked to everybody just shows only repeated stupidity
feel free to keep thinking about it as a dishonest/stupid question
asked to put negative marks in the interview score...

but again what makes the interviewer think that the IDENTIFICATION division is the most important ???

If I remember correctly it' s content is treated as a comment
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Fri May 23, 2008 5:57 pm    Post subject:
Reply with quote

Answer: It's a stupid question.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Fri May 23, 2008 5:58 pm    Post subject:
Reply with quote

Anatomy question:

What's more important, your heart or your lungs?
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Fri May 23, 2008 7:07 pm    Post subject:
Reply with quote

IDENTIFICATION division is a mandatory one in COBOL. Though it is meant for comment to the programmers it is an important division in COBOL.

Hope this helps!
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri May 23, 2008 7:55 pm    Post subject:
Reply with quote

The following pgm has only 1 div coded and it produces a list of all COBOL error msgs. I guess the moral of the ques is that w/o the ID DIV all else is impossible.

BIMHO, enrico is right - it's a stupid ques for an interview. Over a few beers, maybe, .... but I'm not convinced.


***********************************************************************
Pgm to list all COBOL error messages.
***********************************************************************
Identification Division.
Program-ID. ErrMsg.
That's all that's required. Just compile it.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Fri May 23, 2008 10:10 pm    Post subject:
Reply with quote

I did not believe that a 2 line program would compile, but I have an open mind so I tried it. The program Jack gave compiled clean and ran clean. Return code zero on both. But I did not get a list of all COBOL error messages. I got no output. Did you actually get a list of error messages?
Was it at compile time or run time? What dd name did it come out.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri May 23, 2008 10:19 pm    Post subject: Which is the most important Division in Cobol programming
Reply with quote

Yes and I have have a stupid answer -

Division that doesn't divide by zero. icon_lol.gif
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri May 23, 2008 10:29 pm    Post subject:
Reply with quote

Douglas Wilder wrote:
I did not believe that a 2 line program would compile, but I have an open mind so I tried it. The program Jack gave compiled clean and ran clean. Return code zero on both. But I did not get a list of all COBOL error messages. I got no output. Did you actually get a list of error messages?
Was it at compile time or run time? What dd name did it come out.

The list is in the compile listing....
Generating a list of compiler error messages
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Fri May 23, 2008 10:49 pm    Post subject:
Reply with quote

This proves I can even mis-type a 2 line program using cut and paste. I had the Program-ID as ErrMsgs and it did not give the list of error messages, but without the "s" it does.

Thank You.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat May 24, 2008 12:59 am    Post subject: Reply to: Which is the most important Division in Cobol prog
Reply with quote

Rather pathetic on the part of the interviewer. . .

Not only did they ask a question that can only be answered by an opinion but then said the opinion was wrong. . .

My guess is that the interviewer believes they are also a psychologist and just wanted to observe the reaction to the negative response. That or they are completely absorbed by the "eye dee ten tee" condition (ID10T).

This very possibly is the most important division in cobol:
Quote:
Division that doesn't divide by zero.
icon_smile.gif

d
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon May 26, 2008 12:06 pm    Post subject:
Reply with quote

Hi,

Well, I was also the victim of this question but I could aid the answer with
Quote:
ERRMSG needs only one division coded and it produces a list of all COBOL error msgs, so I can say it's the smallest program which needs only one DIVISION.

And my interviwer was agreed, was lucky that day I think.
Back to top
View user's profile Send private message
mytags

New User


Joined: 28 Apr 2008
Posts: 63
Location: US

PostPosted: Mon May 26, 2008 12:13 pm    Post subject: Reply to: Which is the most important Division in Cobol prog
Reply with quote

Hi friends,
I am happy and thankful to all for their kind replies, from these replies i got understood that atleast we can avoid this mistake in future icon_smile.gif
With Thanks,
Hari
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us