CST8283_Week 2_Environment and Data Divisions (Session 4).ppt

CST8283_Week 2_Environment and Data Divisions (Session 4).ppt

Info icon This preview shows pages 1–10. Sign up to view the full content.

Week 2 Environment and Data Divisions CST8283 BUSINESS PROGRAMMING
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Session 4 Objectives Participant should be able to: describe the purpose of the ENVIRONMENT and DATA DIVISIONS ; code the required elements for the ENVIRONMENT and DATA DIVISIONS including FILE SECTION WORKING-STORAGE SECTION Level numbers for data structures.
Image of page 2
ENVIRONMENT DIVISION ENVIRONMENT DIVISION establishes the working environment for the program. Two SECTIONS of interest CONFIGURATION SECTION INPUT-OUTPUT SECTION
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

CONFIGURATION SECTION Optional section. Serves as documentation. Identifies the source and object computers.
Image of page 4
INPUT-OUTPUT SECTION Used to identify the files used in a program. Relates the filename in the program to the file as referenced by the operating system. Required if there is any external file (either input or output)
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

INPUT-OUTPUT SECTION continued OS Data File name COBOL Program Data file name
Image of page 6
INPUT-OUTPUT SECTION INPUT-OUTPUT SECTION . (col. 8) FILE-CONTROL (paragraph entry -- (col. 8) specifically identifies the external files through the SELECT and ASSIGN statements. (col. 12)
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

FILE-CONTROL The FILE-CONTROL paragraph will declare the file references SELECT statement identifies the name of the file as it will be known in the program ASSIGN statement relates the file to its reference through the operating system (e.g IBM OS name)
Image of page 8
FILE-CONTROL example 8 12 FILE-CONTROL.
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 10
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '17
  • Filename extension, Computer file, Data Division

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern