Overview
Prerequisites
Delegates will learn how to
- describe the structure and purpose of COBOL programs
- write, compile and test structured COBOL batch programs
- code both IDENTIFICATION and ENVIRONMENT DIVISIONS
- code data descriptions within the DATA DIVISIONS
- access sequential files from COBOL programs
- perform arithmetic operations in COBOL programs.
Outline
Programming concepts; low and high level programming; development; compiling; COBOL history; Program design; Preparing a program.
COBOL Programming BasicsSyntax descriptions; COBOL divisions; COBOL program structure; Words; Word examples; Literal examples; Figurative constants; User-defined words; Standard COBOL program format.
IDENTIFICATION DIVISIONIDENTIFICATION DIVISION; IDENTIFICATION DIVISION sentences; Use of comments.
ENVIRONMENT DIVISIONENVIRONMENT DIVISION; CONFIGURATION SECTION; INPUT-OUTPUT SECTION; Relationship with JCL.
DATA DIVISIONDATA DIVISION; Data record structure and levels; Data records - example; FILE SECTION; Coding rules & recommendations; WORKING-STORAGE SECTION; Describing data; PICTURE clause; Alphanumeric & alphabetic data; Numeric data; Setting initial values.
PROCEDURE DIVISION - File HandlingPROCEDURE DIVISION; I/O statements; OPEN /CLOSE statements; OPEN /CLOSE examples; READ / WRITE statements; READ / WRITE examples; Writing print headings and lines; MOVE statement; MOVE examples; Group MOVE; DISPLAY; Terminating a program; RETURN-CODE.
PROCEDURE DIVISION - Program LogicParagraphs; GO TO statement; Structured programming; In-line PERFORM; Paragraphs & sections; Using sections; PERFORMing a section; PERFORM example; PERFORM . . THROUGH; PERFORM UNTIL; PERFORM VARYING...UNTIL.
ACCEPT and Date Intrinsic FunctionsACCEPT; Using ACCEPT for input data; ACCEPT date data format; Intrinsic functions; CURRENT-DATE function; Other date functions - YYYYMMDD date format; Other date functions - YYYYDDD date format.
Arithmetic OperationsArithmetic operations; Other common options; The ADD statement; The SUBTRACT statement; CORRESPONDING statement; MULTIPLY statement; DIVIDE statement; COMPUTE statement; Size errors; ON SIZE ERROR option; Arithmetic functions; Arithmetic functions examples.
Conditional ProcessingConditional processing; IF statement format; Relational conditions; Class conditions; Sign condition; Multiple conditions; Nested IF statements; 88 level identifiers; Setting 88 levels; The EVALUATE statement; EVALUATE and multiple fields; EVALUATE using TRUE & FALSE; Using ANY.
Program CompilationThe COBOL compiler; Compiler-directive statements - COPY; Compiler listing - COPY; Compiler options.
COBOL Errors & AbendsError messages; Abend codes; Abend information; CEEDUMP.
Frequently asked questions
How can I create an account on myQA.com?
There are a number of ways to create an account. If you are a self-funder, simply select the "Create account" option on the login page.
If you have been booked onto a course by your company, you will receive a confirmation email. From this email, select "Sign into myQA" and you will be taken to the "Create account" page. Complete all of the details and select "Create account".
If you have the booking number you can also go here and select the "I have a booking number" option. Enter the booking reference and your surname. If the details match, you will be taken to the "Create account" page from where you can enter your details and confirm your account.
Find more answers to frequently asked questions in our FAQs: Bookings & Cancellations page.
How do QA’s virtual classroom courses work?
Our virtual classroom courses allow you to access award-winning classroom training, without leaving your home or office. Our learning professionals are specially trained on how to interact with remote attendees and our remote labs ensure all participants can take part in hands-on exercises wherever they are.
We use the WebEx video conferencing platform by Cisco. Before you book, check that you meet the WebEx system requirements and run a test meeting (more details in the link below) to ensure the software is compatible with your firewall settings. If it doesn’t work, try adjusting your settings or contact your IT department about permitting the website.
How do QA’s online courses work?
QA online courses, also commonly known as distance learning courses or elearning courses, take the form of interactive software designed for individual learning, but you will also have access to full support from our subject-matter experts for the duration of your course. When you book a QA online learning course you will receive immediate access to it through our e-learning platform and you can start to learn straight away, from any compatible device. Access to the online learning platform is valid for one year from the booking date.
All courses are built around case studies and presented in an engaging format, which includes storytelling elements, video, audio and humour. Every case study is supported by sample documents and a collection of Knowledge Nuggets that provide more in-depth detail on the wider processes.
When will I receive my joining instructions?
Joining instructions for QA courses are sent two weeks prior to the course start date, or immediately if the booking is confirmed within this timeframe. For course bookings made via QA but delivered by a third-party supplier, joining instructions are sent to attendees prior to the training course, but timescales vary depending on each supplier’s terms. Read more FAQs.
When will I receive my certificate?
Certificates of Achievement are issued at the end the course, either as a hard copy or via email. Read more here.