Previous Topic Next topic Print topic


Statements

statement-block

ACCEPT Statement - Managed SyntaxTakes data keyed at the console or supplied by the operating system and makes it available to the program in a specified data item. ADD Statement - Managed SyntaxAdds two or more numeric operands and stores the result. Attach StatementAttaches a delegate, a method group or an anonymous method to an event. CREATE Collection Statement - Managed SyntaxCreates or constructs an instance of a list or dictionary. COMPUTE Statement - Managed SyntaxAssigns to one or more data items the value of an arithmetic expression. CONTINUE Statement - Managed SyntaxThe CONTINUE statement is a no operation statement, indicating that no executable statement is present. DECLARE Statement - Managed Syntax Declares one or more local variables within the procedure division body. The scope of any inline local variable is from the point of declaration until the end of the innermost containing block, where paragraphs, sections and the whole method are considered to be blocks. DELETE Collection Statement - Managed SyntaxDeletes an element from the list or dictionary. Detach Statement - Managed SyntaxDetaches a delegate or a method group from an event. DISPLAY Statement - Managed SyntaxDisplays the specified data items. DIVIDE Statement - Managed SyntaxDivides one numeric data item into others and sets the values of data items equal to the quotient and remainder. EVALUATE Statement - Managed SyntaxDescribes a multi-branch, multi-join structure, which can evaluate multiple conditions. The subsequent action of the run-time element depends on the results of these evaluations. EXIT Statement - Managed SyntaxCauses an exit from a perform loop, method or iterator. GOBACK Statement - Managed SyntaxCauses a return from a method. IF Statement - Managed SyntaxEvaluates a condition and takes subsequent action depending on whether the value of the condition is true or false. INSPECT Statement - Managed SyntaxProvides the ability to perform tally, replace, tally and replace, and convert and tally trailing operations on a data item. INVOKE Statement - Managed SyntaxInvokes a method. MOVE Statement - Managed SyntaxTransfers data to one or more data areas. MULTIPLY Statement - Managed SyntaxMultiplies numeric data items and sets the values of data items equal to the results. PERFORM Statement - Managed SyntaxControls execution of a statement block in the scope of the PERFORM statement. This statement can also process each element of an array or collection. RAISE Statement - Managed SyntaxRaises an exception. READ Collection Statement - Managed SyntaxReads an element in the list or in the dictionary from a given key. RESET Collection Statement - Managed SyntaxDeletes all the elements from the list or dictionary. REWRITE Collection Statement - Managed SyntaxOverwrites an element in the list or dictionary. SET Statement - Managed SyntaxCan set the size of an array; initialize the contents of an array and set the size accordingly; and set the value of a data item or a boolean data item. SORT Statement - Managed SyntaxSorts the elements of a table. STRING Statement - Managed SyntaxConcatenates the partial or complete contents of two or more data items into a single data item. SUBTRACT Statement - Managed SyntaxSubtracts one, or the sum of two or more, numeric data items from one or more items, and set the values of one or more items equal to the results. SYNC Statement - Managed SyntaxMarks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a block of statements, and then releasing the lock. TRY Statement - Managed SyntaxThe TRY...CATCH...FINALLY...END-TRY structure is the basis for structured exception handling. UNSTRING Statement - Managed SyntaxSeparates contiguous data in a sending field and places it into multiple receiving fields. WRITE Collection Statement - Managed SyntaxWrites an element to the list or dictionary.
Previous Topic Next topic Print topic