Create CICS ILE C object (CRTCICSC)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Create CICS C (CRTCICSC) command calls the CICS translator, which translates C source containing CICS statements and produces a temporary source member. If the source program also contains Structured Query Language (SQL) commands, it optionally calls the SQL precompiler following a successful CICS translate. Following the CICS translation and the optional SQL precompilation, the ILE C compiler may optionally be called to compile the source.

Note: It is possible to precompile your SQL statements first by running the CRTSQLCI command and specifying the *NOGEN option on the OPTION parameter. This puts the SQL precompiler output in QSQLTEMP in library QTEMP. You must then run the CRTCICSC command specifying SRCFILE as QTEMP/QSQLTEMP; the SRCMBR name can be obtained by looking in this file for your SQL precompiled program source. The rest of the parameters on CRTCICSC can be entered as normal.

Top

Parameters

Keyword Description Choices Notes
OBJ Object Qualified object name Required, Positional 1
Qualifier 1: Object Name
Qualifier 2: Library Name, *CURLIB
SRCFILE Source file Qualified object name Optional, Positional 2
Qualifier 1: Source file Name, QCSRC
Qualifier 2: Library Name, *LIBL, *CURLIB
SRCMBR Source member Name, *OBJ Optional, Positional 3
OBJTYPE Compile type *MODULE, *PGM Optional
TEXT Text description Character value, *SRCMBRTXT Optional
OUTPUT C Compiler output *NONE, *PRINT Optional
DBGVIEW C Debugging view *NONE, *ALL, *STMT, *SOURCE, *LIST Optional
MSGLMT C Compiler messages Element list Optional
Element 1: Message limit 1-32767, *NOMAX
Element 2: Message limit severity 10, 20, 30
CICSOPT CICS Options Values (up to 19 repetitions): *NOSOURCE, *NOSRC, *SOURCE, *SRC, *NOVBREF, *VBREF, *NOXREFCICS, *XREFCICS, *NODEBUG, *DEBUG, *NOGEN, *GEN, *NOSECLVL, *SECLVL, *NOGRAPHIC, *GRAPHIC, *NOPP, *PP Optional
OUTFILE CICS Output file Qualified object name Optional
Qualifier 1: CICS Output file Name, QACYCICS
Qualifier 2: Library Name, QTEMP, *LIBL, *CURLIB
OUTMBR CICS Output member Name, *OBJ Optional
CICSGENLVL CICS Message level 0-40, 10 Optional
MARGINS Source margins Element list Optional
Element 1: Left margin 1-80, 1
Element 2: Right margin 10-100, 80
TGTRLS Target release Character value Optional
SQLOPT SQL Options Values (up to 16 repetitions): *NOSOURCE, *NOSRC, *SOURCE, *SRC, *XREF, *NOXREF, *GEN, *NOGEN, *SYSVAL, *PERIOD, *COMMA, *SECLVL, *NOSECLVL, *SQL, *SYS Optional
INCFILE SQL INCLUDE file Qualified object name Optional
Qualifier 1: SQL INCLUDE file Name, *SRCFILE
Qualifier 2: Library Name, *LIBL, *CURLIB
COMMIT SQL Commitment control *CHG, *CS, *ALL, *NONE Optional
ALWCPYDTA SQL Allow copy of data *YES, *OPTIMIZE, *NO Optional
ALWBLK SQL Allow blocking *READ, *NONE, *ALLREAD Optional
DLYPRP SQL Delay PREPARE *NO, *YES Optional
CLOSQLCSR SQL Close cursor *ENDACTGRP, *ENDMOD Optional
SQLGENLVL SQL Message level 0-40, 10 Optional
SAAFLAG SQL SAA flagging *NOFLAG, *FLAG Optional
FLAGSTD SQL ANS flagging *NONE, *ANS Optional
DATFMT SQL Date format *JOB, *USA, *ISO, *EUR, *JIS, *MDY, *DMY, *YMD, *JUL Optional
TIMFMT SQL Time format *HMS, *USA, *ISO, *EUR, *JIS Optional
TIMSEP SQL Time separator ' ', ':', '.', ',', *JOB, *BLANK Optional
DATSEP SQL Date separator ' ', '.', ',', '/', '-', *JOB, *BLANK Optional
DFTRDBCOL SQL Default collection Name, *NONE Optional
REPLACE Replace object *YES, *NO Optional
Top

