If a simple cobol program has no syntax error, then is it necessary to compile it?

Showing Answers 1 - 13 of 13 Answers

Biswadeep Sarkar

  • Nov 8th, 2007
 

Yes. Compiling a program not only checks for syntax Error but also creates the object code i.e the Load module and we always execute this load module only.

sujithdan

  • Mar 8th, 2011
 

However simple be a COBOL program (it can even be a subprogram), it is always a good practice to copile it and make sure its syntax error free. Moreover when we compile the COBOL code, it will be converted by the compiler in to object code (the load module) and this object code is the one that a computer(machine) can understand. Thus only after proper compilation will a program run successfully. Also, this load module will help us to run the program multiple times without recpmpilation (if no source code changes are made)

  Was this answer useful?  Yes

talluri

  • Jul 27th, 2011
 

compilation also does converts the source code to object code (system understandable code), execution jcl does not execute source code directly

Babjee talluri

  Was this answer useful?  Yes

krishna

  • Oct 11th, 2011
 

compilation converts the source code in to object code but the object code is not executable in mainframe environment so we need to link-edit it by using iewl............compilation is must for the programs to execute...............

  Was this answer useful?  Yes

Without compiling the program, is it possible to find whether it doesnt have errors? If Yes,
Could you please let me know what is the procedure you are following to find the errors?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions