Professional Documents
Culture Documents
Chapter 03 - Simple Output Statements
Chapter 03 - Simple Output Statements
Objectives
WRITE ‘********************’.
SKIP 2.
WRITE: ‘The date today is:’, SY-DATUM,
‘The current time is:’, SY-UZEIT.
SKIP 2. Notice that there is an automatic space
WRITE ‘********************’. between the fields written to the list.
<program title> 1
-----------------------------------------------------------------------------------
********************
The date today is: 12/30/1996 The current time is: 12:32:06
********************
/p(I)
/ = Line Feed <value>
p = Column Position
I = Output Length
Program Field or <options>
Text Literal
Format Options
“NEW-PAGE” Statement
<program title> 1
--------------------------------------------------------------------------------------
***** City of Philadelphia *****
Ticket Date 01/01/1997
Ticket Time 18:01:00
INCLUDE <ICON>.
INCLUDE <SYMBOL>.
Or
TYPE-POOLS: icon.
TYPE-POOLS: sym.
WRITE: /10 ICON_DATE AS ICON, SY-DATUM,
SYM_LEFT_HAND AS SYMBOL.
Execute programs
“SHOWICON” and
“SHOWSYMB” to display
the system’s icons and
symbols.
Demonstration
Practice
Demonstration
Practice
Summary
Questions
What are the various options associated with the ‘WRITE’ statement ?
What does the ‘NEW-PAGE’ statement do ?