Object (OBJ)

Specifies the name and qualifier of the object being created.

The name of the object can be qualified by one of the following library values:

object-name: Specify the name of the object that is to be created.

Note: If the object name you specify is the same as that of an existing object, and if the REPLACE parameter is specified as *YES (the default) your new object replaces the existing one.

Top

Source file (SRCFILE)

Specifies the qualified name of the source file that contains the C source code with the EXEC CICS or EXEC SQL statements.

The source file can be qualified by one of the following library values:

QCSRC: Specifies that if a C source file name is not specified, the supplied source file QCSRC contains the C source.

source-file-name: Specify the name of the source file that contains the C source code.

Top

Source member (SRCMBR)

Specifies the name of the source file member that contains the C source.

Top

Compile type (OBJTYPE)

Specifies the type of object to be created.

The possible values are:

Top

Text description (TEXT)

Allows you to enter text that describes the compiled module or program and its function.

Top

C Compiler output (OUTPUT)

Specifies whether a compiler listing is generated.

The possible values are:

Top

C Debugging view (DBGVIEW)

Specifies which level of debugging is available for the compiled module or program, and which source views are available for source-level debugging.

The possible values of the DBGVIEW parameter are:

Top

Create CICS ILE C object (MSGLMT)

Specifies the maximum number of messages that can occur before the C compilation stops.

message-limit: Specifies the number of messages that can occur.

message-severity: Specifies the message severity that can occur before compilation stops.

Top

CICS Options (CICSOPT)

Specifies whether one or more of the following options are to be used when the C source is CICS translated. If an option is specified more than once, or if two options conflict, the last option specified is used. If an option is not specified, then the default is used.

Source Listing Options

Cross-Reference Options

Debug options

Program creation options

Second-level help text

DBCS enablement

Top

Library (OUTFILE)

Specifies the qualified name of the intermediate precompiler output.

The possible library values are:

source-file-name: Specify the name of the source file that is to contain the intermediate precompiler output.

QTEMP/QACYCICS: If an output source file name is not specified, the supplied source file QTEMP/QACYCICS is to contain the intermediate precompiler output.

Top

CICS Output member (OUTMBR)

Specifies the name of the source file member that is to contain the intermediate precompiler output. If this parameter is not specified, the program name specified on the PGM parameter is used.

Top

CICS Message level (CICSGENLVL)

Specifies a level of CICS precompiler errors. If errors occur with a severity level greater than the value specified in this parameter, either the SQL precompiler is not called (if the CICS precompiler located any SQL in the source) or the C compiler is not called.

Possible values are:

Top

Source margins (MARGINS)

Specifies the part of the precompiler input record that contains source text.

The possible values are:

Top

Target release (TGTRLS)

Specifies the release level of the operating system on which you intend to use the object being created. In the examples given for the *CURRENT and *PRV values, and when specifying the target-release value, the format VxRxMx is used specify release, where Vx is the version, Rx is the release, and Mx is the modification level. For example, V5R3M0 is Version 5, Release 3, Modification 0.

Valid values for this parameter change every release.

The possible values are:

Top

SQL Options (SQLOPT)

Specifies whether one or more of the following options are to be used when the C source is SQL precompiled. If an option is specified more than once, or if two options conflict, the last option specified is used. If an option is not specified then the default is used.

Source Listing Options

Cross-Reference Options

Program Creation Options

Decimal point options

Naming Convention Option

