A Smalltalk transaction within CICS reacts the same way as a C or COBOL transaction. Therefore, the same rules that apply to the C and COBOL languages also apply to the Smalltalk programming language. Because Smalltalk runs as a CICS application, the standard EXEC CICS commands are available to a Smalltalk developer.
Each of the CICS commands, located in application CICSPlatformFunctions, can be found in two classes, with the following naming convention (where xxxx is the name of the CICS command):
The CICS command options are mapped to Smalltalk setter and getter methods. All setter methods are in CICSxxxx classes, and all getter methods are in CICSxxxxResult classes. After running a CICS command, using the CICSxxxx class, you can obtain returned information using the CICSxxxxResult classes.
To invoke CICS commands, use the standard syntax found in the CICS Application Programming Guide. Smalltalk's changes to the standard syntax are as follows:
Standard CICS syntax:
EXEC CICS DELETE FILE('MASTVSAM') RIDFLD(ACCTNO) KEYLENGTH(LEN)
Smalltalk syntax:
CICS delete file: 'MASTVSAM'; ridfld: acctno; keylength: len; exec.
Appendix B, CICS Smalltalk classes describes the CICS commands using their corresponding CICSxxxx and CICSxxxxResult classes.