Friday, 12 December 2008

ACCEPT:

The ACCEPT statement is used to read low-volume data from the operator’s console, some other hardware device or from the operating system.
General form:


Example:
1. ACCEPT A.
The DATE option returns the six-digit current date in the form YYMMDD where YY, MM and DD stand for year, month and day respectively.
The DAY option returns a five-digit current date in the form YYDDD YY stands for the year and DDD stands for the day of the year (001 to 365).
The TIME option returns an eight-digit time in the form HHMMSSTT where HH, MM, SS, TT represent hour, minute, second and hundredths of a second respectively.
2. ACCEPT THIS-DAY FROM DATE.
Will transfer the value of the current date to THIS-DAY.

DISPLAY:
It is used to display low-volume results on the operator’s console or some other hardware device.
General form:


Example:
DISPLAY “RESULT IS “ , A

No comments:

Post a Comment