Binding and procedures

20 pts.
Tags:
RPG ILE
 

Hi every body,

i am trying to learnig ile individuly with AS/400 trailer versions.Could you please give me your experience in words for my doubtable questions? 

  1.what is serviece program?how to do i call the service pgm?and which procedure will be excuted first when service pgm is called?

  2.give me differences bind by copy and bind by reference

  3.Actually what is mean by binder language? how do i you use the binder language to maintain the service pgm signatuer

 



Software/Hardware used:
software

Answer Wiki

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

Try these links.

http://www.itjungle.com/mpo/mpo092503-story02.html

http://www.itjungle.com/mpo/mpo102303-story02.html

http://www.scottklement.com/presentations/

Look for the one called ILE Concepts (for the Impatient RPG Programmer)

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
  • HMSSL2K
    Sounds like homework questions. Try the Internet for your questions.
    3,175 pointsBadges:
    report
  • TomLiotta
    1.what is serviece program?how to do i call the service pgm?and which procedure will be excuted first when service pgm is called? A service program is like a Windows .DLL or a UNIX shared library. You don't call service programs; you call a procedure that is exported from a service program. The procedure that is executed will be the one that you called. (That procedure might call other procedures in that service program or in other service programs.) 2.give me differences bind by copy and bind by reference A module that is bound by copy becomes part of the compiled program. You can delete the module from the system and the program will still run successfully because a copy of the module is included inside of the program. A module that is bound by reference is simply pointed to in the program; it will exist in the service program that contains it, not in the program. If the service program is deleted, the program won't be able to call into that module and will fail when it tries. 3.Actually what is mean by binder language? how do i you use the binder language to maintain the service pgm signatuer Binder language is written in a type of source code that describes procedures in a service program. It's not required because the system will provide defaults for signatures. However, by using binder language for service programs you are able to control the signatures. You can prepare your service programs so that they have multiple signatures. Different signatures might be needed for different versions of your procedures. You might create a program that calls a procedure from your service program with a parameter that is a numeric value. The signature might be 'Sp_number_1'. Later, you alter the service program so that it accepts two parameters -- a numeric value plus a date. You add a new signature to the service program that might be 'Sp_number_2'. You want the original program to continue to work when it calls into the service program; but you also want a new program to pass two parameters and you also want it to work with the same service program. Binder language gives a way to keep control of procedures and parameters and to have two different signatures for the same service program. You can update the service program and the original program will continue just like it always did. And you can use your new program and it can also work. The two programs basically act like they're calling two different service programs that do different things or that work in different ways. The programs use the appropriate signatures to make the linkages into the service program's procedures. You'll want to do it a couple times to see your own examples. 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