[NEWSboard IBMi Forum]
  1. #1
    Registriert seit
    Jun 2001
    Beiträge
    119

    Question ILE Cobol: accept aTimestamp from timestamp?

    Hallo!

    Wie kann man denn in ILE Cobol den aktuellen Timestamp bekommen?

    accept aTimestamp from timestamp
    geht leider nicht. In Anlehnung an
    accept Datum from Date.

    Hat jemand eine Idee?

    Dankeschön
    Reiner Beimdiek

  2. #2
    Registriert seit
    Jan 2001
    Beiträge
    340

    Post

    aus dem Handbuch :

    ACCEPT identifier FROM {DATE | DAY | TIME}

    DATE
    Has the implicit PICTURE 9(6).

    The sequence of data elements (from left to right) is:

    2 digits for year of century
    2 digits for month of year
    2 digits for day of month
    DAY
    Has the implicit PICTURE 9(5).

    The sequence of data elements (from left to right) is:

    2 digits for year of century
    3 digits for day of year
    TIME
    Has the implicit PICTURE 9(8).

    The sequence of data elements (from left to right) is:

    2 digits for hour of day
    2 digits for minute of hour
    2 digits for second of minute
    2 digits for hundredths of second

    mfg Rolf

Similar Threads

  1. ILE COBOL und SQLCLI ?
    By rebe in forum NEWSboard Programmierung
    Antworten: 1
    Letzter Beitrag: 08-02-06, 15:50
  2. Problem mit XML PARSE in ILE COBOL
    By MikRom in forum NEWSboard Programmierung
    Antworten: 1
    Letzter Beitrag: 15-08-05, 09:06
  3. per SQL aus ILE COBOL in DB2 schreiben?
    By rebe in forum NEWSboard Programmierung
    Antworten: 5
    Letzter Beitrag: 24-03-05, 14:36
  4. eigene Prozeduren in ILE Cobol?
    By rebe in forum NEWSboard Programmierung
    Antworten: 5
    Letzter Beitrag: 23-07-04, 08:41
  5. Problem bei ILE COBOL mit sql connect to
    By rebe in forum IBM i Hauptforum
    Antworten: 1
    Letzter Beitrag: 07-09-01, 13:55

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • You may not post attachments
  • You may not edit your posts
  •