ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to identify a program written in what type of RPG?

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

  • How to identify a program written in what type of RPG?

    How to identify a program written in what type of RPG language?
    1. If the code has /FREE then i can say it is RPGLE..(just an example)
    2. If the code has D spec, it can be RPGIV
    3. and so on...


    Is there any exact way to identify the RPG type rather than the one i presume.. like from compiler listing.. anything.. Please share..

  • #2
    Re: How to identify a program written in what type of RPG?

    DSPOBJD on the program for *SOURCE details. if there is any entries there then it's OPM not ILE.
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: How to identify a program written in what type of RPG?

      Hi Regu400:

      Code:
      DSPOBJD OBJ(MYLIB/*ALL) OBJTYPE(*PGM) OUTPUT(*OUTFILE) OUTFILE(QTEMP/JUNK)
      Run a qry/sql/dsppfm or whatever on the file qtemp/junk.
      The column ODOBAT (object attribute) will be RPGLE/RPG/RPG36 etc.
      You will also see CLP CLLE DFU etc. and any other type of PGMS you may have.
      RPG /Free is considered RPGLE


      Best of Luck
      GLS
      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

      Comment


      • #4
        Re: How to identify a program written in what type of RPG?

        Reading your question and assuming your looking at source code

        Member type RPG or RPT and 6 character field sizes then its probably RPG3 (RPG2 if its using logic cycle and Level indicators, etc - or even Matching Records *gasp* but i digress

        Member type RPGLE then its RPG400, RPGLE or RPG4 (both free form and column based)

        SQLRPG is the RPG3 (OPM) style

        SQLRPGLE is RPG4 (ILE)

        ---

        6 character fields is RPG3 or earlier
        10 character fields is RPG400 or later
        'D' specs if RPGLE or later
        Procedures, %BIF's and other fancy-schmancy-glitter means its RPG4 or newer...

        if that makes any sense....

        I rarely do....

        PS - a younger Cousin of mine is thinking of retraining and wants to focus on RPG as one of his languages (huzzah!) so I wrote a kind of very rough overview of the language roots. I know its not strictly accurate so if anyone reads it and starts arguing about dates, or names, then I will simply poke them in the eye with this rubber tipped pencil I have stuck behind my ear.. but you might find it useful http://www.projex.com/blog/history-i...mming-language
        predictably positive, permanently punctilious, purposely proactive, potentially priceless, primarily professional : projex

        Comment


        • #5
          Re: How to identify a program written in what type of RPG?

          Originally posted by Finkpad View Post
          PS - a younger Cousin of mine is thinking of retraining and wants to focus on RPG as one of his languages (huzzah!) so I wrote a kind of very rough overview of the language roots. I know its not strictly accurate so if anyone reads it and starts arguing about dates, or names, then I will simply poke them in the eye with this rubber tipped pencil I have stuck behind my ear.. but you might find it useful http://www.projex.com/blog/history-i...mming-language
          Where in Hades did you find that really old B model As400 picture? It shows a model B40, which was never released. (They replaced it with the B45 before the annoucement) The software company I worked for had an actual B40 since we got one a few months before the official AS/400 announcement. I dont think I had ever seen one referred to as a B40 in anything IBM released.
          Michael Catalani
          IS Director, eCommerce & Web Development
          Acceptance Insurance Corporation
          www.AcceptanceInsurance.com
          www.ProvatoSys.com

          Comment


          • #6
            Re: How to identify a program written in what type of RPG?

            I found it in my sock drawer...
            predictably positive, permanently punctilious, purposely proactive, potentially priceless, primarily professional : projex

            Comment

            Working...
            X