What is PERFORM What is VARYING ?


The PERFORM statement is a PROCEDURE DIVISION statement which transfers control to one or more specified procedures and controls as specified the number of times the procedures are executed. After execution of the specified procedures is completed (i.e., for the appropriate number of times or until some specified condition is met), control is transferred to the next executable statement following the PERFORM statement. There are 5 types of PERFORM statements

a) Basic PERFORM
b) PERFORM TIMES
c) PERFORM UNTIL
d) PERFORM VARYING
e) IN-LINE PERFORM



Explore posts in the same categories: Cobol Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What is an in line PERFORM When would you use it Anything else to say about it ?
  • The PERFORM and END-PERFORM statements bracket all COBOL II statements between them. The COBOL equivalent is to PERFORM or PERFORM...
  • What is an in line PERFORM ? When would you use it ? Anything else to say about it ?
  • The PERFORM and END-PERFORM statements bracket all COBOL II statements between them. The COBOL equivalent is to PERFORM or PERFORM...
  • In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution ?
  • In COBOL II the optional clause WITH TEST BEFORE or WITH TEST AFTER can be added to all perform statements....
  • In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution ?
  • In COBOL II the optional clause WITH TEST BEFORE or WITH TEST AFTER can be added to all perform statements....
  • When would you use in-line perform ?
  • When the body of the perform will not be used in other paragraphs. If the body of the perform is...
  • When would you use in-line perform ?
  • When the body of the perform will not be used in other paragraphs. If the body of the perform is...
  • What is the difference between perform() and execute() methods?
  • Perform method is the method which was deprecated in the Struts Version 1.1.Ā In Struts 1.x, Action.perform() is the...
  • What are the two parts of a procedure ?
  • Procedure Specification and Procedure Body. TheĀ Same procedure name is repeated with parameters of different datatypes andĀ parametersĀ...
  • Is it possible to execute code even after the program exits the main() function?
  • The standard C library provides a function named atexit() that can be used to perform ā€œcleanupā€ operations when your...
  • What guidelines should be followed to write a structured Cobol prg’m ?
  • 1) use 'evaluate' stmt for constructing cases. 2) use scope terminators for nesting. 3) use in line perform stmt for writing 'do...

    Comments are closed.