Page 1 of 1

Environment Division

PostPosted: Wed Feb 15, 2012 6:03 pm
by Alison Oliveira
Hello...
The information on ENVIROMENT DIVISION is site specific???

Re: Environment Division

PostPosted: Wed Feb 15, 2012 6:24 pm
by Robert Sample
Which of the ENVIRONMENT DIVISION items are you talking about

SOURCE-COMPUTER
OBJECT-COMPUTER
SPECIAL-NAMES
ALPHABET
SYMBOLIC CHARACTERS
CLASS
CURRENCY SIGN
DECIMAL POINT IS COMMA
XML-SCHEMA
REPOSITORY

or are you referring to items in the INPUT-OUTPUT SECTION, where files are defined?

Some of these are site-specific, some are not. Some can be site-specific but may have generic values. The division includes so much, a general statement cannot be made about specificity.

Re: Environment Division

PostPosted: Wed Feb 15, 2012 6:26 pm
by Alison Oliveira
i´m sorry... i don´t specificate correctly...
about this itens i was talking about...

SOURCE-COMPUTER
OBJECT-COMPUTER

thanks

Re: Environment Division

PostPosted: Wed Feb 15, 2012 6:32 pm
by Robert Sample
The Enterprise COBOL Language Reference manual states that they are syntax-checked but only WITH DEBUGGING MODE in SOURCE-COMPUTER and COLLATING SEQUENCE in OBJECT-COMPUTER will affect the program.

In other words, if your site has a standard for them, follow it. Otherwise, you could use IBM-COMPUTER for each and COBOL will compile the program just fine.

Re: Environment Division

PostPosted: Wed Feb 15, 2012 6:40 pm
by BillyBoyo
If you have files in your program, or are using SPECIAL-NAMES, or anything else Robert has already listed, you need what relates to those. Apart from your site standards, everything else can be left out. If you are not using anything in the ENVIRONMENT DIVISION you can actually leave it out altogether and everything will be fine.

Re: Environment Division

PostPosted: Fri Feb 17, 2012 3:32 pm
by Anuj Dhawan
As Robert indicated, except for the WITH DEBUGGING MODE clause, the SOURCE-COMPUTER paragraph is syntax checked, but has no effect on the execution of the program.

What is "WITH DEBUGGING MODE clause" and what is 'D' in column 7 related to them -- I leave that to you for reading.