ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Record/File Renaming in RPG III

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

  • Record/File Renaming in RPG III

    Retro question

    How do I rename a file format (when same format is used twice in a program) and fields in RPG III program. (Like RENAME and PREFIX in RPGIV). I haven't had to do this in a while and don't have an example handy.

  • #2
    Re: Record/File Renaming in RPG III

    like this

    PHP Code:
    ~
     
    FMT **  ...+... ...+... ...+... ...+... ...+... ...+... ...+... 7
    0048.00      FCKEMPEFFIF  E           K        DISK                           
    0049.00      F            EMPLMSFM                          KRENAMEEMPEFFFM 
    I think this is a field rename

    PHP Code:
    ~
     ...+... 
    ...+... ...+... ...+... ...+... ...+... ...+... 7
         IATRHISFM                                                        
         I              AHDATE                          TRHDAT            
         I              AHAMNT                          TRHAMT 
    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: Record/File Renaming in RPG III

      yep. that does the trick!

      Comment

      Working...
      X