ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

%rem

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

  • %rem

    Looking to replace MVR with %REM.
    old MVR code
    CSRP DIV 256 LIN
    MVR POS

    Thanks,

  • #2
    Hello VLP here is an example

    old

    Code:
         C*
         C     IsoDate       Subdur    D'1899-12-30' DayofWeek:*D
         C                   Div       7             DayOfWeek
         C                   Mvr                     DayOfWeek

    new

    Code:
    WorkField = %Diff(ISODate: D'1899-12-31':*DAYS);
            WorkField = %REM(WorkField:7);
    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

    Working...
    X