Creating a source file
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.
- Creating a source file using the Create Source Physical File (CRTSRCPF) command
You can create a source file using the default values of the Create Source Physical File (CRTSRCPF) command.
- Creating a source file with DDS
If you want to create a source file with data description specifications (DDS), use the Create Physical File (CRTPF) or Create Logical File (CRTLF) command.
- Creating a source file without DDS
When you create a source physical file without using DDS, but by specifying the record length (RCDLEN parameter) on the Create Source Physical File (CRTSRCPF) command, the source created contains three fields: SRCSEQ, SRCDAT, and SRCDTA.
- IBM-supplied source files
For your convenience, the i5/OS licensed program and other licensed programs provide a database source file for each type of source.
- Source file attributes
Here are the attributes common to most source files and the restrictions on using these attributes.
Parent topic:
Setting up source files
Related concepts
Creating a library
Related reference
Create Physical File (CRTPF) command
Create Logical File (CRTLF) command