Cobol - Extract Current Time

Sort:
You are not authorized to post a reply.
Author
Messages
klkemp100
Basic Member
Posts: 8
Basic Member

    How do you extract just the Current System Time in Lawson Cobol?

    I'm wanting to extract it and format it in HH24MISS format.

    Thanks!

    Ragu Raghavan
    Veteran Member
    Posts: 470
    Veteran Member

      I beleive the variable HHMMSS is populated when the Cobol program kicks off. If this is a long running program,

      PERFORM 515-UPDATE-DATE-TIME.

      This will update the variable HHMMSS to current time.

      MOVE HHMMSS TO <desired variable>

      You are not authorized to post a reply.