11:AT¡¡END¤ÏÀµ¤·¤¯Æ°¤¤¤Æ¤¤¤ë¤Î¤Ç¤Ï¡© tahrayan 07/22 00:23 HIGH-VALUE¤ò8888¡¦¡¦¤Ëľ¤·¤Æ¤¦¤Þ¤¯Æ°¤¯¤è¤¦¤Ë¤Ê¤Ã¤¿¤Î¤Ç¤·¤¿¤é¡¢Îɤ¤¤È¤Ï»×¤¤¤Þ¤¹¤¬¡¦¡¦¡¦ ¤â¤È¤â¤È¤Î¤´¼ÁÌä¤Ï ¡ÖºÇ½ª¥ì¥³¡¼¥É¤¬ºï½ü¤µ¤ì¤¿¤é¡¢¥ì¥³¡¼¥É¤¬¤Ê¤¯¤Ê¤ë¤Î¤Ç¡¢AT END ¤Ë¤Ê¤ë¤È»×¤¦¤Î¤Ç¤¹¤¬¡¢ ¤Ê¤¼AT END GOTO ABC-090¤¬Ìµ»ë¤µ¤ì¤Æ¤·¤Þ¤¦¤Î¤Ç¤·¤ç¤¦¤«¡©¡× ¤À¤Ã¤¿¤È»×¤¤¤Þ¤¹¡£ ¡ÖºÇ¸å¤Î¥ì¥³¡¼¥É¤¬DELETE ¤µ¤ì¤¿¤¢¤È¡¢ ºÆÅÙREADÌ¿Îá¤ò¼Â¹Ô¤·¤¿ºÝ¡¢ READ¡¡XXXX¡¡NEXT AT END ¤Îľ¸å¤Ë DISPLAY¡¡¤·¤¿¤È¤³¤í ¡¡¡É£±£°¡É¡¡ ¤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£¡× ¤È¤¤¤¦¤³¤È¤Ê¤é¤Ð¡¢ AT END¤Îľ¸å¤ÎDISPLAYʸ¤¬¼Â¹Ô¤µ¤ì¤¿¤È¤¤¤¦¤³¤È¤Ç¤¹¤Î¤Ç¡¢ ¡ÖºÇ½ª¥ì¥³¡¼¥É¤¬ºï½ü¤µ¤ì¤¿¤é¡¢¥ì¥³¡¼¥É¤¬¤Ê¤¯¤Ê¤ë¤Î¤Ç¡¢AT END¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡× ¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£ ¥×¥í¥°¥é¥à¤Î°ìÉôʬ¤·¤«¸«¤¨¤Ê¤¤¤Î¤Ç¡¢¤Ï¤Ã¤¤ê¤È¤Ï¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢ ¼Â¤ÏGOTOʸ¤ÎÁ°¤ËHIGH-VALUE¤òMOVE¤¹¤ë½èÍý¤â¤¢¤ë¤è¤¦¤Ç¤¹¤·¡¢ Î㤨¤Ð¡¢MOVE¤ÈGOTO¤Î´Ö¤ÎÊ̤ÎÌ¿Î᤬¤¢¤Ã¤ÆÉÔÀµ½½¿Ê¥¨¥é¡¼¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È¤«¡¢ XXXX-KEY2¤¬±Ñ¿ô»ú¹àÌܤÇÄêµÁ¤µ¤ì¤Æ¤¤¤Æ¡¢HIGH-VALUE¤òÆþ¤ì¤¿¸å¤Ë ¤É¤³¤«¤ÇXXXX-KEY2¤ò»È¤Ã¤Æ·×»»¤·¤Æ¡ÊÎ㤨¤ÐCOMPUTE A=XXXX-KEY/2¤Î¤è¤¦¤Ë¡Ë ÉÔÀµ½½¿Ê¥¨¥é¡¼¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È¤« AT END¤ÈGOTO¤Î´Ö¤¬¶õ¤¤¤Æ¤¤¤ë¤Î¤Ê¤é¡¢GOTO¤Ç¥¸¥ã¥ó¥×¤·¤Ê¤¤·ÐÏ©¤¬¤¢¤êͽÁÛ³°¤Î¾ì½ê¤ò¼Â¹Ô¤·¤Æ¤¤¤ë¤È¤« ¤É¤³¤«¤Ë¥í¥¸¥Ã¥¯¤Ë¸í¤ê¤¬¤¢¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¡¢¤È¤¤¤¦µ¤¤â¤·¤Þ¤¹¡£ 12:Re: AT¡¡END¤ÏÀµ¤·¤¯Æ°¤¤¤Æ¤¤¤ë¤Î¤Ç¤Ï¡© gai 07/23 15:07 ƒ± ƒ² ƒÌƒ± *********************************************************** PERFORM DELETE-PROC UNTIL WK-DNO NOT = XXXX-DNO. *********************************************************** *********************************************************** DELETE-PROC SECTION. KK-010. DELETE XXXX-F INVALID KEY MOVE MSG-ABC TO KB-MSG1 MOVE XX-KEY TO KB-MSG2 PERFORM MSG-RTN THRU MSG-EXT. PERFORM READ-PROC. KK-DELETE-EXIT. EXIT. *********************************************************** *********************************************************** READ-PROC SECTION. K-010. READ XXXX-F NEXT AT END MOVE HIGH-VALUE TO XXXX-KEY2. READ-EXIT. EXIT. *********************************************************** XXXX-KEY2 XXXX-DNO 9(06) XXXX-KNO 9(02) WK-DNO9(06) XXXX-DNO 13:Re: AT¡¡END¡¡¤¬Ìµ»ë¤µ¤ì¤Æ¡¢ºÆÅÙ¡¢DELETE½èÍý¤ò¹Ô¤¤¡¢ ÉÔÀµ½½¿Ê¿ô¥¨¥é¡¼¤Ç¡¡¥¢¥Ü¡¼¥È¤·¤Æ¤·¤Þ¤¤¤Þ¤¹ MAKI 08/04 14:53 HIGH-VALUE¤ÏÆâÉô¥³¡¼¥É¤ÏFF¤Ê¤ó¤Ç¿ôÃ͹àÌܤËMOVE¤·¤è¤¦¤È¤¹¤ë¤È ÉÔÀµ½½¿Ê¿ô¥¨¥é¡¼¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£ ¤ï¤¶¤È¥¢¥Ü¡¼¥È¤µ¤»¤Æ¥×¥í¥°¥é¥à¤ò½ªÎ»¤µ¤»¤Æ¤¤¤ë¤Ê¤ó¤Æ¤³¤È¤Ï ¤Ê¤¤¤Ç¤·¤ç¤¦¤Í¡© |