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

Which is the most important Division in Cobol programming


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Fri May 23, 2008 1:15 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Fri May 23, 2008 5:33 pm
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

Senior Member


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

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

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

Senior Member


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

PostPosted: Fri May 23, 2008 5:58 pm
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: 435
Location: chennai, India

PostPosted: Fri May 23, 2008 7:07 pm
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
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri May 23, 2008 10:19 pm
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: 2146
Location: At my coffee table

PostPosted: Fri May 23, 2008 10:29 pm
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
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

Moderator Emeritus


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

PostPosted: Sat May 24, 2008 12:59 am
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

Superior Member


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

PostPosted: Mon May 26, 2008 12:06 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Anybody knows SIRON programming? COBOL Programming 2
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts Compile Sp Cobol base COBOL Programming 1
Search our Forums:

Back to Top