What's the order of file names to the compiler?

Modified on Sun, 21 Feb 2021 at 07:45 PM

In COBOL, the order of files provided to the compiler matters. Compiling the files

a.cob b.cob

produces a different program than

b.cob a.cob

Because of this, Kattis sorts COBOL files by filename before compiling them. Please keep this in mind when submitting multiple files.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article