Multiple choice technology mainframe

How to retrive Current DATE in YYMMDD format

  1. ACCEPT WS-DATE FROM DATE

  2. ACCEPT WS-DATE FROM DATE YYYYMMDD

  3. ACCEPT WS-DATE FROM DATE YYMMDD

  4. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In COBOL, the ACCEPT statement with FROM DATE retrieves the current date from the system. The default format returned is YYMMDD (6 digits). Options B and C are incorrect because DATE YYYYMMDD and DATE YYMMDD are not valid special registers - you simply use DATE. Option A is the correct syntax.