RAMESH KRISHNA REDDY mainframe discussion forum - cobol, db2,cics,jcl,file-aid,changeman,interview questions
Online Tutorials   | PREV  | TOP  | NEXT


COBOL Environment Division


COBOL Environment Division

ENVIRONMENT DIVISION This division contains two optional SECTIONS. 1. CONFIGURATION SECTION. Specifies the characteristics of your computer system. 2. INPUT-OUTPUT SECTION. Relates file names used in the program to the external file names. CONFIGURATION SECTION Describe the computer. We are not providing more info on this SECTION as many shops donít use this SECTION. INPUT-OUTPUT SECTION In COBOL programs, we can process either sequential files OR VSAM files. Use the FILE-CONTROL paragraph to describe about your program files, associate them with external files where they physically reside. specify the information to efficiently transfer the data between program and files. INPUTFL1 in SELECT statement is called physical file. This is the way how program know the name of the actual file to be used. Run JCL ( JCL which executes the program) contains the actual file name to be used. To relate that file with the file in the program, physical file name will be used. INPUTFILE in SELECT is called logical file name. Program uses this name while accessing the file.



Previous chapter in COBOL tutorial Starting of COBOL tutorial Next chapter in COBOL tutorial

Visit COBOL books section in this site for good books

Home | Donations | Online Tutorials | Books | Entertainment | Contactme | privacy |  sql tutorial | jcl interview questions | JCL Tutorial | JCL Tutorial - chapter1 | JCL Tutorial - chapter2 | JCL Tutorial - chapter3 | JCL Tutorial - chapter4 | JCL Tutorial - chapter5 | JCL Tutorial - chapter6 | JCL Tutorial - chapter7 | JCL Tutorial - chapter8 | JCL Tutorial - chapter9 | JCL Tutorial - chapter10 | JCL Tutorial - chapter11