Skip to Content
Custom Search

COBOL INLINE PERFORM

 

INLINE PERFORM
 
The following simple COBOL program depicts the use of 
Inline PERFORM
 
       PROGRAM-ID. PGM010.
       AUTHOR. MAINFRAMEWIZARD.
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01 WS-SUB PIC 9(3) VALUE ZEROS.
       PROCEDURE DIVISION.
       10000-MAIN-PARA.
            PERFORM VARYING WS-SUB FROM 1 BY 1 UNTIL WS-SUB=5
              DISPLAY 'INLINE PERFORM DEPICTED BY MAINFRAMEWIZARD.COM'
            END-PERFORM.
           STOP RUN.
 
 
 
INLINE PERFORM DEPICTED BY MAINFRAMEWIZARD.COM                                                                           
INLINE PERFORM DEPICTED BY MAINFRAMEWIZARD.COM                                                                           
INLINE PERFORM DEPICTED BY MAINFRAMEWIZARD.COM                                                                           
INLINE PERFORM DEPICTED BY MAINFRAMEWIZARD.COM                                                                           

Comments

Post new comment

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Who's online

There are currently 0 users and 22 guests online.
Dr. Radut | page