Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo !

Ich würde gerne wissen, wie ich aus Cobol das Systemdatum, die Systemuhrzeit und die UserID auslesen kann.

Kann mir jemand helfen??

Hallo,

hoffe das war COBOL. :-)

CURRENT-DATE

returns current date and time in YYYYMMDDhhmmsshh... format.

DATE-OF-INTEGER

returns date in YYYYMMDD format.

DAY-OF-INTEGER

returns date in YYYYDDD format.

WHEN-COMPILED

returns date and time when the program was compiled in YYYYMMDDhhmmsshh... format

Grüße

Schaf

Also,

ich mache das immer so:

ACCEPT SYSTEMDATUM FROM DATE.

ähnlich wie die Zeit

ACCEPT SYSTEMZEIT FROM TIME.

Hoffe das hat dir weitergeholfen

Gruß

PS

die Felder haben das Format:

02 sysdatum.

05 sys-jj pic 9(02).

05 sys-mm pic 9(02).

05 sys-tt pic 9(02).

02 systime.

05 sys-hh pic 9(02).

05 sys-mi pic 9(02).

05 sys-ss pic 9(02).

sonst schau dir einfach mal den Feldinhalt im Animater an!

Gandalf

Was meinst du mit UserID?

Wir benutzen immer einen "teil" der Netzwerkadresse als eindeutige ID, z.B. für TMP Dateien pro User auf dem Server, meinst du so etwas?

Gruß

Gandalf

ich meine damit den Benutzernamen mit dem man sich am Großrechner anmeldet.

Das ist echt noch ne wichtige Frage wie ich eben diese ID aus Cobol herausbekomme!

Sorry,

wir benutzen hier kein Cobol für Grossrechner,

"nur" das MicroFocus Cobol Ansi 85...

Gruß

Gandalf

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.