{"id":352,"date":"2023-07-26T01:00:00","date_gmt":"2023-07-25T19:30:00","guid":{"rendered":"http:\/\/ibm-mainframes.com\/blog\/?p=352"},"modified":"2023-11-20T11:17:15","modified_gmt":"2023-11-20T05:47:15","slug":"understanding-stop-run-and-goback-in-cobol","status":"publish","type":"post","link":"https:\/\/zmainframes.com\/zlog\/understanding-stop-run-and-goback-in-cobol\/","title":{"rendered":"Understanding STOP RUN and GOBACK in COBOL"},"content":{"rendered":"<p>&nbsp;<\/p>\r\n\r\n<h2 class=\"wp-block-heading has-text-align-center\"><strong><u>\u00a0Understanding STOP RUN and GOBACK in COBOL: A Comprehensive Guide for Programmers<\/u><\/strong><\/h2>\r\n\r\n\r\n\r\n<p><strong><u>Introduction<\/u><\/strong><\/p>\r\n\r\n\r\n\r\n<p>COBOL (Common Business-Oriented Language) is a widely-used programming language for business applications. Within COBOL programs, two important statements govern the program&#8217;s termination and return to the calling program: STOP RUN and GOBACK. In this article, we&#8217;ll explore the differences between these statements, their appropriate usage in called and calling programs, and provide examples<img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" class=\" wp-image-1949 alignright\" src=\"https:\/\/i0.wp.com\/zmainframes.com\/zlog\/wp-content\/uploads\/2023\/07\/understanding-stop-run-and-goback-in-cobol.png?resize=488%2C275&#038;ssl=1\" alt=\"\" width=\"488\" height=\"275\" title=\"\" srcset=\"https:\/\/i0.wp.com\/zmainframes.com\/zlog\/wp-content\/uploads\/2023\/07\/understanding-stop-run-and-goback-in-cobol.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/zmainframes.com\/zlog\/wp-content\/uploads\/2023\/07\/understanding-stop-run-and-goback-in-cobol.png?resize=1024%2C577&amp;ssl=1 1024w, https:\/\/i0.wp.com\/zmainframes.com\/zlog\/wp-content\/uploads\/2023\/07\/understanding-stop-run-and-goback-in-cobol.png?resize=768%2C433&amp;ssl=1 768w, https:\/\/i0.wp.com\/zmainframes.com\/zlog\/wp-content\/uploads\/2023\/07\/understanding-stop-run-and-goback-in-cobol.png?resize=1536%2C865&amp;ssl=1 1536w, https:\/\/i0.wp.com\/zmainframes.com\/zlog\/wp-content\/uploads\/2023\/07\/understanding-stop-run-and-goback-in-cobol.png?resize=1%2C1&amp;ssl=1 1w, https:\/\/i0.wp.com\/zmainframes.com\/zlog\/wp-content\/uploads\/2023\/07\/understanding-stop-run-and-goback-in-cobol.png?resize=150%2C85&amp;ssl=1 150w, https:\/\/i0.wp.com\/zmainframes.com\/zlog\/wp-content\/uploads\/2023\/07\/understanding-stop-run-and-goback-in-cobol.png?w=1640&amp;ssl=1 1640w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/> to illustrate their functionality.<\/p>\r\n\r\n\r\n\r\n<p><strong>STOP RUN Statement<\/strong><\/p>\r\n\r\n\r\n\r\n<p>The STOP RUN statement is used to terminate the current COBOL program gracefully. When this statement is executed, the program&#8217;s execution comes to an end, and the control returns to the operating system or the calling program. The STOP RUN statement also releases any resources held by the program, performs end-of-job processing, and closes any open files.<\/p>\r\n\r\n\r\n\r\n<p>Syntax:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" style=\"font-size: .875rem; font-family: Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; --cbp-line-number-color: #adbac7; --cbp-line-number-width: 7.6999969482421875px; line-height: 1.25rem;\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\"><span style=\"display: flex; align-items: center; padding: 10px 0px 10px 16px; margin-bottom: -2px; width: 100%; text-align: left; background-color: #2d333d; color: #9eadbd;\">COBOL<\/span>\r\n<pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e;\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #f47067;\">STOP RUN<\/span><\/span><\/code><\/pre>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Considerations for STOP RUN:<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"1\" type=\"1\">\r\n<li>Usage: The STOP RUN statement is primarily used at the end of the main program to conclude its execution. It is not recommended to use STOP RUN within called subprograms as it would terminate the entire program abruptly, leading to unexpected results.<\/li>\r\n\r\n\r\n\r\n<li>File Handling: The STOP RUN statement ensures that any open files are properly closed before program termination, preventing data corruption or loss.<\/li>\r\n\r\n\r\n\r\n<li>Error Handling: Since the STOP RUN statement ends the program abruptly, it may not allow for graceful error handling or cleanup of resources in case of exceptions. It is advisable to use GOBACK in most cases, which allows for better error handling and recovery.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p>Example 1: Using STOP RUN in the Main Program<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" style=\"font-size: .875rem; font-family: Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; --cbp-line-number-color: #adbac7; --cbp-line-number-width: 15.400001525878906px; line-height: 1.25rem;\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\"><span style=\"display: flex; align-items: center; padding: 10px 0px 10px 16px; margin-bottom: -2px; width: 100%; text-align: left; background-color: #2d333d; color: #9eadbd;\">COBOL<\/span>\r\n<pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e;\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #f47067;\">IDENTIFICATION DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">PROGRAM-ID<\/span><span style=\"color: #adbac7;\">. <\/span><span style=\"color: #dcbdfb;\">MainProgram<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DATA DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">WORKING-STORAGE SECTION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #6cb6ff;\">01<\/span><span style=\"color: #adbac7;\"> NUM <\/span><span style=\"color: #f47067;\">PIC 9<\/span><span style=\"color: #adbac7;\">(<\/span><span style=\"color: #6cb6ff;\">3<\/span><span style=\"color: #adbac7;\">) <\/span><span style=\"color: #f47067;\">VALUE<\/span><span style=\"color: #adbac7;\"> 100. <\/span><\/span>\r\n \r\n<span class=\"line\"><span style=\"color: #f47067;\">PROCEDURE DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Main Program has started.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">MOVE<\/span> <span style=\"color: #6cb6ff;\">200<\/span> <span style=\"color: #f47067;\">TO<\/span><span style=\"color: #adbac7;\"> NUM<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Main Program is ending now.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">STOP RUN<\/span><span style=\"color: #adbac7;\">.<\/span><\/span><\/code><\/pre>\r\n<\/div>\r\n\r\n\r\n\r\n<p>In this example, the MainProgram starts, displays a message, sets NUM to 200, and then ends using the STOP RUN statement.<\/p>\r\n\r\n\r\n\r\n<p><strong><span style=\"text-decoration: underline;\">GOBACK Statement<\/span><\/strong><\/p>\r\n\r\n\r\n\r\n<p>The GOBACK statement is used to return control from a called program to the calling program. When a program executes a CALL statement to invoke a subprogram, it temporarily suspends its execution and passes control to the called program. Once the called program completes its execution or encounters a GOBACK statement, control is transferred back to the next statement after the original CALL statement in the calling program.<\/p>\r\n\r\n\r\n\r\n<p>Syntax:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" style=\"font-size: .875rem; font-family: Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; --cbp-line-number-color: #adbac7; --cbp-line-number-width: 7.700004577636719px; line-height: 1.25rem;\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\"><span style=\"display: flex; align-items: center; padding: 10px 0px 10px 16px; margin-bottom: -2px; width: 100%; text-align: left; background-color: #2d333d; color: #9eadbd;\">COBOL<\/span>\r\n<pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e;\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #f47067;\">GOBACK<\/span><\/span><\/code><\/pre>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Considerations for GOBACK:<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"1\" type=\"1\">\r\n<li>Usage: GOBACK is primarily used within called subprograms to indicate the successful completion of the subprogram&#8217;s tasks and return control to the calling program.<\/li>\r\n\r\n\r\n\r\n<li>Resource Management: Unlike STOP RUN, GOBACK allows the called program to release resources and perform cleanup operations before returning control to the calling program. This makes it suitable for structured error handling and resource management.<\/li>\r\n\r\n\r\n\r\n<li>Nested CALLs: In scenarios where multiple programs are called in a nested manner, GOBACK ensures that control returns to the appropriate calling program in the correct order.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p>Example 2: Using GOBACK in a Called Subprogram<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" style=\"font-size: .875rem; font-family: Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; --cbp-line-number-color: #adbac7; --cbp-line-number-width: 15.399999618530273px; line-height: 1.25rem;\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\"><span style=\"display: flex; align-items: center; padding: 10px 0px 10px 16px; margin-bottom: -2px; width: 100%; text-align: left; background-color: #2d333d; color: #9eadbd;\">COBOL<\/span>\r\n<pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e;\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #f47067;\">IDENTIFICATION DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">PROGRAM-ID<\/span><span style=\"color: #adbac7;\">. <\/span><span style=\"color: #dcbdfb;\">SubProgram<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DATA DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">WORKING-STORAGE SECTION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #6cb6ff;\">01<\/span><span style=\"color: #adbac7;\"> SUB-NUM <\/span><span style=\"color: #f47067;\">PIC 9<\/span><span style=\"color: #adbac7;\">(<\/span><span style=\"color: #6cb6ff;\">3<\/span><span style=\"color: #adbac7;\">) <\/span><span style=\"color: #f47067;\">VALUE<\/span><span style=\"color: #adbac7;\"> 50. <\/span><\/span>\r\n \r\n<span class=\"line\"><span style=\"color: #f47067;\">PROCEDURE DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"SubProgram has started.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">ADD<\/span> <span style=\"color: #6cb6ff;\">100<\/span> <span style=\"color: #f47067;\">TO<\/span><span style=\"color: #adbac7;\"> SUB-NUM<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"SubProgram is ending now.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">GOBACK<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<\/code><\/pre>\r\n<\/div>\r\n\r\n\r\n\r\n<p>In this example, the SubProgram starts, displays a message, adds 100 to SUB-NUM, and then ends using the GOBACK statement.<\/p>\r\n\r\n\r\n\r\n<p>Example 3: Calling SubProgram from Main Program<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" style=\"font-size: .875rem; font-family: Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; --cbp-line-number-color: #adbac7; --cbp-line-number-width: 15.399999618530273px; line-height: 1.25rem;\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\"><span style=\"display: flex; align-items: center; padding: 10px 0px 10px 16px; margin-bottom: -2px; width: 100%; text-align: left; background-color: #2d333d; color: #9eadbd;\">COBOL<\/span>\r\n<pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e;\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #f47067;\">IDENTIFICATION DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">PROGRAM-ID<\/span><span style=\"color: #adbac7;\">. <\/span><span style=\"color: #dcbdfb;\">MainProgram<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DATA DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">WORKING-STORAGE SECTION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #6cb6ff;\">01<\/span><span style=\"color: #adbac7;\"> NUM <\/span><span style=\"color: #f47067;\">PIC 9<\/span><span style=\"color: #adbac7;\">(<\/span><span style=\"color: #6cb6ff;\">3<\/span><span style=\"color: #adbac7;\">) <\/span><span style=\"color: #f47067;\">VALUE<\/span><span style=\"color: #adbac7;\"> 100. <\/span><\/span>\r\n \r\n<span class=\"line\"><span style=\"color: #f47067;\">PROCEDURE DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Main Program has started.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">PERFORM<\/span><span style=\"color: #adbac7;\"> 2000-TASK<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Main Program is ending now.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">STOP RUN<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #adbac7;\">2000-TASK.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Performing Task 2000.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">CALL<\/span> <span style=\"color: #96d0ff;\">\"SubProgram\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Task 2000 completed.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">EXIT<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<\/code><\/pre>\r\n<\/div>\r\n\r\n\r\n\r\n<p>In this example, the MainProgram starts, performs a task (2000-TASK) which calls the SubProgram. After the SubProgram completes using the GOBACK statement, the control returns to the next statement after the CALL &#8220;SubProgram&#8221; statement in the MainProgram.<\/p>\r\n\r\n\r\n\r\n<p>Combining GOBACK with Conditional Statements:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" style=\"font-size: .875rem; font-family: Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; --cbp-line-number-color: #adbac7; --cbp-line-number-width: 15.399999618530273px; line-height: 1.25rem;\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\"><span style=\"display: flex; align-items: center; padding: 10px 0px 10px 16px; margin-bottom: -2px; width: 100%; text-align: left; background-color: #2d333d; color: #9eadbd;\">COBOL<\/span>\r\n<pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e;\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #f47067;\">IDENTIFICATION DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">PROGRAM-ID<\/span><span style=\"color: #adbac7;\">. <\/span><span style=\"color: #dcbdfb;\">MainProgram<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DATA DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">WORKING-STORAGE SECTION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #6cb6ff;\">01<\/span><span style=\"color: #adbac7;\"> NUM <\/span><span style=\"color: #f47067;\">PIC 9<\/span><span style=\"color: #adbac7;\">(<\/span><span style=\"color: #6cb6ff;\">3<\/span><span style=\"color: #adbac7;\">) <\/span><span style=\"color: #f47067;\">VALUE<\/span><span style=\"color: #adbac7;\"> 100. <\/span><\/span>\r\n \r\n<span class=\"line\"><span style=\"color: #f47067;\">PROCEDURE DIVISION<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Main Program has started.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">PERFORM<\/span><span style=\"color: #adbac7;\"> 2000-TASK<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Main Program is ending now.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">STOP RUN<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #adbac7;\">2000-TASK.<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Performing Task 2000.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">IF<\/span><span style=\"color: #adbac7;\"> NUM <\/span><span style=\"color: #f47067;\">&gt;<\/span> <span style=\"color: #6cb6ff;\">50<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Task 2000 completed successfully.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">ELSE<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">DISPLAY<\/span> <span style=\"color: #96d0ff;\">\"Task 2000 failed.\"<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">GOBACK<\/span><\/span>\r\n<span class=\"line\"><span style=\"color: #f47067;\">END-IF<\/span><span style=\"color: #adbac7;\">.<\/span><\/span>\r\n<\/code><\/pre>\r\n<\/div>\r\n\r\n\r\n\r\n<p>In this example, the MainProgram starts, performs a task (2000-TASK), which calls the SubProgram. Based on a condition (NUM &gt; 50), the SubProgram either completes successfully or fails using the GOBACK statement.<\/p>\r\n\r\n\r\n\r\n<p><strong><span style=\"text-decoration: underline;\">Conclusion<\/span><\/strong><\/p>\r\n\r\n\r\n\r\n<p>In COBOL, the STOP RUN and GOBACK statements serve distinct purposes in program execution. STOP RUN is used to terminate the entire program, releasing resources and closing files. It is typically employed in the main program. On the other hand, GOBACK is utilized in called subprograms to return control to the calling program, allowing for structured error handling and resource management.<\/p>\r\n\r\n\r\n\r\n<p>Understanding when and where to use STOP RUN and GOBACK is essential for designing efficient and robust COBOL programs. With proper usage and consideration of these statements, COBOL developers can ensure smooth program execution and maintainability in business applications.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Understanding when and where to use STOP RUN and GOBACK is essential for designing efficient and robust COBOL programs. With proper usage and consideration of these statements, COBOL developers can ensure smooth program execution and maintainability in business applications.<\/p>\n","protected":false},"author":515,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[306,405,37,404,406],"class_list":["post-352","post","type-post","status-publish","format-standard","hentry","category-cobol","tag-cobol-2","tag-goback-in-cobol","tag-mainframes","tag-stop-run-and-goback-in-cobol","tag-stop-run-in-cobol"],"amp_enabled":true,"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"zMainframes","author_link":"https:\/\/zmainframes.com\/zlog\/author\/zmainframes\/"},"rttpg_comment":1,"rttpg_category":"<a href=\"https:\/\/zmainframes.com\/zlog\/mainframes\/cobol\/\" rel=\"category tag\">Cobol<\/a>","rttpg_excerpt":"Understanding when and where to use STOP RUN and GOBACK is essential for designing efficient and robust COBOL programs. With proper usage and consideration of these statements, COBOL developers can ensure smooth program execution and maintainability in business applications.","_links":{"self":[{"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/posts\/352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/users\/515"}],"replies":[{"embeddable":true,"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":6,"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":1981,"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/posts\/352\/revisions\/1981"}],"wp:attachment":[{"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zmainframes.com\/zlog\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}