Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Which is the most important Division in Cobol programming
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
mytags

Active User


Joined: 28 Apr 2008
Posts: 64
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
References
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 168
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: 72
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: 3078
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

Active User


Joined: 28 Apr 2008
Posts: 64
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: 3078
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

Senior Member


Joined: 31 Oct 2006
Posts: 497
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

Senior Member


Joined: 31 Oct 2006
Posts: 497
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

Senior Member


Joined: 31 Mar 2005
Posts: 386
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: 1504

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: 197
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

Senior Member


Joined: 14 Jan 2008
Posts: 332
Location: Orlando, FL, 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: 1199
Location: At my desk

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: 197
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

Global Moderator


Joined: 23 Nov 2006
Posts: 8638
Location: 221 B Baker St

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 HoursGoto page 1, 2  Next
Page 1 of 2