Before creating a source file, you should first
create a library. Then use the Create Source Physical File (CRTSRCPF), Create
Physical File (CRTPF), or Create Logical File (CRTLF) command to create a
source file.
- Create Source Physical File (CRTSRCPF) command
Normally, you use the
CRTSRCPF command to create a source file, because many of the parameters default
to values that you usually want for a source file.
- Create Physical File (CRTPF), or Create Logical File (CRTLF) command
If
you want to create a source file and define the record format and fields using
data description specifications (DDS), use the Create Physical File (CRTPF)
or Create Logical File (CRTLF) command.
As an alternative to creating a source file, you can use source
files supplied with the i5/OS and other licensed programs.