Question

In: Computer Science

Every COBOL program I've browsed professionally has had Paragraph numbers. It is somewhat of Programmer Preference/Art...

Every COBOL program I've browsed professionally has had Paragraph numbers. It is somewhat of Programmer Preference/Art within some general guidelines established by the organization. Reference the references based on your searches, and provide:

1) What you think are the purposes & advantages of numbering paragraphs.

2) Guidelines you suggest for numbering paragraphs.

Please do not cut/paste website text. I've already read that, and that is really the only wrong answer here. The idea of the assignment is assimilate, ascertain & express in simple terms the purpose, advantage & guidelines you'd suggest. This is not a novel; use brief paragraphs and or bullet points.

Lincoln was asked to appear upon some important occasion and deliver a five-minute speech, he said that he had no time to prepare five-minute speeches, but that he could go and speak an hour at any time. The point here, is that with a little planning, it does not take a lot of words to express your point.


i understand this is COBOL but i still need help there is no selection for cobol programming

Solutions

Expert Solution

Yes paragraph Numbers are very helpful as I myself work as a mainframe developer and I face lots of situations like that

I feel main purpose is for easy readability of the code.Like in our system first date is read from parm card so we use V000- (section name) for accepting date from Jcl and we use number V100- for checking whether the value is ok or not .

Then we use para as P000- for proofing of input variables from jcl or main program and H000 is used for performing different operations like suppose we have 1 cursor operation,1 update and 1 insert .We use H100- for cursor operation,h200- for insert

Vice versa.For Db2 operation and movement of fetched data we use D000- or update or insert.

So,the conclusion is that different section names and numbering helps you to understand the code better though being coded by someone else and logic designing also becomes easy and it saves lot of time and in IT industry time is money.

According to me the guidelines for para should be like:-

1.First para for validation

2.Second para for calling operations to be performed

3.Operation Para

4.Closing the program para

You can use any numbers but it should be logical as your code can be viewed by other programmer and he wouldnt understand this .It should be like H000- for para 1 and if any operation to be done after it you use h100- and so on.


Related Solutions

10. Every country has a set of core values and beliefs. These values may vary somewhat...
10. Every country has a set of core values and beliefs. These values may vary somewhat from region to region of the nation. Identify five core values for your area of the country. 11. Baby boomers in America are aging. Describe how this might affect the marketing mix for the following: Select 1. • Bally’s Health Clubs • McDonald’s • Whirlpool Corporation • The State of Florida • Target Stores 12. How should Ford Motor Company market differently to Millennials,...
Ms. George is a 32-year-old computer programmer. Over the last several months, she has had increased...
Ms. George is a 32-year-old computer programmer. Over the last several months, she has had increased episodes of a burning sensation in the mid epigastrium and back. The pain subsides after eating. Based on her history, the physician orders an endoscopy that reveals several peptic ulcers. Treatment of the ulcers includes antibiotics, proton pump inhibitors, and bismuth salts. (Learning Objectives 1 and 3) Questions: a. Correlate Ms. George’s clinical presentation to the pathophysiology of peptic ulcers. b. Ms. George asks...
Every student who has ever worked on a group project has had to consider the free...
Every student who has ever worked on a group project has had to consider the free rider problem. On a societal level, broad taxation is often used to solve the problem. Are there other ways to get around the problem? How does one justify the inefficiencies often associated with governmental provision of necessary goods and services? How does one balance individual rights with the need to provide for the greater good?
Design the logic for a program that has two parts: The user enters 15 numbers that...
Design the logic for a program that has two parts: The user enters 15 numbers that are stored into an array. The program uses the array to display the numbers back to the user in reverse order. You must use an array and one or more loops to get full credit. Can someone please help me figure this out?
Program for C++ A company has six salespeople. Every month, they go on road trips to...
Program for C++ A company has six salespeople. Every month, they go on road trips to sell the company’s product. At the end of each month, the total sales for a salesperson in that month, together with that salesperson’s ID and the month, is recorded in a file. At the end of each year, the manager of the company wants to see an annual sales report. Due to the amount of data involved, he’s like to be able to view...
Write a Python program that has a list of 5 numbers [2, 3, 4, 5, 6)....
Write a Python program that has a list of 5 numbers [2, 3, 4, 5, 6). Print the first 3 elements from the list using slice expression. a. Extend this program in a manner that the elements in the list are changed to (6, 9, 12, 15, 18) that means each element is times 3 of the previous value. b. Extend your program to display the min and max value in the list.
Jet Fuel Ltd. has a customer rewards program. For every litre of gas Jet Fuel sells,...
Jet Fuel Ltd. has a customer rewards program. For every litre of gas Jet Fuel sells, the customer is awarded one point. Each point is worth $0.10 off the purchase of future goods. During the month of January, Jet Fuel had gas sales of $172,000 and sold 144,000 litres of gas. Jet Fuel estimates 60% of the points will be redeemed. During February, the actual value of the points redeemed is $7,250. Instructions a) Prepare the journal entry for the...
Java program Prime Numbers A prime number is a natural number which has exactly two distinct...
Java program Prime Numbers A prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. For example, the first four prime numbers are: 2, 3, 5 and 7. Write a java program which reads a list of N integers and prints the number of prime numbers in the list. Input: The first line contains an integer N, the number of elements in the list. N numbers are given in the following lines. Output:...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT