ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Migrate from RPG/400 to RPG IV

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

  • Migrate from RPG/400 to RPG IV

    What are the tools that can help me in migrating from RPG/400 to RPG IV?

  • #2
    Re: Migrate from RPG/400 to RPG IV

    Do you mean the command CVTRPGSRC or are you looking for something else?

    Comment


    • #3
      Re: Migrate from RPG/400 to RPG IV

      Yes this command can be used, but then is it tried and tested?
      Hope it converts AS IS.

      Have anybody tried it before?

      Comment


      • #4
        Re: Migrate from RPG/400 to RPG IV

        sandypathak,

        I have used it in the past and it worked well. And yes, if I understand you correctly, it converts as is. Mind, it won't fix bad code, just convert it to IV . Just test it out on a couple of source members to get a feel for what it will do and not do.

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

        Comment


        • #5
          Re: Migrate from RPG/400 to RPG IV

          Never had any problems with the command.
          Bill
          "A good friend will bail you out of jail,
          A true friend would be sitting beside you saying,
          'Wow, that was fun.'"

          Comment


          • #6
            Re: Migrate from RPG/400 to RPG IV

            Yes it converts as is and it does work just fine.

            The source you end up with will look very similar to the way it looks now.

            If you want somethng to make your code look more like proper RPG IV you can try CVTILEFMT after running CVTRPGSRC. CVTILEFMT is a free tool you can pickup from a website ( I forget which one but you can Google it) I've tried it a couple times before and it seems OK. There are probably others as well.

            Good luck

            Comment


            • #7
              Re: Migrate from RPG/400 to RPG IV

              I used both these items and they work 95% of the time. There are 2 things I watch out for.

              1. There are a couple of rarely used commands that won't convert. You will get a message.

              2. When passing numeric parms, always use packed fields in RPG4. When converting, I found some S-type numerics that passed ok in RPG3, but gave a dec data error in RPG4. Esp true when RPG3 pgm calls RPG4 or the reverse.

              Note that these utilities set you up with an RPG-IV pgm, but do not implement ILE. It also a good learning tool.

              BTW: If you are using the WDSc lpex editor, you can open the source, and do a one-click conversion from RPG3 to RPG4, and optionally, another one-click conversion to free-format RPG.

              Comment


              • #8
                Re: Migrate from RPG/400 to RPG IV

                The lpex editor an also be a great learning tool. Its ability to convert source to RPG-IV "on the fly" combined with it's auto syntax checking, IDE-type prompting, and source verify can be invaluable for the new user.

                Comment


                • #9
                  Re: Migrate from RPG/400 to RPG IV

                  If you have copybooks, make sure you use the command on them, too. Otherwise, the new source won't compile.
                  â??No bird soars too high if he soars with his own wingsâ?? â?? William Blake

                  Comment


                  • #10
                    Re: Migrate from RPG/400 to RPG IV

                    Originally posted by Billw View Post
                    Never had any problems with the command.
                    2nd!!

                    I just converted about 600 source members last spring. The only thing I ran into and it was mentioned in this thread, is to also convert your /copy members.

                    Comment

                    Working...
                    X