Command to Create Physical Files in IBMi

Command to Create Physical Files in IBMi

 

In IBMi, the command to create Physical files as specified in the information or DDS (Data Description Specifications) that are contained in the source file is;

CRTPF

 

CRTPF” is short for “Create Physical File“!

Assuming that you wanna create the file ‘STDMAST‘ in the library ‘BCA1L00‘, the correct command should be;

CRTPF FILE(BCA1L00/STDMAST) RCDLEN(100) MAXMBRS(*NOMAX)

If you decide to create the file ‘STDMAST‘ in the library ‘ABC00‘, the correct command is;

CRTPF FILE(ABC00/STDMAST) RCDLEN(100) MAXMBRS(*NOMAX)

 

In both commands above, the only difference is the Library you create the ‘STDMAST‘ file in!

 

Command to Create Physical Files in IBMi
IBMi | thetqweb