ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Find the documents about RPGLE

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

  • Find the documents about RPGLE

    I have write original RPG (with RCDLEN(92)), but now I am practising to write RPGLE but I don't know where can refer documents of RPGLE programming.

    - How to compile RPGLE, is it the same RPG (I use CRTRPGPGM command but there are many errors)

    - How to declare print indicator for printer??(in my program, I can add indicator 90 to : FBT01P O E PRINTER )

    Thanks a lot.
    Attached Files

  • #2
    It would look something like this

    Code:
           *====================================                                 
         fBT01LF    IF   E           K DISK
         fBT01P     O    E             PRINTER OFLIND(*IN90)
          *
         c     *start        setll     BT01LF
         c                   read      BT01LF
         c                   dow       not%Eof(BT01LF)
          *
         c                   exsr      PRINT
          *
         c                   read      BT01LF
         c                   enddo
          *
         c                   eval      *Inlr = *on
          *====================================                                 
          * Print - Print the record
          *====================================                                 
         c     Print         BEGSR
          *
         c                   eval      PITEM = ITEMNO
         c                   eval      PSUPP = SUPP
         c                   eval      PUSER = USER
         c                   eval      PDES  = DES
         c                   eval      PUNIT = UOM
          *
          * OverFlow
          *
         c                   if        *in90
         c                   Write     PRT01
         c                   eval      *in90=*off
         c                   endif
          *
         c                   write     PRT02
          *
         c                   endsr
          *====================================                                 
          *  *Inzsr - Automatic one time run                                    
          *           subroutine.
          *====================================                                 
         c     *Inzsr        begsr
         c                   eval      *In90 = *on
         c                   endsr

    Comment


    • #3
      You can find all the RPG manuals at IBM's web site

      You need CVTBNDRPG to compile

      You can use CVTRPGSRC to convert RPG-3 to RPG-4

      You should install WSDc and/or CODE on your PC and use it instead of SEU/SDA/RLU to enter source. Has a nice verify option, prompts for next field needed, instantly gives you syntax errors. Also has one-button convert RPG3 to RPG4 and RPG4 to free-form. Oh yeah, color codes the source, AND includes all the RPG manuals. Its a big install, but well worth it. Comes free with the RPG compiler.

      Comment


      • #4
        how about this book

        The modern RPG Language IV Second edition by Robert Cozzi,Jr

        its a nice book worth the money check it at amazon or other
        "It's like a koala pooped a rainbow on my head and I can taste the colors."

        Comment

        Working...
        X