View previous topic :: View next topic
|
Author |
Message |
mytags
New User
Joined: 28 Apr 2008 Posts: 63 Location: US
|
|
|
|
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 |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
IDENTIFICATION DIVISION. |
|
Back to top |
|
|
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 103 Location: INDIA
|
|
|
|
IDENTIFICATION DIVISION.
WE cant proceed to any other division without this one. Correct me if I am wrong. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Just curios
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 |
|
|
mytags
New User
Joined: 28 Apr 2008 Posts: 63 Location: US
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1049 Location: Richmond, Virginia
|
|
|
|
Answer: It's a stupid question. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1049 Location: Richmond, Virginia
|
|
|
|
Anatomy question:
What's more important, your heart or your lungs? |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Yes and I have have a stupid answer -
Division that doesn't divide by zero. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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. |
d |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
mytags
New User
Joined: 28 Apr 2008 Posts: 63 Location: US
|
|
|
|
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
With Thanks,
Hari |
|
Back to top |
|
|
|