Casi me saco un ojo buscando un error.
38 REPORT01 PASO04 PGMUNIVE AB S0C7
El error fue al editar el archivo de herco1.alumnos.becas me comi un cero en el valor de la beca.
lo agregue y funciono.
Introducción al proyecto
Tu primer proyecto en COBOL
Definición de la estructura del reporte
Creación de tu primer proyecto
Definición de los datos del proyecto
Detalles de las variables y orden del proyecto
Creación de los procedimientos del reporte
Finalizando los procedimientos del reporte
Creación del JCL que ejecutará tu programa
Ejecución del proyecto y siguientes pasos
Ejecución de programa
Detección y debug de errores
¿Qué más sigue en COBOL?
You don't have access to this class
Keep learning! Join and start boosting your career
The JCL, or Job Control Language, is essential for programming in mainframe environments. In this context, you will learn how to run a program with the help of a JCL that you have previously generated. To do this, you start the command window and type top
to move to the beginning of the JCL. It is important to know the essential parts of a JOB
statement, which include crucial parameters such as the memory to be used and the maximum time of the JOB
.
Throughout the JCL, you will see several important steps that we break down below:
JOB
statement: always starts with this statement, which defines the usable memory and other parameters.//JobJobName JOB ...,// PGM=program_name
IFBR14
Utility: Configuration to manage files, allowing to delete and generate new ones:IFBR14, ..., DELETE FILE
IEBGENER
utility: Conditionally backs up files according to the result of previous steps://Use of conditional: IF STEP02 LE 9 THEN
This is done by accessing the generated files, usually in edit mode. Here you enter data such as the student's name, GPA, and an indicator that determines whether he/she receives a scholarship:
Example entry:
Jose Ganimedes Montes 85 1 0236800Jimena Hernandez Gonzalez 72 0 0000000.
After you submit(su
) the JCL, you will be able to check its execution in the spool. In case of error during execution, it is useful to check the job display console(st repo
) to identify problems, such as incorrect spaces in statements.
Common errors:
The output and correct functioning of your JCL is confirmed in the generated report, where the information is verified:
Use this information to check if your JCL is processing the files correctly. Running the JCL with an empty file is a robust practice to check that it will not throw unexpected errors when encountering non-existent data, which must be properly managed.
It is common that you need to adjust file names or conditions between runs. Be sure to modify the names and conditions correctly in all steps:
With these techniques and examples, you will continue to expand your skills in using JCL on mainframes, opening up a universe of programming possibilities. I encourage you to continue exploring the world of mainframes, where every session is an opportunity to strengthen your knowledge and skills. Go for more!
Contributions 4
Questions 5
Casi me saco un ojo buscando un error.
38 REPORT01 PASO04 PGMUNIVE AB S0C7
El error fue al editar el archivo de herco1.alumnos.becas me comi un cero en el valor de la beca.
lo agregue y funciono.
Want to see more contributions, questions and answers from the community?