Midrange News for the IBM i Community


Create Development Source Files and Library Published by: Bob Cozzi on 19 Apr 2012 view comments

CRTSRCLIB - Create Source Files and Library

The CRTSRCLIB command optionally creates the specified library and then creates the following source files in that library:

  1. QRPGLESRC
  2. QCMDSRC
  3. QCLSRC
  4. QSRVSRC
  5. QDDSSRC
  6. QSQLSRC
  7. QCPYSRC
  8. QXMLSRC
  9. QHTMLSRC
  10. QCSRC
  11. H

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.

Requirements:

  • IBM i v5r4 or later.

Components Included:

  1. CRTDEVLIB - Command Definition Object
  2. CRTDEVLIB - CL Command Processing Program

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS