concepts - cobol400
DESCRIPTION
cobol400 - short courseTRANSCRIPT
Concepts: Conditions Condition Names Continuation Control Breaks Data Types Dates Delimiters Fields High/Low Values Index Julian Dates Level Numbers Literals Paragraphs PIC Clauses Qualified Fields Ref. Modification Reports Sections Subscripts Tables Truncation
Statements/Clauses: 77-level Fields 88-level Fields Accept Add Blank When Zero Call Close Compute Copy Corresponding Date Functions Delete Display Divide Evaluate Exit Exit Program Go To Goback If Initialize Inspect Invalid Key Merge Move Multiply Numeric Fcns Occurs On Size Error Open Perform Read Read Next Redefines Release Return Rewrite Rounded Search Set Sort Start Stop Run String Subtract Unstring Usage Using Value Write
Back to COBOL Topics Index Back to Main
ConditionsA condition is a special piece of code that allows you to instruct the computer to compare two pieces of data. Conditions are used in IF statements and in the While/Until clauses of the PERFORM statementConditions have the syntax:data-1 operator data-2 where data-1 and data-2 can be a literal or a field. data-2 can also be a COBOL literal such as SPACES or ZEROS.Operator can be the traditional comparison symbols =, , =. To check for inequality use 'NOT =' since not all compilers accept the symbol . Rarely, a compiler will not accept =. You can use 'NOT >' and 'NOT