ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Entry parms in freeform *inzsr

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

  • #16
    Re: Entry parms in freeform *inzsr

    Originally posted by MdnghtPgmr View Post
    rpgKnight,

    Try viewing this:



    Then go to the Sept. 16, 2008 (there is a little scrolling list just under the "screen"). It will show you exactly how to do what you are trying to do.

    HTH,
    MdnghtPgmr
    Thank you, thank you, thank you!! Bob Cozzi rocks. All of you do, too, of course. The Tuesday Tips is a nice site.

    Got the answers.

    I knew I was overthinking this.

    Comment


    • #17
      Re: Entry parms in freeform *inzsr

      if you read the post you would see that the prototype name must match the program name to avoid using the EXTPGM (i did however forget to mention that DFTACTGRP(*NO) should be used for that method )

      @dhuesman: "junk" was just a example name...i'd never use it for real. and i generally use the first method having the prototype name = program name just makes more sense to me...but that's just my preference.
      I'm not anti-social, I just don't like people -Tommy Holden

      Comment


      • #18
        Re: Entry parms in freeform *inzsr

        yes sir ~ I understood. I just added the comment for the original poster.

        Comment


        • #19
          Re: Entry parms in freeform *inzsr

          @rpgknight and others
          Also while ensuring the program name = procedure name the case of the name also matters

          Junk <> JUNK

          So basically, when you have a program name in all CAPS, which would usually be how the AS400 identifies RPGLE and COBOL programs, then the procedure name within the code should also be all CAPS.

          So lets say your program name is UPDARCMT then the following would be your procedure definition

          d UPDARCMT PR
          d custcode like(AMCUST)
          d UPDARCMT PI
          d custcode like(AMCUST)

          The following would give a compilation error
          d Updarcmt PR
          d custcode like(AMCUST)
          d Updarcmt PI
          d custcode like(AMCUST)

          Comment


          • #20
            Re: Entry parms in freeform *inzsr

            Originally posted by vikramx View Post
            @rpgknight and others
            Also while ensuring the program name = procedure name the case of the name also matters

            Junk <> JUNK

            So basically, when you have a program name in all CAPS, which would usually be how the AS400 identifies RPGLE and COBOL programs, then the procedure name within the code should also be all CAPS.

            So lets say your program name is UPDARCMT then the following would be your procedure definition

            d UPDARCMT PR
            d custcode like(AMCUST)
            d UPDARCMT PI
            d custcode like(AMCUST)

            The following would give a compilation error
            d Updarcmt PR
            d custcode like(AMCUST)
            d Updarcmt PI
            d custcode like(AMCUST)
            wrong...the case only matters when the junk is specified as EXTPGM('junk') in this case. as far as the procedure name the case does not matter the compiler will translate that to uppercase at compile time. however you can create problems in service programs if you are using mixed case names...
            I'm not anti-social, I just don't like people -Tommy Holden

            Comment


            • #21
              Re: Entry parms in freeform *inzsr

              ok i stand corrected. I had some other problem while trying to compile

              Comment


              • #22
                Re: Entry parms in freeform *inzsr

                Originally posted by MdnghtPgmr View Post
                rpgKnight,

                Try viewing this:



                Then go to the Sept. 16, 2008 (there is a little scrolling list just under the "screen"). It will show you exactly how to do what you are trying to do.

                HTH,
                MdnghtPgmr
                very nice share MdnghtPgmr, i can learn fastly with bob's video
                is there another tips like bob's video ?

                thx u for sharing

                Comment


                • #23
                  Re: Entry parms in freeform *inzsr

                  Hi rx_b10.

                  Bob has a whole bunch at that same site. Just scroll through the list and watch whatever catches your fancy!

                  Enjoy,
                  MdnghtPgmr
                  "Tis better to be thought a fool then to open one's mouth and remove all doubt." - Benjamin Franklin

                  Comment


                  • #24
                    Re: Entry parms in freeform *inzsr

                    I went to http://systeminetwork.com/tuesdaytips but the videos of Sept. 16, 2008 i does not exit ?? or deleted ?? i was intereted to it. Can some one help me

                    thanks

                    Comment


                    • #25
                      Re: Entry parms in freeform *inzsr

                      Seem no more available.
                      Look here.
                      Philippe

                      Comment

                      Working...
                      X