What can be the max compilation return code for a program?

All sort of Mainframes Interview Questions.
Post Reply
SuperRa
New Member
Posts: 5
Joined: Thu Dec 04, 2014 2:22 pm

What can be the max compilation return code for a program?

Post by SuperRa »

Hi,

What can be the max compilation return code for a program? I was not sure on the answer of this question. Interviewer said, you have to think logically but I was not able to answer the question. Does anyone of you know the answer then please share.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: What can be the max compilation return code for a progra

Post by enrico-sorichetti »

You should have asked back ...
for what language ?
the info about the return code for any language compiler is in the manual for that language compiler
for COBOL the COBOL manuals,
for FORTRAN the FORTRAN manuals
for <anycompiler> the <anycompiler> manual

but usually the the max return code is 16 ( IIRC )
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: What can be the max compilation return code for a progra

Post by Robert Sample »

Generally:
0 means successful compile
4 means compile with warnings (program may execute but give incorrect results)
8 means compile with errors (program may execute but give incorrect results)
12 means compile with severe errors (compiler may not produce any output)
16 means compiler stopped executing
SuperRa
New Member
Posts: 5
Joined: Thu Dec 04, 2014 2:22 pm

Re: What can be the max compilation return code for a program?

Post by SuperRa »

It was for COBOL only. Thanks for the answer Robert.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: What can be the max compilation return code for a program?

Post by zprogrammer »

Also it depends upon how some shops design/customize the products, I have seen places where 8 is regarded as success for compilation (Strange but true )
zprogrammer
SuperRa
New Member
Posts: 5
Joined: Thu Dec 04, 2014 2:22 pm

Re: What can be the max compilation return code for a program?

Post by SuperRa »

Thanks for all the answers. Thank you!
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Interview Questions.”