|
¹Ú¿ì¹üÀÇ Çã¶ô ¾øÀÌ´Â »ó¾÷Àû »ç¿ëÀ» ±ÝÇÕ´Ï´Ù. |
Á¦ 2Àå 3Àý DATA DIVISION. |
Âü°í 1) | MEMORY MAP°ú °ü·Ã ÀÖ´Â ºÎºÐÀ¸·Î ±â¾ïÀå¼Ò¸¦ Á¤ÀÇÇÕ´Ï´Ù. |
Âü°í 2) | PROCEDURE DIVISION¿¡ µé¾î°¡±â¿¡ ¾Õ¼ ¸ðµç data-name(±â¾ïÀå¼Ò¸í)ÀÇ Å©±â¿Í ¼º°ÝÀ» ±â¼úÇØ¾ß ÇÕ´Ï´Ù. |
1. | COBOL ÇÁ·Î±×·¥ÀÇ ¼¼ ¹ø° ±â¼úÇÏ´Â DIVISIONÀÔ´Ï´Ù. |
2. | 4°³ÀÇ SECTIONÀ¸·Î ±¸¼ºµÇ³ª ÇÁ·Î±×·¥ÀÇ ¼º°Ý¿¡ µû¶ó ¼±ÅÃÇÏ¿© ±â¼úÇÕ´Ï´Ù. |
|
||
DATA | DIVISION. | |
[ FILE | SECTION. ] | |
ÆÄÀÏ ¼³¸í¹®. | ||
·¹ÄÚµå ¼³¸í¹®. | ||
[ WORKING-STORAGE | SECTION. ] | |
·¹ÄÚµå ¼³¸í¹®. | ||
[ LINKAGE | SECTION. ] | |
·¹ÄÚµå ¼³¸í¹®. | ||
[ REPORT | SECTION. ] | |
·¹ÄÚµå ¼³¸í¹®. | ||
1) | FILE SECTION | ¢¡ ¸ðµç ÆÄÀÏÀÇ ÆÄÀÏ°ú ·¹Äڵ带 Á¤ÀÇÇØ ÁÖ´Â SECTIONÀÔ´Ï´Ù. |
2) | WORKING-STORAGE SECTION | ¢¡ ¿¬»ê°ú ÆíÁý µî ÇÊ¿ä¿¡ µû¶ó ¸¸µç ÀÛ¾÷ Àå¼Ò¸¦ ÁöÁ¤ÇÏ´Â SECTIONÀÔ´Ï´Ù. |
3) | LINKAGE SECTION | ¢¡ ºÎ ÇÁ·Î±×·¥¿¡ µ¥ÀÌÅ͸¦ ±â¾ï½ÃÅ°±â À§ÇØ SUBPROGRAM(ºÎ ÇÁ·Î±×·¥)ÀÇ DATA DIVISION¿¡ ±â¼úÇÕ´Ï´Ù. |
4) | REPORT SECTION | ¢¡ º¸°í¼ÀÇ Àü¹Ý ±¸Á¶¸¦ ¼³¸íÇÏ´Â SECTIONÀÔ´Ï´Ù. |
2.3.1 | FILE SECTION. |
2.3.2 | WORKING-STORAGE SECTION. |
2.3.3 | LINKAGE SECTION. |
|
¢Ð | ¢½ | ¢Ñ |