Documente Academic
Documente Profesional
Documente Cultură
Nivel
identificador
[ JUSTIFIED RIGHT ]
[ BLANK WHEN ZERO ]
[ OCCURS integer-1 TIMES ]
[ BELL | BEEP ]
[ AUTO | AUTO-SKIP | AUTOTERMINATE ]
[ UNDERLINE ]
[ OVERLINE ]
[ SECURE ]
[ REQUIRED ]
[ FULL ]
[ PROMPT ]
[ REVERSE-VIDEO ]
[ BLANK LINE | SCREEN ]
[ ERASE EOL | EOS ]
SIGN IS
TRAILING
LEADING
[ SEPARATE CHARACTER ]
LINE NUMBER IS [ PLUS ]
integer-2
identifier-2
COLUMN NUMBER IS [ PLUS ]
integer-3
identifier-3
FOREGROUND-COLOR IS
integer-4
identifier-4
[HIGHLIGHT]
[LOWLIGHT]
BACKGROUND-COLOR IS
integer-5
identifier-5
[ BLINK ]
PICTURE IS picture-string
USING identifier-6
FROM
identifier-7
literal-2
TO identifier-8
VALUE IS literal-1
Valor. Color.
0 negro
1 azul
2 gris
3 cían
4 rojo
5 naranja
6 amarillo
7 blanco
identification division.
program-id. Ventanas.
author. Ismael.
environment division.
data division.
working-storage section.
77 opcion pic x value spaces.
77 pausar pic x value spaces.
screen section.
* Pantalla inicial
01 principal.
03 line 05 col 10 VALUE "Prueba de Screen Section".
03 line 07 col 10 VALUE "Dame a una tecla y te la
muestro: ".
03 line 17 col 10 VALUE "> ".
03 pic x using opcion.
* Borra la pantalla.
01 Limpiar-pantalla.
03 blank screen.
procedure division.
Inicio.
* Mostramos la pantalla inicial y aceptamos la variable.
display principal
accept principal
* Limpiamos la pantalla
display limpiar-pantalla
display "Has pulsado la tecla "opcion
display "Pulsa cualquier letra para salir"
accept pausar with auto
stop run.