Second-level help text

Top

SQL INCLUDE file (INCFILE)

Specifies the qualified name of the source file that contains the members included in the program with any SQL INCLUDE statement.

The possible library values are:

Top

SQL Commitment control (COMMIT)

Specifies whether SQL statements in the compiled program are run under commitment control. Files referred to in the host language source are not affected by this parameter. Only SQL tables, views, and SQL packages referred to in SQL statements are affected.

Top

SQL Allow copy of data (ALWCPYDTA)

Specifies whether a copy of the data is allowed in a SELECT statement.

Top

SQL Allow blocking (ALWBLK)

Specifies whether the database manager can use record blocking and the extent to which blocking can be used for read-only cursors.

*READ: Records are blocked for read-only retrieval of data for cursors when:

Specifying *READ can improve the overall performance of queries that meet the above conditions and retrieve a large number or records.

*NONE: Rows are not blocked for retrieval of data for cursors. Specifying *NONE:

Top

SQL Delay PREPARE (DLYPRP)

Specifies whether the dynamic statement validation for a PREPARE statement is delayed until an OPEN, EXECUTE, or DESCRIBE statement is run. Delaying validation improves performance by eliminating duplicate validation.

Top

SQL Close cursor (CLOSQLCSR)

Specifies when SQL cursors are to be implicitly closed; when SQL prepared statements are implicitly discarded; and when LOCK TABLE locks are SQL cursors are explicitly closed by issuing the CLOSE, COMMIT (without HOLD), or ROLLBACK (without HOLD) SQL statements.

Possible values are:

Top

SQL Message level (SQLGENLVL)

Specifies a level of SQL precompiler errors. If errors occur with a severity level greater than the value specified in the parameter, then the ILE C compiler is not called.

Possible values are:

Top

SQL SAA flagging (SAAFLAG)

Specifies whether SQL statements that do not SAA Level 2 Database standards are flagged. This parameter allows the user to flag SQL statements to verify that they conform to SAA Level 2 Database standards.

Top

SQL ANS flagging (FLAGSTD)

Specifies whether nonstandard statements are flagged. This parameter allows you to flag SQL statements to verify if they have conformed to ANSI X3.135-1-1989, ANSI X3.168-1989, ISO 9075-1989, and FIPS 127.1 standards.

Top

SQL Date format (DATFMT)

Specifies the format used when accessing date result columns. All output date fields are returned in the specified format. For input date strings, the specified value is used to determine if the date is in a valid format.

Note: An input date string that uses format *USA, *ISO, *EUR, or *JIS is always valid. If you connect to a relational database that is on a system that is not an iSeries system, *USA, *ISO, *EUR, or *JIS must be used.

Top

SQL Time format (TIMFMT)

Specifies the format used when accessing time result columns. All output time fields are returned in the specified format. For input time strings, the specified value is used to determine if the time is specified in a valid format.

Note: An input time string that uses the format *USA, *ISO, *EUR, or *JIS is always valid. If you connect to a relational database that is on a system that is not an iSeries system, the time format must be *USA, *ISO, *EUR, *JIS, or *HMS with a time separator of colon or period.

Top

SQL Time separator (TIMSEP)

Specifies the separator used when accessing time result columns.

Note: This parameter applies only when *HMS is specified on the TIMFMT parameter.

Top

SQL Date separator (DATSEP)

Specifies the separator used when accessing date result columns.

Top

SQL Default collection (DFTRDBCOL)

Specifies the name of the collection identifier to be used for unqualified names of tables, views, indexes, and SQL packages. This parameter applies only to static SQL statements.

Top

Replace object (REPLACE)

Specifies whether a CICS module or program is to be created when there is an existing CICS module or program of the same name and type in the same library. The value of this parameter is passed to the CRTSQLCI, CRTCMOD, or CRTBNDC command.

Top

Examples

None
Top

Error messages

Unknown
Top