Runtime error and compile time error in RPG/400

130 pts.
Tags:
AS/400 compile
AS/400 Runtime Errors
RPG/400
Runtime Errors
Hi,   Can you please give me real senerio what is mean by runtime error and compile time error?please give me the logic of both?

Software/Hardware used:
software

Answer Wiki

Thanks. We'll let you know when a new response is added.

Compile Time Error: An error within the code, that causes the compile of the program to fail. (i.e. Variable not defined)

Runtime Error: An error that occurs when a compiled program encounters an error, while running. (i.e. Array element is out of bounds; like when you have an array defined to handle up to 99 elements, but the program tries to access element 100, and since the array is defined 99, it assumes element ZERO, which is not possible)

-sarge

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    A run-time error happens when a program runs; and a compile-time error happens when a program is compiled. It seems like a pretty basic question that a student would need to know. In fact, a lot of questions seem to be "student" questions. If these are interview questions, it doesn't seem quite right to supply answers. That would seem to be misleading to interviewers. Tom
    125,585 pointsBadges:
    report
  • Rudedog
    there most certainly seem to be a lot of "fishing" going on in the last few months. fishing for answers to textbook examples, interview questions and such. it's like having my own company all over again....i'm now w babysitter. :) -sarge
    950 pointsBadges:
    report
  • TomLiotta
    ...from a lot of people in India... At almost four times the size of, say, the U.S.A., four times as many questions might be expected. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following