Cobol - Extract Current Time

 1 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
klkemp100
Basic Member
Posts: 12
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: 476
    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