ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

/Free

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

  • /Free

    So have converted a rpg to LE using WSDC. Looks fine except the PR begins are not in free and it looks really out of place, turning on free then turning it of for one statement.

    Endif;
    /END-FREE
    p ChkBuyer e
    //************************************************** *** ChkBuyer
    //************************************************** *** ChkVendr
    // ChkVendr - Check Vendor Authority
    //************************************************** ***********
    p ChkVendr b
    /FREE
    VmAut = *Off;
    Etc
    Back and forth. Is there a replacement for the P spec in free? Or do I just leave it.

    Thnx
    Bill
    Bill
    "A good friend will bail you out of jail,
    A true friend would be sitting beside you saying,
    'Wow, that was fun.'"

  • #2
    Re: /Free

    I find that most times a little human touch is all we need
    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


    • #3
      Re: /Free

      Does that mean you can do a P spec in free? I didn't think you could.
      Ben

      Comment


      • #4
        Re: /Free

        That's my point, there is not a free P spec. (thnx wrong forum).
        Bill
        "A good friend will bail you out of jail,
        A true friend would be sitting beside you saying,
        'Wow, that was fun.'"

        Comment


        • #5
          Re: /Free

          I got your point but Jamie's wink alluded to something else...
          Ben

          Comment


          • #6
            Re: /Free

            I was......the conversion is great but it is lacking in some cases.....
            I often have to tweak the code after I convert it.


            jamie
            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


            • #7
              Re: /Free

              That seems to be the case in any type of conversion utility. Tweak and re-tweak.

              I haven't gotten into exporting procedures YET. Maybe that would be the solution, I just make a program, call it and pass the parms.

              But my view is if the procedure is unique to the program then I have no reason to export it. It just seems weird to turn on free then turn it off then on and off, etc.

              Is that good practice? I don't know I have no programming standards to go by, only the ones I set for myself.

              I don't want to get the attitude of "oh well it works". I like to do it so others can look at it, understand it, and change it with minimal effort (oh and change it right). Not like some other garbage I have seen.

              Bill
              Bill
              "A good friend will bail you out of jail,
              A true friend would be sitting beside you saying,
              'Wow, that was fun.'"

              Comment


              • #8
                Re: /Free

                I prefer to change only "selected", even if selected is all the C-specs. Otherwise it changes all the comments found in other spec types that don't have free-format. That is what you see happening here.

                Comment


                • #9
                  Re: /Free

                  Bill,

                  C-specs are the only ones that are /free. H, F, D, P, etc. have no /free-dom. Therefore, there is no /free equivalent to procedure begin/ end statements, nor the D-specs within your procedures. You must /end-free before ending a procedure and beginning a new one.

                  Michael
                  "Time passes, but sometimes it beats the <crap> out of you as it goes."

                  Comment

                  Working...
                  X