<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alomohora &#187; COBOL</title>
	<atom:link href="http://alomohora.com/category/cobol/feed/" rel="self" type="application/rss+xml" />
	<link>http://alomohora.com</link>
	<description>All about programming languages</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:01:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>COBOL Enviroment Division</title>
		<link>http://alomohora.com/cobol-enviroment-division/</link>
		<comments>http://alomohora.com/cobol-enviroment-division/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 01:24:49 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[COBOL]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=226</guid>
		<description><![CDATA[The Environment Division describes the environment for which the program is written. It also specifies input-output control and describes special control techniques and hardware characteristics. The Environment Division follows the Identification Division. The general format defines the order of appearance of Environment Division entries. A contained program cannot include a configuration section. The purpose of [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The <strong>Environment Division </strong>describes the environment for which the program is written. It also specifies input-output control and describes special control techniques and hardware characteristics. The <strong>Environment Division </strong>follows the <strong>Identification Division</strong>. The general format defines the order of appearance of <strong>Environment Division </strong>entries. A contained program cannot include a configuration section.</p>
<p style="text-align: justify;"><span id="more-226"></span></p>
<p style="text-align: justify;">The purpose of the <strong>Environment Division</strong> is to isolate in one place all aspects of the program that are dependant upon a specific computer, device or encoding sequence.</p>
<p style="text-align: justify;">The idea behind this is to make it easy to change the program when it has to run on a different computer or one with different peripheral devices.</p>
<p style="text-align: justify;">In the <strong>Environment Division</strong>, aliases are assigned to external devices, files or command sequences. Other environment details, such as the collating sequence, the currency symbol and the decimal point symbol may also be defined here. The <strong>Environment Division </strong>has two sections:</p>
<ul type="disc">
<li style="text-align: justify;">The CONFIGURATION SECTION</li>
</ul>
<p style="text-align: justify; margin: 20pt;">The CONFIGURATION SECTION describes the hardware on which the programs to run and on which it is to be compiled. The source computer is the computer on which the program is to be compiled. The object computer is the one on which the program is to run. Additional features of the CONFIGURATION SECTION are:</p>
<p style="text-align: justify; margin: 20pt;">1. SPECIAL-NAMES </p>
<p style="text-align: justify; margin: 30pt;">This is used to define mnemonics for printer control.</p>
<p style="text-align: justify; margin: 20pt;">2. SOURCE-NAMES<a name="config"></a></p>
<p style="text-align: justify; margin: 30pt;">Specifies the computer on which the source program is to be compiled.</p>
<p style="text-align: justify; margin: 20pt;">3. OBJECT-COMPUTER </p>
<p style="text-align: justify; margin: 30pt;">Describes the computer on which the program is to execute.</p>
<ul type="disc">
<li style="text-align: justify;">The INPUT-OUTPUT SECTION.</li>
</ul>
<p style="text-align: justify; margin: 20pt;">COBOL programs historically get their input from files and write their output to files. Files are thus part of the environment in which a COBOL program runs. In addition most operating systems have naming conventions for files that lead to names that are unacceptable to COBOL. The FILE-CONTROL part of the INPUT-OUTPUT SECTION serves to identify external files by names that are acceptable to the COBOL compiler. COBOL allows many kinds of files we only need sequential files and sort files so that is all that is illustrated.</p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/cobol-enviroment-division/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>COBOL Identification Division</title>
		<link>http://alomohora.com/identification-division/</link>
		<comments>http://alomohora.com/identification-division/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 03:59:06 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[COBOL]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=21</guid>
		<description><![CDATA[The Identification Division must be the first division in every COBOL source program. It names the program and may include the date the program was written, the date of compilation, and other such documentary information about the program. The first paragraph of the Identification Division must be the PROGRAM-ID paragraph. The other paragraphs are optional, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The <strong>Identification Division</strong> must be the first division in every COBOL source program. It names the program and may include the date the program was written, the date of compilation, and other such documentary information about the program.</p>
<p style="text-align: justify;"><span id="more-21"></span></p>
<p style="text-align: justify;">The first paragraph of the <strong>Identification Division</strong> must be the PROGRAM-ID paragraph. The other paragraphs are optional, but, when written, must appear in the order shown in the format.</p>
<p style="text-align: justify;"><strong>Format Identification Division</strong></p>
<p style="text-indent: 36.0pt;">IDENTIFICATION DIVISION.</p>
<p style="text-indent: 36.0pt;">PROGRAM-ID.                   (mandatory)</p>
<p style="text-indent: 36.0pt;">AUTHOR.                       (optional)</p>
<p style="text-indent: 36.0pt;">INSTALLATION.                 (optional)</p>
<p style="text-indent: 36.0pt;">DATE-WRITTEN.                 (optional)</p>
<p style="text-indent: 36.0pt;">DATE-COMPILED.                (optional)</p>
<p style="text-indent: 36.0pt;">SECURITY.                     (optional)</p>
<ul type="disc">
<li style="text-align: justify;"><strong>PROGRAM-ID </strong></li>
</ul>
<p style="text-indent: 36pt; text-align: justify;">Specifies the name of the COBOL program.</p>
<ul type="disc">
<li style="text-align: justify;"><strong>AUTHOR</strong></li>
</ul>
<p style="text-indent: 36pt; text-align: justify;">Name of the author of COBOL the program.</p>
<ul type="disc">
<li style="text-align: justify;"><strong>INSTALLATION</strong></li>
</ul>
<p style="text-indent: 36pt; text-align: justify;">Name of the company or location.</p>
<ul type="disc">
<li style="text-align: justify;"><strong>DATE-WRITTEN</strong></li>
</ul>
<p style="text-indent: 36pt; text-align: justify;">Date the program was written.</p>
<ul type="disc">
<li style="text-align: justify;"><strong>DATE-COMPILED</strong></li>
</ul>
<p style="text-indent: 36pt; text-align: justify;">Date the program was compiled.</p>
<ul type="disc">
<li style="text-align: justify;"><strong>SECURITY</strong></li>
</ul>
<p style="text-indent: 36pt; text-align: justify;">Level of confidentiality of the program.</p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/identification-division/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Source Code Format COBOL</title>
		<link>http://alomohora.com/cobol-source-code-format-2/</link>
		<comments>http://alomohora.com/cobol-source-code-format-2/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 02:40:54 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[COBOL]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=624</guid>
		<description><![CDATA[The format COBOL source programs using the COBOL reference format. Enter the line number, COBOL statement and procedure name in the positions stipulated in the reference format. Enter the line number, COBOL statement, and procedure identifier in the edit screen, as shown in the following example. Sequence number area (columns 1 to 6) Specify the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The format COBOL source programs using the COBOL reference format. Enter the line number, COBOL statement and procedure name in the positions stipulated in the reference format.</p>
<p style="text-align: justify;"><span id="more-624"></span></p>
<p style="text-align: justify;">Enter the line number, COBOL statement, and procedure identifier in the edit screen, as shown in the following example.</p>
<ul type="disc">
<li style="text-align: justify;">Sequence number area (columns 1 to 6)</li>
</ul>
<p style="text-align: justify;">Specify the line number in the sequence number area. The line number can be omitted.</p>
<ul type="disc">
<li style="text-align: justify;">Indicator area (column 7)</li>
</ul>
<p style="text-align: justify;">Use the indicator area when continuing a line or to change a line to a comment line. In all other cases, be sure to enter a space.</p>
<ul type="disc">
<li style="text-align: justify;">Area A (columns 8 to 11)</li>
</ul>
<p style="text-align: justify;">Normally, COBOL divisions, sections, paragraphs and end program headers are described in this area. Data items whose level-number is 77 or 01 are also described in this area.</p>
<ul type="disc">
<li style="text-align: justify;">Area B (column 12 and on)</li>
</ul>
<p style="text-align: justify;">Normally, COBOL statements, comment-entries and data items whose level-number is not 77 or 01 are described in this area.</p>
<ul type="disc">
<li style="text-align: justify;">Line feed character (end of line)</li>
</ul>
<p style="text-align: justify;">Enter a line feed character at the end of each line.</p>
<ul type="disc">
<li style="text-align: justify;">TAB character</li>
</ul>
<p style="text-align: justify;">A TAB character can be specified as the nonnumeric literal in a COBOL source program. The TAB character takes up 1 byte within the non-numeric literal.</p>
<p style="text-align: center;"><a href="http://makiki.wordpress.com/files/2008/12/alomohora-cobol-source-code-format.png"><img class="aligncenter" title="Alomohora - COBOL - Source Code Format" src="http://makiki.wordpress.com/files/2008/12/alomohora-cobol-source-code-format.png" alt="Alomohora - COBOL - Source Code Format" width="456" height="159" /></a></p>
<p style="text-align: justify;">After creating and editing the source program, store the program in a file. Normally, you affix the extension COB or CBL to the name of the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/cobol-source-code-format-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>COBOL Hello World!</title>
		<link>http://alomohora.com/cobol-hello-world/</link>
		<comments>http://alomohora.com/cobol-hello-world/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 08:28:27 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[COBOL]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=4</guid>
		<description><![CDATA[The traditional first example in any programming language is the “Hello world!” program. A &#8220;Hello World&#8221; program is a computer program that prints out &#8220;Hello world!&#8221; on a display device. A &#8220;hello world&#8221; program has become the traditional first program that many people learn. IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. AUTHOR. MAKIKI. ENVIRONMENT DIVISION. DATA DIVISION. PROCEDURE [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The traditional first example in any programming language is the “Hello world!” program.</p>
<p style="text-align: justify;"><span id="more-4"></span></p>
<p style="text-align: justify;">A &#8220;Hello World&#8221; program is a computer program that prints out &#8220;Hello world!&#8221; on a display device.  A &#8220;hello world&#8221; program has become the traditional first program that many people learn.</p>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">       IDENTIFICATION DIVISION.</pre>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">       PROGRAM-ID.  HELLO.</pre>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">       AUTHOR.      MAKIKI.</pre>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">       ENVIRONMENT DIVISION.</pre>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">       DATA DIVISION.</pre>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">       PROCEDURE DIVISION.</pre>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">       MAINLINE.</pre>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">           DISPLAY 'Hello world!'.</pre>
<pre style="tab-stops: 45.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;">           STOP RUN.</pre>
<p style="text-align: justify;">This program simply prints out the message “Hello world!”</p>
<p style="text-align: justify;"><a href="http://alomohora.com/wp-download/HELLO.rar">Source Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/cobol-hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
