ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

UDATE question

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

  • UDATE question

    Hi,

    Hope you can shed some light on this. I have an overnight job that stamps the start and end date and times to a file using an RPG program that's called from a CLP.

    Occasionally, this job crosses midnight and when it does we have problems. When looking at the file, the times are stamped correctly but the dates remain the same .. i.e.

    start date and time 2011-11-07 22:10:42
    end start and time 2011-11-07 01:02:32 - Should be 2011-11-08???

    The RPG program is only called when the controlling CLP started and again when the CLP is ended. On both occasions LR is set-on.

    So my question is, does UDATE not change during the current job? It appears the UDATE is Job Start date

    Thanks for looking
    www.midlifegamers.co.uk

  • #2
    Re: UDATE question

    UDATE and *DATE are always the job date.
    System date must be determined with either OPCODE TIME or built-in-function %DATE()

    Birgitta
    Last edited by B.Hauser; November 8, 2011, 04:09 AM.

    Comment


    • #3
      Re: UDATE question

      Thank you for the confirmation.

      This I never knew rep updated
      Last edited by Huddy; November 8, 2011, 05:09 AM.
      www.midlifegamers.co.uk

      Comment


      • #4
        Re: UDATE question

        It's one of those things that everyone ought to know, but more often than not, especially these days, is found out the hard way
        Poddys Rambles On

        Comment


        • #5
          Re: UDATE question

          20 odd years of should've known.. I'm ashamed
          www.midlifegamers.co.uk

          Comment


          • #6
            Re: UDATE question

            I began work on S/34 in 1980 and have worked solidly on S/36, S/38 and AS400's ever since.

            However, in the last few years I have been working more on JD Edwards, where a number of tasks are done a different way, and more recently using other tools like Websmart.

            I find it very hard to remember some of the things that I was really familiar with years ago, because I haven't used them, and in the meantime things have also changed.

            Even now I am the only one on our site programming in RPGLE and RPG/Free, the others still almost always use RPG4, which is IMHO a lot slower to code with, especially when it comes to dealing with strings.
            Poddys Rambles On

            Comment


            • #7
              Re: UDATE question

              Originally posted by Poddys View Post
              ...I find it very hard to remember some of the things that I was really familiar with years ago, because I haven't used them, and in the meantime things have also changed. ...
              my excuse is that it is because I'm getting old
              Regards

              Kit
              http://www.ecofitonline.com
              DeskfIT - ChangefIT - XrefIT
              ___________________________________
              There are only 3 kinds of people -
              Those that can count and those that can't.

              Comment


              • #8
                Re: UDATE question

                Originally posted by kitvb1 View Post
                my excuse is that it is because I'm getting old
                Well yeah, mine too
                Poddys Rambles On

                Comment

                Working...
                X