ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Difference Between Service Program and Binding Directory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Difference Between Service Program and Binding Directory

    Please reply me with what is Service Program and Binding Directory. And what is the difference between them..

  • #2
    Re: Difference Between Service Program and Binding Directory

    Let me Google That For You
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: Difference Between Service Program and Binding Directory

      Originally posted by tomholden View Post

      Comment


      • #4
        Re: Difference Between Service Program and Binding Directory

        Originally posted by surbhi_babbar View Post
        Please reply me with what is Service Program and Binding Directory. And what is the difference between them..
        Binding directory is used to bind 1 or more modules or service programs. It reduces the error while including a long list of modules/ service program names in CRTPGM or CRTSRVPGM command. Binding Directory physically copy the modules in pgm at the time of creation.

        Service program is a collection of runnable procedures and available data items that srves other programs. Service Programs bind the modules by reference.

        Comment


        • #5
          Re: Difference Between Service Program and Binding Directory

          Originally posted by Bhartiya View Post
          Binding directory is used to bind 1 or more modules or service programs. It reduces the error while including a long list of modules/ service program names in CRTPGM or CRTSRVPGM command. Binding Directory physically copy the modules in pgm at the time of creation.

          Service program is a collection of runnable procedures and available data items that srves other programs. Service Programs bind the modules by reference.
          thank you for that! i'm sure that the OP hasn't even gotten anywhere on this topic in the past 2 years..sheesh
          I'm not anti-social, I just don't like people -Tommy Holden

          Comment


          • #6
            Re: Difference Between Service Program and Binding Directory

            Originally posted by tomholden View Post
            thank you for that! i'm sure that the OP hasn't even gotten anywhere on this topic in the past 2 years..sheesh
            Ohh... I did not notice the posting date !!!

            Comment


            • #7
              Re: Difference Between Service Program and Binding Directory

              in for a penny in for a pound:

              Nice definition of binding directory from midwareservices
              A binding directory is an AS/400 object of type *BNDDIR that contains an ordered list of service programs and/or modules. You can use the command CRTBNDDIR to create a new binding directory, and the commands WRKBNDDIR (with with binding directories) and WRKBNDDIRE (with with binding directory entries) to change the binding directories.

              In a sense, a binding directory is very similar to a library list. However instead of containing a list of libraries, it contains a list of service programs and/or modules.

              When a program or service program is created, instead of specifying the module(s) and/or service program(s) that contain the necessary procedures, you can indicate a binding directory.

              When the compile process needs to resolve a procedure call, it will look for the procedure in the first object specified in the binding directory. If it finds it there, it will use that one. If not, it will look in the second entry, and so on.

              The binding directory is used only during the compile process. If a binding directory is changed, you do not need to recompile your programs.

              How you use binding directories are entirely up to you. One possible use is to create one binding directory that contains all the service programs in your system. You can then change the CRTPGM command default to automatically include the binding directory when creating programs. If no procedures are needed, no harm will be done.
              All my answers were extracted from the "Big Dummy's Guide to the As400"
              and I take no responsibility for any of them.

              www.code400.com

              Comment


              • #8
                Re: Difference Between Service Program and Binding Directory

                Originally posted by tomholden View Post
                thank you for that! i'm sure that the OP hasn't even gotten anywhere on this topic in the past 2 years..sheesh
                I think your overestimating the skilz of the OP
                Michael Catalani
                IS Director, eCommerce & Web Development
                Acceptance Insurance Corporation
                www.AcceptanceInsurance.com
                www.ProvatoSys.com

                Comment

                Working...
                X