GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL

 Print  |  
Question:  What is an in line PERFORM? When would you use it? Anything else to say about it?

Answer: The PERFORM and END-PERFORM statements bracket all COBOL II statements between them. The COBOL equivalent is to PERFORM or PERFORM THRU a paragraph. In line PERFORMs work as long as there are no internal GO TOs, not even to an exit. The in line PERFORM for readability should not exceed a page length - often it will reference other PERFORM paragraphs.


January 01, 2006 04:14:49 #1
 poonguzhali   Member Since: Visitor    Total Comments: N/A 

RE: What is an in line PERFORM? When would you use it...
 

Perform stmt doesn't contain any paragraph name, it will perform all the instructions with in that.

     

 

Back To Question