Conceptos Básicos del lenguaje de programación COBOL

Slides:



Advertisements
Presentaciones similares
Practica
Advertisements

You need to improve the way you write and think in Spanish - Time This is an interactive presentation. You need your work sheet, your pencil, and your.
Sñta Ferreira El 3 de febrero LA HORA EN ESPAÑOL.
Measurement-A Common Language Médidas – Un lenguaje Común
SQR Chapter 11 due Friday Today we will learn how the class works (es lo que vamos aprender hoy) Topic Sentence Main Idea: with transitional phrase: Thus,
Telling Time Grammar Essential #8.
PLEASE READ (hidden slide) This template uses Microsofts corporate font, Segoe Segoe is not a standard font included with Windows, so if you have not.
In your Viva on the contenido page, write: El calendario y los númerospágina dos Remember to use different colors when writing vocabulary and on your.
You Need to Improve the Way You Write and Think in Spanish! Months & Dates This is an interactive presentation. You need your worksheet, your pencil, and.
REPASO: Plural Definite Articles Masculine los Ex: los cuadernos Feminine las Ex: las camas.
¿Qué día es hoy? Vocabulary Notes.
¡Los números! cero 11 once 12 doce 13 trece.
¡Los números! cero 11 once 12 doce 13 trece.
¡Hola! Detrás de la puerta, el dinero, o las cajas o las cajas. Paul Widergren 2007.
2003 HYPACK MAX Training Seminar1 Sample Case la Entrada manual de Datos de la Línea de la costa El Metodo de MANUAL –DIG Objectos –Boya (Roja)
2003 HYPACK MAX Training Seminar1 Sample Belgium Test Inputting Tag Line information into HYPACK® MAX In the old days, a Tag Line was anchored to.
¿Qué hora es? What time is it? (What hour is it?).
Days, months, seasons, and more!. Notice that the days of the week are not capitalized. lunes... Monday martes … Tuesday miércoles … Wednesday jueves.
Days, months, seasons, and more!. lunes... Monday martes … Tuesday miércoles...Wednesday jueves … Thursday viernes … Friday sábado … Saturday domingo.
Español 2 Repaso 4. Son las diez y ocho. Son las tres y dos.
Cómo escoger libros Justo para Mí 1. Mira la portada. 2. Lee el título y el autor. 3. Lee la contra- portada. 4. Hojea el libro. 5. Lee la primera página.
Los Números en Español Spanish4Teachers.org.
Introducción a JAVA COMP 250. Estructura de Selección selection statements selection statements – Escoger cuál acción ejecutar dependiendo de dos ó más.
Query Direcciones SELECT Nombre, Apellido, Ciudad FROM Direcciones;
Spatial Database Bases de Datos Espaciales MOTORES COMERCIALES Oracle Spatial.
Week of Oct , S1P1 – Sigue las direcciones Necesitan un lapiz o un boli y un cuaderno – You need a pencil or pen and a notebook Saquen el.
ARQUITECTURA DE COMPUTADORES - PIPELINING
Español 1 el 30 de agosto. Bell Dinger – el 30 de agosto
Español 1 ¿Qué hora es?. Bell Dinger :Escriban los números en español…
Review of SER El 4/5 de octubre de NOTES You will copy the following notes on page 39 of your INB. The title for this section is: Review of SER;
Entrada: Los verbos en la historia (Entrance: Verbs in the story) Copy the date and title, and log the entry in your table of contents. Take a Realidades.
Uso de los nuevos fármacos en el adulto Jose R Arribas Hospital La Paz.
Apuntes preparados por Jesus Carrera con material de Meier y Poetter
Entrada y salida Fundamentos de programación/Programación I
Procedimientos Almacenados y Disparadores
Español 1 18 y 19 de septiembre de Escribe los meses que combinan con las estaciónes. (Write the months that match with the seasons.) El otoño-
PROGRAMACIÓN.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Para Empezar Test 2 The things you need to know for the test over Para Empezar Part 2.
Gestión de la Informacion– Siguiente paso? Ken Reid Head of International Technical Relations EUROCONTROL.
¿Qué hora es? Telling Time en Español Sra Spampinato.
La Hora.
Me llamo_________________ Clase 9N La fecha es el 27 de septiembre del 2011 Propósito # 6: ¿Como escribimos las fechas? Actividad Inicial: Escribe los.
SQL Base de Datos LENGUAJES DE CONSULTA AR y CR no pueden ser tomados como base para implementar porque: Poseen sintaxis compleja No permiten.
PL/SQL Francisco Moreno Universidad Nacional. Funciones Si un procedimiento tiene solo un parámetro de salida, se puede remplazar por una función y esta.
Seminario de Lenguajes A – Opción Ada
Ahora (Do Now) Write out each equation in words, and solve = ?
¿Qué hora es? (What time is it?)
SISTEMA DE INFORMACIÓN RETO DE NEGOCIOS SOLUCIONES DE NEGOCIOS ADMINISTRACIÓN TECNOLOGÍA DE LA INFORMACIÓN ORGANIZACIÓN SOSTENER LA VENTAJA COMPETITIVA.
Preguntas de conversación Capítulo 2 Exprésate I.
Articles, nouns and contractions oh my!. The POWER of the article THE 1. There are four ways to express THE in Spanish 2. The four ways are: El La Los.
BUSES DE DATOS CON MULTIPLEXORES Y DECODIFICADORES
© 2013 Board of Regents of the University of Wisconsin System, on behalf of WIDA.
Pg. 28.  To answer this question in Spanish you say: ◦ Es la una. 1:00 ◦ Son las (+ número)  i.e. Son las dos. 2:00.
 1. Why should a person learn Spanish? Give at least 3 reasons in your explanation.  2. What Spanish experiences have you had? (None is not an option.
Triathlon Swimming: Stroke Rate Analysis for Trainning Prescription Antonio Rivas.
Derechos de Autor©2008.SUAGM.Derechos Reservados Sistema Universitario Ana G. Méndez División de Capacitación Basic Quality Tools CQIA Primer Section VII.
Aggregate Planning Determine the quantity and timing of production for the immediate future Objective is to minimize cost over the planning period by adjusting.
CURSORES Preparó: Ismael Castañeda Fuentes Fuentes: Manuales Sybase
FORMATO DEL MERGE Prof. Nelliud D. Torres. PROPÓSITO Se utiliza como una alternativa para organizar un archivo con datos que sea extremadamente grande.
3 Ways to Record PowerPoint From within PowerPoint From within Camtasia Studio.
2 Ways to Record PowerPoint From within PowerPoint From within Camtasia Studio.
3 Ways to Record PowerPoint From within PowerPoint From within Camtasia Studio.
Objective: Vocab/Ideas: Vámonos: I can prepare for the quarterly
2 Ways to Record PowerPoint From within PowerPoint From within Camtasia Studio.
Día número 26—español 1 ACT 2: Times after the 30 min mark
Question Formation Spanish I Page 52.
Tapas Listen to the dialogue and answer the questions. Write down all the information that you hear first, then answer the questions. 1. What.
Día número 29—español 1 Make corrections on the Table of Contents
2 Ways to Record PowerPoint From within PowerPoint From within Camtasia Studio.
Transcripción de la presentación:

Conceptos Básicos del lenguaje de programación COBOL Prof. Carlos Rodríguez Sánchez

COBOL COmmon Business Oriented Language Es un lenguaje muy utilizado dentro del llamado “File Processing System” Permite la utilización de varios archivos de datos que interactúan con el programa. Master File Transaction File History File Table File Sort File

COBOL IDENTIFICATION DIVISION. PROGRAM-ID. C6. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT CUST-FILE ASSIGN TO "E:CUST.DAT" ORGANIZATION IS LINE SEQUENTIAL. SELECT PRINT-FILE ASSIGN TO "PRN". Un programa codificado en el lenguaje COBOL consiste de cuatro divisiones principales. IDENTIFICATION DIVISION ENVIRONMENT DIVISION DATA DIVISION PROCEDURE DIVISION

COBOL DATA DIVISION. FILE SECTION. FD CUST-FILE LABEL RECORDS ARE STANDARD. 01 CUST-REC. 03 INITIAL1 PIC X. 03 INITIAL2 PIC X. 03 LAST-NAME PIC X(10). 03 MONTH-TRANS PIC XX. 03 YEAR-TRANS PIC X(2). 03 TRANS-AMOUNT PIC 9(6). FD PRINT-FILE LABEL RECORDS ARE OMMITED. 01 PRINT-LINE PIC X(80). WORKING-STORAGE SECTION. 01 MORE-RECORDS PIC X VALUE "Y". 01 HEADING-1. 03 PIC X(5) VALUE SPACES. 03 PIC X(4) VALUE "NAME". 03 PIC X(6) VALUE SPACES. 03 PIC X(19) VALUE "DATE OF TRANSACTION". 03 PIC X(24) VALUE " AMOUNT OF TRANSACTION". 03 PIC X(23) VALUE SPACES. 01 DETAIL-LINE. 03 INITIAL1-OUT PIC X. 03 PIC X VALUE ".". 03 INITIAL2-OUT PIC X. 03 PIC X VALUE ".". 03 LAST-NAME-OUT PIC X(10). 03 PIC X(6) VALUE SPACES. 03 MONTH-OUT PIC X(2). 03 PIC X VALUE "/". 03 YEAR-OUT PIC X(2). 03 PIC X(13) VALUE SPACES. 03 AMOUNT-OUT PIC $ZZZ,ZZ9. 03 PIC X(34) VALUE SPACES COBOL

COBOL PROCEDURE DIVISION. RUTINA-PRINCIPAL. OPEN INPUT CUST-FILE OUTPUT PRINT-FILE WRITE PRINT-LINE FROM HEADING-LINE AFTER ADVANCING PAGE PERFORM MOVE-AND-WRITE UNTIL MORE-RECORDS = "N" CLOSE CUST-FILE PRINT-FILE STOP RUN. MOVE-AND-WRITE. READ CUST-FILE AT END MOVE "N" TO MORE-RECORDS MOVE INITIAL1 TO INITIAL1-OUT MOVE INITIAL2 TO INITIAL2-OUT MOVE LAST-NAME TO LAST-NAME-OUT MOVE MONTH-TRANS TO MONTH-OUT MOVE YEAR-TRANS TO YEAR-OUT MOVE TRANS-AMOUNT TO AMOUNT-OUT WRITE PRINT-LINE FROM DETAIL-LINE AFTER ADVANCING 1 LINE.

Manejo de Arreglos y Tablas WORKING-STORAGE SECTION. 01 TOTALES-DIARIOS. 03 TOTAL-DIA OCCURS 5 TIMES PIC 9(4)v99 VALUE ZEROS. 01 NOMBRES VALUE "MONTUEWEDTHUFRI". 03 DIAS OCCURS 5 TIMES PIC X(3).

Manejo de Arreglos y Tablas IDENTIFICATION DIVISION. PROGRAM-ID. EJEMPLO CAP 12. AUTHOR. SCI 317. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT VENTAS ASSIGN TO "C:DATAIN.DAT" ORGANIZATION IS LINE SEQUENTIAL. SELECT REPORTE ASSIGN TO "PRN".

Manejo de Arreglos y Tablas DATA DIVISION. FILE SECTION. FD VENTAS LABEL RECORDS ARE STANDARD. 01 RECORDS-VENTAS. 03 DAY-NO PIC 9. 03 SLSNO PIC X(3). 03 AMT-IN PIC 9(3)v99. FD REPORTE LABEL RECORDS ARE OMITTED. 01 LINEA-DE-IMPRESION PIC X(80). WORKING-STORAGE SECTION. 01 TOTALES-DIARIOS. 03 TOTAL-DIA OCCURS 5 TIMES PIC 9(4)v99 VALUE ZEROS. 01 NOMBRES VALUE "MONTUEWEDTHUFRI". 03 DIAS OCCURS 5 TIMES PIC X(3). 01 LINEA-DE-SALIDA. 03 PIC X(15) VALUE SPACES. 03 DIA-OUT PIC XXX. 03 PIC X(10) VALUE SPACES. 03 TOTAL-VENTAS PIC $9,999.99. 03 PIC X(43) VALUE SPACES. 01 MORE-RECORDS PIC X(3) VALUE "YES".

Manejo de Arreglos y Tablas PROCEDURE DIVISION. 100-RUTINA-PRINCIPAL. PERFORM 500-RUTINA-INICIAL PERFORM UNTIL MORE-RECORDS = "NO" READ VENTAS AT END MOVE "NO" TO MORE-RECORDS NOT AT END PERFORM 200-RUTINA-COMPUTOS END-READ END-PERFORM PERFORM 600-RUTINA-FINAL STOP RUN. 200-RUTINA-COMPUTOS. IF DAY-NO < 1 OR DAY-NO > 5 PERFORM 800-RUTINA-ERROR ELSE ADD AMT-IN TO TOTAL-DIA (DAY-NO). 500-RUTINA-INICIAL. OPEN INPUT VENTAS OUTPUT REPORTE. 600-RUTINA-FINAL. PERFORM 700-RUTINA-IMPRIMIR VARYING X FROM 1 BY 1 UNTIL X > 5 CLOSE VENTAS REPORTE. 700-RUTINA-IMPRIMIR. MOVE DIAS (X) TO DIA-OUT MOVE TOTAL-DIA (X) TO TOTAL-VENTAS WRITE LINEA-DE-IMPRESION FROM LINEA-DE-SALIDA AFTER ADVANCING 2 LINES. 800-RUTINA-ERROR. DISPLAY "NUMERO DEL DIA INVALIDO", DAY-NO CLOSE VENTAS REPORTE

Proceso de Compilación Source program .CBL Object program .COB