Geeks Talk

Prepare for your Next Interview




General coding rules

This is a discussion on General coding rules within the MainFrame forums, part of the Software Development category; I want to know some of the general coding rules a programmer need to follow while coding a cobol program.If people participate in this discussion and put their ideas ...


Go Back   Geeks Talk > Software Development > MainFrame

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-01-2006
Contributing Member
 
Join Date: Jul 2006
Posts: 56
Thanks: 0
Thanked 3 Times in 2 Posts
Remasri is on a distinguished road
General coding rules

I want to know some of the general coding rules a programmer need to follow while coding a cobol program.If people participate in this discussion and put their ideas I feel we could get lot of ideas on the same.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-09-2006
Contributing Member
 
Join Date: Jul 2006
Posts: 52
Thanks: 0
Thanked 1 Time in 1 Post
Bessie is on a distinguished road
Re: General coding rules

There are many rules. BUt to name a few are:
All user-defined data names in the WORKING-STORAGE SECTION, will be prefixed by WSn where n is a sequence number of the working storage entries.
Subordinate data items, e.g., at the 05 level, will each be prefixed by the same prefix as that at their respective 01 level.
The IDENTIFICATION DIVISION must include program remarks bracketed by asterisks. These remarks must include the following:
a. A short overview of the purpose of the program
b. Frequency of program operation (e.g., monthly), if applicable.
c. Course number and section number
d. Program or assignment number
e. Name of instructor
Reply With Quote
  #3 (permalink)  
Old 10-09-2006
Junior Member
 
Join Date: Sep 2006
Posts: 27
Thanks: 0
Thanked 2 Times in 2 Posts
SachinDeo is on a distinguished road
Re: General coding rules

To add some more into the coding rules are:
A "/" placed in position 7 of the line preceding the DATA DIVISION and the PROCEDURE DIVISION so that these divisions begin at the top of a new page of the listing.
set the page eject symbol ("/" in column 7) to prevent group items in the DATA DIVISION and modules (paragraphs) in the PROCEDURE DIVISION from being separated by a page break.
All FD entries in the FILE SECTION will be separated by at least on blank line.
All 01 entries in the WORKING-STORAGE SECTION will be separated by at least one blank line.
Leave Spacing between DIVISIONS, SECTIONS, LEVELS, and paragraphs.
Reply With Quote
Reply

  Geeks Talk > Software Development > MainFrame


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Coding with PL/SQL sripri Oracle 3 03-02-2007 11:19 AM
Which RDBMS follows all CODD rules fred Oracle 2 02-09-2007 06:26 AM
Microsoft CRM : Troubleshooting general issues in Microsoft Dynamics CRM 3.0 Jim.Anderson Microsoft CRM 0 09-27-2006 07:39 AM
Rules for COPY statement norman MainFrame 1 08-14-2006 05:11 AM
Answer for General Question blenda Interviews 1 08-08-2006 03:38 PM


All times are GMT -4. The time now is 11:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved