I have recently started learning Cobol. Of course, I need to understand some background and application fields and prospects for learning a language. Let's talk about my questions and understanding.
1. How old is Cobol?For this question, read a book and check the information. COBOL is the abbreviation of common business oriented language. It is mainly used to s
I really didn't expect that I would do it in COBOL, even if I knew the history of computers:
Post a post that has been transferred n times
1. How old is Cobol?For this question, read a book and check the information. COBOL is the abbreviation of common business oriented language. It is mainly used to solve a large number of data processing problems in business an
Abbreviations:
COBOL(Common Business Oriented Language)
Chinese Translation: Cobol Language
Interpretation: a programming language similar to English that is suitable for business and data processing. This language accurately expresses the business data processing process.
COBOL is one of the oldest advanced programming languages and the first commercial languag
Recently I have been busy with my work and my graduation work, so I am not very busy. Now we have a bit of free time. Let's take a look.
Since so many people need the COBOL teaching materials, I will recommend them to you.It is in the IBM library, and I think it is comprehensive. As long as you finish reading this, it should be okay with Cobol.
IBM Library ReaderHttp://www-1.ibm.com/support/docview.wss?
Interest calculation is an important business of banks, including daily proxy customer collection, calculation of customer interest, and annual interest calculation. Currently, most of this work is performed on the Safe Application System Platform of the IBM es9000 host. The online program and the on-line interest rate program are implemented in the IBM 370 assembly language. For ease of reading and writing in assembly language, the data storage format is defined in the data stored in the VSAM f
COBOL language IntroductionCOBOL Introduction--Business computing preferred Language COBOL is the acronym for the Common Business oriented Language (general commercial language). Widely used in the field of data management, such as accounting work, statistical reports, planning, personnel management. is referred to as the "language for Administration".Characteristics of data processing:The arithmetic comput
Next to the book (an entry to the COBOL study notes)SlaveProgramWe can see that the COBOL program is divided into four parts:Identification Division.Environment Division.Data Division.Procedure division.
For more information about the functions of each part, see Chapter 1 Cobol.
Here we mainly look at the content in procedure Division. This is the core.Process
The format of the COBOL source program is as follows:
Each line starts with a sequence number with six characters. You can enter limit 10 or limit 20 to indicate the rows.
The sequence number area is followed by an indicator area of a character (7th characters), as shown in the first line. You can use "*" and "/" to represent comments, "_" to represent continued rows, and "D" to represent debugging.
The indicator area is followed by four characters (8
The first time I got in touch with Cobol today, the lecturer was an English speaker. It was really hard to take the course. Alas .... the English is not good. There are two books in China that feel okay, the simple guide of COBOL and the programming language design of COBOL (TAN haoqiang)
The following is the first program and a hello program. The tool is
First o
The format of the identity department:code example:Identification Division.Program-id. Idsample.AUTHOR. PROGRAMMER NAME.Installation. COBOL Development CENTER.Date-written. 08/27/88.Date-compiled. 09/01/88 12:57:53.SECURITY. Non-confidential.Format of the Ministry of the Environment:code exampleEnvironment Division.CONFIGURATION section.Source-computer. ibm-as400.Object-computer. ibm-as400.Special-names. Cð1 is top-of-page.Source-computer defines the
COBOL syntax and grammar (1)
RedefinesDifferent variables can be used to describe the same memory.01 part_recode usage display03 part-type picture...03 part_type_a.05 part_number picture...05 part_cost picture...03 part_type_ B redefines part_type_a.05 upc_code picture...03 part_type_c redefines part_type_a.05 ISBN picture...Based on part_type, choose part_type_a, part_type_ B, or part_type_c.Rules:The length of part_type_ B and par
Recursion is rarely used in Cobol. It is also boring to see this example in IBM book.
Identification Division.
Program-id. recutestRecursive.
**************************************** ***
* Recursive Test
**************************************** **
Environment Division.
Data Division.
Working-storage section.
01 numb PIC 9 (4) value 5.
01 fact PIC 9 (8) value 0.
Local-storage section.
01 num PIC 9 (4 ).
Procedure division.
M
of the memory
Description of the file General formatFD file name (internal file name)01 Record Name05 data item 1 PIC ...05 Data item 2 PIC ...An FD statement is a file descriptor that describes the properties of a file and a record, such as the record name, format, and length .All data groups and data items under the FD statement make up a record of the file.Record Description: The record description begins with a 01-layer number followed by a record name. The data format used to define r
In addition to directly configuring variables to modify the original content, is there a way to fine-tune the content of variables through simple actions? For example, you can delete, replace, and replace variable content! Yes! We can fine-tune the variable content through several simple small steps! Next, let's try it!
This section describes how to delete a variable.
The variable content can be easily dele
SQL parameter format: Select * from TB where nD =: Nd and YD =: YD
To replace all parameters (with colons) in all SQL statements with data at one time,
StartSelect a regular expression.
Originally written like thisCopyCodeThe Code is as follows: strsql. Replace (/(: \ W +)/g, ("$1"). substring (1 ));
"$1" is always parsed as a string instead of a matching value.ChangeCopy codeThe Code is as follows: s
Tags: str nts add BBS--Update useful special TCOMySQL Replace instance description:UPDATE tb1 SET f1=replace (F1, ' abc ', ' Def ');REPLACE (STR,FROM_STR,TO_STR)All occurrences of the string from_str in the string str are replaced by TO_STR, and then the string is returnedThis function is useful for bulk substitution of illegal keywords in data! Here's an example
PHP uses arrays to replace matching items in strings in sequence, and php arrays to replace strings. PHP uses an array to replace the matching items in the string in sequence. The php array replaces the string to see the SQL statement: select * fromtablewherectime [date-14] andctime [date-1]; to replace the matching it
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.