ClearPath MCP 21.0
June 2023
8600 0098-519
Copyright © 2023 Unisys Corporation.
Warranty Disclaimer
NO WARRANTIES OF ANY NATURE ARE EXTENDED BY THIS DOCUMENT. Any product or related information described herein is only furnished pursuant and subject to the terms and conditions of a duly executed agreement to purchase or lease equipment or to license software. The only warranties made by Unisys, if any, with respect to the products described in this document are set forth in such agreement. Unisys cannot accept any financial or other responsibility that may be the result of your use of the information in this document or software material, including direct, special, or consequential damages.
You should be very careful to ensure that the use of this information and/or software material complies with the laws, rules, and regulations of the jurisdictions with respect to which it is used.
The information contained herein is subject to change without notice. Revisions may be issued to advise of such changes and/or additions.
Notice to U.S. Government End Users: This software and any accompanying documentation are commercial items which have been developed entirely at private expense. They are delivered and licensed as commercial computer software and commercial computer software documentation within the meaning of the applicable acquisition regulations. Use, reproduction, or disclosure by the Government is subject to the terms of Unisys’ standard commercial license for the products, and where applicable, the restricted/limited rights provisions of the contract data rights clauses.
Table of Contents
- Program Structure
- Language Components
- Declarations
-
- ALPHA Declaration
- ARRAY Declaration
- ARRAY REFERENCE Declaration
- BOOLEAN Declaration
- COMPLEX Declaration
- CONNECTION BLOCK REFERENCE VARIABLE Declaration
- CONNECTION BLOCK TYPE Declaration
- CONNECTION LIBRARY Declaration
- DEFINE Declaration
- DINTEGER Declaration
- DIRECT ARRAY Declaration
- DOUBLE Declaration
- DUMP Declaration
- EPILOG PROCEDURE Declaration
- EVENT and EVENT ARRAY Declarations
- EXCEPTION PROCEDURE Declaration
- EXPORT Declaration
- EXPORTLIBRARY Declaration
- FILE Declaration
- FORMAT Declaration
- FORWARD REFERENCE Declaration
- IMPORTED Declaration
- INTEGER Declaration
- INTERLOCK and INTERLOCK ARRAY Declarations
- INTERRUPT Declaration
- LABEL Declaration
- LIBRARY Declaration
- LIST Declaration
- MONITOR Declaration
- OUTPUTMESSAGE ARRAY Declaration
- PENDING PROCEDURE Declaration
- PENDING PROCEDURE ACTUAL Declaration
- PICTURE Declaration
- POINTER Declaration
- PROCEDURE Declaration
- PROCEDURE REFERENCE Declaration
- PROCEDURE REFERENCE ARRAY Declaration
- PROLOG PROCEDURE Declaration
- REAL Declaration
- SIMPLE VARIABLE Declaration
- STRING Declaration
- STRING ARRAY Declaration
- STRUCTURE BLOCK ARRAY Declaration
- STRUCTURE BLOCK REFERENCE VARIABLE Declaration
- STRUCTURE BLOCK TYPE Declaration
- STRUCTURE BLOCK VARIABLE Declaration
- SWITCH FILE Declaration
- SWITCH FORMAT Declaration
- SWITCH LABEL Declaration
- SWITCH LIST Declaration
- TASK and TASK ARRAY Declarations
- TRANSLATETABLE Declaration
- TRUTHSET Declaration
- VALUE ARRAY Declaration
- Statements
-
- ACCEPT Statement
- ASSIGNMENT Statement
- ATTACH Statement
- AWAITOPEN Statement
- CALL Statement
- CANCEL Statement
- CASE Statement
- CAUSE Statement
- CAUSE1 Statement
- CAUSEANDRESET Statement
- CHANGEFILE Statement
- CHECKPOINT Statement
- CLOSE Statement
- CONTINUE Statement
- DEALLOCATE Statement
- DETACH Statement
- DISABLE Statement
- DISPLAY Statement
- DO Statement
- ENABLE Statement
- ERASE Statement
- EVENT Statement
- EXCHANGE Statement
- FILL Statement
- FIX Statement
- FOR Statement
- FREE Statement
- FREEZE Statement
- GO TO Statement
- I/O Statement
- IF Statement
- INTERRUPT Statement
- INVOCATION Statement
- LIBERATE Statement
- LOCK File Statement
- LOCK Interlock Statement
- MERGE Statement
- MESSAGESEARCHER Statement
- MLSACCEPT Statement
- MLSDISPLAY Statement
- MLSTRANSLATE Statement
- MULTIPLE ATTRIBUTE ASSIGNMENT Statement
- ON Statement
- OPEN Statement
- POINTER Statement
- PROCEDURE INVOCATION Statement
- PROCEDURE REFERENCE Statement
- PROCESS Statement
- PROCURE Statement
- PROGRAMDUMP Statement
- READ Statement
- REMOVEFILE Statement
- REPLACE Statement
- REPLACE FAMILY-CHANGE Statement
- REPLACE POINTER-VALUED ATTRIBUTE Statement
- RESET Statement
- RESIZE Statement
- RESPOND Statement
- REWIND Statement
- RUN Statement
- SCAN Statement
- SEEK Statement
- SET Statement
- SETABSTRACTVALUE Statement
- SORT Statement
- SPACE Statement
- SWAP Statement
- THRU Statement
- TRY Statement
- UNLOCK Statement
- WAIT Statement
- WAITANDRESET Statement
- WHEN Statement
- WHILE Statement
- WRITE Statement
- ZIP Statement
- Expressions
- Intrinsic Functions
-
- Intrinsic Names by Type Returned
- Intrinsic Function Descriptions
-
- ABS Function
- ACCEPT Statement
- ARCCOS Function
- ARCSIN Function
- ARCTAN Function
- ARCTAN2 Function
- ARRAYSEARCH Function
- ATANH Function
- AVAILABLE Function
- BOOLEAN Function
- CABS Function
- CCOS Function
- CEXP Function
- CHANGEFILE Statement
- CHECKPOINT Statement
- CHECKSUM Function
- CLN Function
- CLOSE Statement
- COMPILETIME Function
- COMPLEX Function
- CONJUGATE Function
- COS Function
- COSH Function
- COTAN Function
- CSIN Function
- CSQRT Function
- DABS Function
- DALPHA Function
- DAND Function
- DARCCOS Function
- DARCSIN Function
- DARCTAN Function
- DARCTAN2 Function
- DCOS Function
- DCOSH Function
- DECIMAL Function
- DELINKLIBRARY Function
- DELTA Function
- DEQV Function
- DERF Function
- DERFC Function
- DEXP Function
- DGAMMA Function
- DIMP Function
- DINTEGER Function
- DINTEGERT Function
- DLGAMMA Function
- DLN Function
- DLOG Function
- DMAX Function
- DMIN Function
- DNABS Function
- DNORMALIZE Function
- DNOT Function
- DOR Function
- DOUBLE Function
- DREAL Function
- DROP Function
- DSCALELEFT Function
- DSCALERIGHT Function
- DSCALERIGHTT Function
- DSIN Function
- DSINH Function
- DSQRT Function
- DTAN Function
- DTANH Function
- ENTIER Function
- ERF Function
- ERFC Function
- EXP Function
- FIRST Function
- FIRSTONE Function
- FIRSTWORD Function
- FIX Statement
- FREE Statement
- GAMMA Function
- HAPPENED Function
- HEAD Function
- IMAG Function
- INTEGER Function
- INTEGERT Function
- ISVALID Function
- LENGTH Function
- LINENUMBER Function
- LINKLIBRARY Function
- LISTLOOKUP Function
- LN Function
- LNGAMMA Function
- LOCK Interlock Function
- LOCKSTATUS Function
- LOG Function
- MASKSEARCH Function
- MAX Function
- MESSAGESEARCHER Statement
- MIN Function
- MLSACCEPT Statement
- MLSDISPLAY Statement
- MLSTRANSLATE Statement
- NABS Function
- NORMALIZE Function
- OFFSET Function
- ONES Function
- OPEN Statement
- POINTER Function
- POT Function
- PROCESSID Function
- RANDOM Function
- READ Statement
- READLOCK Function
- READYCL Function
- REAL Function
- REMAININGCHARS Function
- REMOVEFILE Statement
- REPEAT Function
- SCALELEFT Function
- SCALERIGHT Function
- SCALERIGHTF Function
- SCALERIGHTT Function
- SECONDWORD Function
- SEEK Statement
- SETACTUALNAME Function
- SIGN Function
- SIN Function
- SINGLE Function
- SINH Function
- SIZE Function
- SPACE Statement
- SQRT Function
- STRING Function
- TAIL Function
- TAKE Function
- TAN Function
- TANH Function
- THIS Function
- THISCL Function
- TIME Function
- TRANSLATE Function
- UNLOCK Statement
- UNREADYCL Function
- USERDATA Function
- USERDATALOCATOR Function
- USERDATAREBUILD Function
- VALUE Function
- WAIT Statement
- WAITANDRESET Statement
- WRITE Statement
- Compiling Programs
- Compile-Time Facility
- Library Facility
- Internationalization
-
- Accessing the Internationalization Features
- Understanding the Components of the MLS Environment
- Summary of CENTRALSUPPORT Library Procedures
- Procedure Descriptions
-
- CCSINFO
- CCSTOCCS_TRANS_TABLE
- CCSTOCCS_TRANS_TABLE_ALT
- CCSTOCCS_TRANS_TEXT
- CCSTOCCS_TRANS_TEXT_COMPLEX
- CCSVSN_NAMES_NUMS
- CENTRALSTATUS
- CNV_ADD
- CNV_CONVERTCURRENCY_STAR
- CNV_CONVERTDATE_STAR
- CNV_CONVERTNUMERIC_STAR
- CNV_CONVERTTIME_STAR
- CNV_CURRENCYEDIT_DOUBLE
- CNV_CURRENCYEDITTMP_DOUBLE
- CNV_DELETE
- CNV_DISPLAYMODEL
- CNV_FORMATDATE
- CNV_FORMATDATETMP
- CNV_FORMATTIME
- CNV_FORMATTIMETMP
- CNV_FORMSIZE
- CNV_INFO
- CNV_MODIFY
- CNV_NAMES
- CNV_SYMBOLS
- CNV_SYSTEMDATETIME
- CNV_SYSTEMDATETIMETMP
- CNV_TEMPLATE
- CNV_VALIDATENAME
- COMPARE_TEXT_USING_ORDER_INFO
- CURRENT_MACHINE_ID
- GET_CS_MSG
- INSERT_MACHINE_NAME
- INSERT_PRODUCTLINE_NAME
- INSERT_VENDOR_NAME
- MCP_BOUND_LANGUAGES
- VALIDATE_NAME_RETURN_NUM
- VALIDATE_NUM_RETURN_NAME
- VSNCOMPARE_TEXT
- VSNESCAPEMENT
- VSNGETORDERINGFOR_ONE_TEXT
- VSNINFO
- VSNINSPECT_TEXT
- VSNORDERING_INFO
- VSNTRANSTABLE
- VSNTRANS_TEXT
- VSNTRUTHSET
- Explanation of Error Values
- COBOL85 Compatible Time and Date Procedures
- Run-Time Format-Error Messages
- Reserved Words
- Data Representation
- Understanding Railroad Diagrams
List of Figures
- 1. Translate Table Indexing
- 2. Truth Set Test
- 3. DO-UNTIL Loop
- 4. FOR-DO Loop
- 5. FOR-STEP-UNTIL Loop
- 6. FOR-STEP-WHILE Loop
- 7. FOR-WHILE Loop
- 8. THRU Loop
- 9. WHILE-DO Loop
- 10. Exponentiation: Meaning of Y**Z
- 11. Field Notation, [29:6]
- 12. EBCDIC Characters (8-Bit Fields)
- 13. ASCII Characters (8-Bit Fields)
- 14. Hexadecimal Characters (4-Bit Fields)
- 15. Octal Characters (3-Bit Fields)
- 16. Real Operand
- 17. Integer Operand
- 18. Boolean Operand
- 19. First Word, Dinteger Operand
- 20. Second Word, Dinteger Operand
- 21. First Word, Double-Precision Operand
- 22. Second Word, Double-Precision Operand
List of Tables
- 1. Array Parameters
- 2. Procedure Reference Array Parameters
- 3. Procedure Parameters
- 4. Simple Variable Parameters
- 5. String Parameters
- 6. File Parameters
- 7. Other Types of Parameters
- 8. Mathematical Notation
- 9. Types of Values Resulting from Arithmetic Operations
- 10. Results of Logical Operators
- 11. Arithmetic Intrinsic Functions
- 12. Compiler Input Files
- 13. Compiler Output Files
- 14. Parameter Passing Rules
- 15. Functional Grouping of CENTRALSUPPORT Library Procedures
- 16. Error Results for Internationalization
- 17. CURRENT_DATE Function, Characters 1–21
- 18. CURRENT_DATE Function, Characters 18–19
- 19. CURRENT_DATE Function, Characters 20–21
- 20. Reserved Words List
- 21. Elements of a Railroad Diagram

