The CRTSRCLIB command optionally creates the specified library and then creates the following source files in that library:
The LIB parameter identifies the library into which the source file are created. If the source file already exist, they are (obviously) not created. If the library name does not exist, the CRTSRCLIB command creates the library using the following CRTLIB command:
CRTLIB LIB( libName ) TYPE( libType )
If you do NOT want to create the library (for example if you spell the library name incorrectly and a new library would be created with that name) then specify CRTLIB(*NO) for this command.
The RCDLEN parameter indicates the record length passed to the CRTSRCPF command's RCDLEN parameter. The recommended source record length for RPG IV and other ILE targeted source files is 112 bytes, therefore the default for this parameter is RCDLEN(112).
The CRTLIB parameter indicates if the library should be created if it is not already on the system. The default is CRTLIB(*YES) but if the library already exists, it is obviously not created.
The TYPE parameter identifies the type of library being created. The valid choices are *TEST and *PROD. The default is TYPE(*TEST) since developer libraries are normally set up as *TEST libraries for debug purposes.
The CRTSRCLIB command is part of the COZTOOLS library available for public beta testing beginning May 1st, 2012 and becoming available for general use in early August.