You can use a create command to create an object using a source file. If you create an object using a source file, you can specify the name of the source file on the create command.
For example, to create a control language program, you use the Create Control Language Program (CRTCLPGM) command. A create command specifies through a SRCFILE parameter where the source is stored.
The create commands are designed so that you do not have to specify source file name and member name if you follow this procedure:
CRTCLPGM PGM(PGMA)
The system would expect the source for PGMA to be in the PGMA member in the QCLSRC source file. The library containing the QCLSRC file would be determined by the library list.
CRTPF FILE (QGPL/DSTREF) SRCFILE(QGPL/FRSOURCE)