|
¹Ú¿ì¹üÀÇ Çã¶ô ¾øÀÌ´Â »ó¾÷Àû »ç¿ëÀ» ±ÝÇÕ´Ï´Ù. |
Á¦ 2Àå 4°³ÀÇ DIVISION¸¦ ¹è¿ìÀÚ. |
[*] | COBOLÀÇ ±¸Á¶ ( DIVISION ) |
1) | COBOLÀº Å©°Ô 4°³ÀÇ ºÎºÐÀ¸·Î ³ª´©¾îÁö¸ç, °¢ ºÎºÐÀ» µðºñÁ¯(DIVISION)À̶ó ÇÕ´Ï´Ù. |
2) | DIVISIONÀº ¹Ýµå½Ã ¼ø¼´ë·Î ±â¼úÇØ¾ß ÇÕ´Ï´Ù. |
1) | IDENTIFICATION | DIVISION. | (Ç¥Á¦ ºÎºÐ) |
2) | ENVIRONMENT | DIVISION. | (»ç¿ë ±â°è ¼³¸í ºÎºÐ) |
3) | DATA | DIVISION. | (±â¾ïÀå¼Ò ¼³¸í ºÎºÐ) |
4) | PROCEDURE | DIVISION. | (½ÇÇà ºÎºÐ) |
[1] | IDENTIFICATION DIVISION. ( Ç¥Á¦ºÎ ) |
1) | ÇÁ·Î±×·¥ÀÇ ¼³¸íºÎºÐÀ¸·Î ½ÇÇà°ú´Â ¹«°üÇÕ´Ï´Ù. |
2) | 7°³ÀÇ ¼ÒÀý·Î ±¸¼ºµË´Ï´Ù. |
3) | SECTION(Àý)Àº Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. |
4) | ANSI COBOL, RM-COBOL, MS-COBOLÀº ¾à°£ÀÇ Â÷ÀÌ°¡ ÀÖ½À´Ï´Ù. |
[2] | ENVIRONMENT DIVISION. ( ȯ°æºÎ ) |
1) | »ç¿ëµÇ´Â ÄÄÇ»ÅÍ ¹× I/O ÀåÄ¡¿ÍÀÇ ¿¬°á »çÇ×À» ±â¼úÇÕ´Ï´Ù. |
2) | 2°³ÀÇ SECTION(Àý)°ú °¢°¢ÀÇ ¼ÒÀý·Î ±¸¼ºµË´Ï´Ù. |
[3] | DATA DIVISION. ( ±â¾ïÀåÄ¡ ¼³¸íºÎ ) |
1) | »ç¿ëµÈ ÆÄÀÏ ¹× ·¹Äڵ忡 °üÇÑ ±¸Ã¼ÀûÀÎ ³»¿ëÀ» ±â¼úÇÕ´Ï´Ù. |
2) | 4°³ÀÇ SECTION(Àý)À¸·Î ±¸¼ºµÇ¸ç ¼ø¼´ë·Î ±â¼úÇÕ´Ï´Ù. |
3) | ÇÊ¿äÇÑ SECTION(Àý)¸¸ ¼±ÅÃÇÏ¿© ±â¼úÇÒ ¼ö ÀÖ½À´Ï´Ù. |
4) | ¼ÒÀýÀº Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. |
[4] | PROCEDURE DIVISION. ( ó¸® ÀýÂ÷ºÎ ) |
1) | ó¸®ÇÒ ³»¿ëÀ» ±¸Ã¼ÀûÀ¸·Î Áö½ÃÇÏ´Â ¸í·É¹®À» ±â¼úÇÕ´Ï´Ù. |
2) | È帧µµÀÇ ³»¿ëÀ» COBOL ¹®¹ý¿¡ ¸Âµµ·Ï ÄÚµùÇÕ´Ï´Ù. |
3) | ÀÔÃâ·Â ¸í·É, ¿¬»ê ¸í·É, µ¥ÀÌÅÍ À̵¿ ¸í·É, Á¦¾î ¸í·É µîÀÌ ±â¼úµË´Ï´Ù. |
4) | Á¼Àº Àǹ̿¡¼ ÇÁ·Î±×·¥Àº ÀÌ ºÎ¸¦ ÀǹÌÇÕ´Ï´Ù. |
Á¦ 2Àå 1Àý | IDENTIFICATION | DIVISION. |
Á¦ 2Àå 2Àý | ENVIRONMENT | DIVISION. |
Á¦ 2Àå 3Àý | DATA | DIVISION. |
Á¦ 2Àå 4Àý | PROCEDURE | DIVISION. |
|
¢Ð | ¢½ | ¢Ñ |