CL command Create Object from STMF (CRTFRMSTMF) is designed to enable miscellaneous create-commands that do
NOT support stream file source code to create objects from source stream files. For example, the Create Bound CL Program (CRTBNDCL) command, and the Create Command (CRTCMD) command. The purpose of CRTFRMSTMF is that all types of i5/OS source code can be maintained in and built from stream files in i5/OS Integrated File System (IFS). CRTFRMSTMF works as a proxy layer between IFS stream source files and create-commands that only accept source code stored in physical file (PF) members. When invoked, CRTFRMSTMF copies the source code stored in
SRCSTMF to a temparory PF member, invokes the create-command specified by parameter
CMD on the temparory PF member and passes parameters to the target create-command specified in parameter
PARM.
The create-commands currently supported by CRTFRMSTMF are:
- Create Bound CL Program (CRTBNDCL). Creates an ILE CL program object from a single ILE CL source unit.
- Create CL Program (CRTCLPGM). Creates an OPM CL program.
- Create CL Module (CRTCLMOD). Creates an ILE CL module.
- Create RPG/400 Program (CRTRPGPGM). Creates an OPM RPG program object.
- Create COBOL Program (CRTCBLPGM). Creates an OPM COBOL program.
- Create Physical File (CRTPF). Creates a physical file from DDS source code.
- Create Logical File (CRTLF). Creates a logical file from DDS source code.
- Change Physical File (CHGPF).
- Create Command (CRTCMD).
- Create Panel Group (CRTPNLGRP).
Keyword | Description | Choices | Notes
|
OBJ | Object. | Qualified object name | Required, positional 1.
|
Qualifier 1: Object | Generic name, name, *ALL
|
Qualifier 2: Library | Name, *CURLIB
|
CMD | Create-command name. | Name | Required, positional 2.
|
SRCSTMF | Source stream file. | Path name | Required, positional 3.
|
PARM | Addtional command parameters (except SRCFILE and SRCMBR). | Character value | Optional, positional 4.
|
Qualified object name of the object to be created with target create-command.
Qualifier 1: Object
Specify the name of the created object to be created.
Qualifier 2: Library
Name
Specify the name of the library where the created object is to be stored.
*CURLIB
The creatd object is to be stored in the current library.
Name of the create-command used to create the object. The create-commands currently supported by CRTFRMSTMF are:
- Create Bound CL Program (CRTBNDCL). Creates an ILE CL program object from a single ILE CL source unit.
- Create CL Program (CRTCLPGM). Creates an OPM CL program.
- Create CL Module (CRTCLMOD). Creates an ILE CL module.
- Create RPG/400 Program (CRTRPGPGM). Creates an OPM RPG program object.
- Create COBOL Program (CRTCBLPGM). Creates an OPM COBOL program.
- Create Physical File (CRTPF). Creates a physical file from DDS source code.
- Create Logical File (CRTLF). Creates a logical file from DDS source code.
- Change Physical File (CHGPF).
- Create Command (CRTCMD).
- Create Panel Group (CRTPNLGRP).
Specifies the path name of the stream file containing the source code from which the object is to be created. The path name can be either absolutely or relatively qualified.
Specifies parameters to be passed target create-command, except SRCFILE and SRCMBR.
The following CL command create the CRTFRMSTMF command (*CMD) object itself from source stream file crtfrmstmf.cl-cmd.
I5TOOLKIT/CRTFRMSTMF
OBJ(I5TOOLKIT/CRTFRMSTMF)
CMD(CRTCMD)
SRCSTMF('crtfrmstmf.cl-cmd')
PARM('PGM(I5TOOLKIT/CRTFRMSTMF) HLPPNLGRP(I5TOOLKIT/CMHLP) HLPID(''STMFSEU'')')