How to compile a source in a server so that I can able to debug the program in another server which doesn’t have compiler?

315 pts.
Tags:
Compilers
Debugging
Servers
Hi,

I have two servers. One server doesn't have compiler and I need to port some programs to this server and I need to debug it.

So, what parpameters do I need to supply at the time of compilation in the server which has compiler.

Thanks in advance

 

Answer Wiki

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

First, specify TGTRLS(V5R3M0). That will work whether you compile on Server 1 in order to run on Server 2, or you compile in the opposite direction.

Next is a little more difficult to know because you haven’t told us which “RPG” it is. Is this RPG III or RPG IV? (RPG II?)

In order to debug, you have to specify appropriate options, but the options are different for different compilers.

For RPG IV, I would specify DBGVIEW(*ALL) but DBGVIEW(*LISTING) would be good enough for you.

For RPG III, you should probably specify OPTION(*SRCDBG *LSTDBG) or at least OPTION(*LSTDBG).

Neither DBGVIEW(*SOURCE) nor OPTION(*SRCDBG) will do you any good unless you transfer the source file along with the compiled program. It doesn’t matter if a compiler exists on the other server. But you don’t need source for debugging. The listing view almost always works better for me anyway.

Tom

Discuss This Question: 2  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
  • carlosdl
    You will have to provide more details. What's the servers OS ? What is the programming language ? What tool are you using to compile the program, and what tool are you going to use to debug it ?
    69,510 pointsBadges:
    report
  • sudheer794
    Server 1 version- V5R4M0 Server 2 version - V5R3M0 Programmling languague is RPG
    315 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