Uso de PERFORM en Cobol

IDENTIFICATION DIVISION. PROGRAM-ID. USOPERFORM. AUTHOR. HIRONAKAMURA. *> Esto es un ejemplo usando rutinas o párrafos. PROCEDURE DIVISION. Inicio. DISPLAY "Este es el principio del programa" PERFORM Rutina2 DISPLAY "Ahora voy a terminar el programa" STOP RUN. Rutina1. DISPLAY "Estoy en la rutina1" PERFORM Rutina3. Rutina2. DISPLAY "Ahora estoy en la rutina2" PERFORM Rutina1. Rutina3. DISPLAY "Ahora estoy en la rutina3".
Se muestra un ejemplo del uso de PERFORM

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.