ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

K - Eye Sew we Todd did

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

  • K - Eye Sew we Todd did

    Just how do you use Extrct in free?

    Thanks
    Jamie
    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

  • #2
    Re: K - Eye Sew we Todd did

    Okay forget I asked that --- --


    %SUBDT (Extract a Portion of a Date, Time, or Timestamp)

    %SUBDT(value:*MSECONDS|*SECONDS|*MINUTES|*HOURS|*D AYS|*MONTHS|*YEARS)
    %SUBDT(value:*MS|*S|*MN|*H|*D|*M|*Y)

    %SUBDT extracts a portion of the information in a date, time, or timestamp value.
    It returns an unsigned numeric value.

    The first parameter is the date, time, or timestamp value.

    The second parameter is the portion that you want to extract. The following
    values are valid:

    * For a date: *DAYS, *MONTHS, and *YEARS
    * For a time: *SECONDS, *MINUTES, and *HOURS
    * For a timestamp: *MSECONDS, *SECONDS, *MINUTES, *HOURS, *DAYS,
    *MONTHS, and *YEARS

    For this function, *DAYS always refers to the day of the month not the day
    of the year (even if you are using a Julian date format). For example, the day
    portion of February 10 is 10 not 41.

    This function always returns a 4-digit year, even if the date format has a
    2-digit year.



    jamie
    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: K - Eye Sew we Todd did

      All that and you couldn't give example code with it? Getting stingy in your old age .. aren't ya!

      Comment


      • #4
        Re: K - Eye Sew we Todd did

        very useful info jamie ..nice

        Comment

        Working...
        X