mustish1
asked on
Physical File
ASKER
i got an error.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You.
Theo brings up a good point: SQL is a much better way to create a physical file than DDS. DDS is a lagacy tool, and doesn't support all the reatures supported by SQL-defined physical files.
You can create physical files (which are the same thing as DB2 tables in IBM i) using the IBM i Navigator "Run SQL" interface. Then you just use a DB2 SQL "CREATE TABLE" statement - a much more familiar interface for a lot of programmers from other platforms than IBM i DDS.
You can create physical files (which are the same thing as DB2 tables in IBM i) using the IBM i Navigator "Run SQL" interface. Then you just use a DB2 SQL "CREATE TABLE" statement - a much more familiar interface for a lot of programmers from other platforms than IBM i DDS.
2) Compile the file using CRTPF command.
You can also create a "flat file" without DDS source and only one field the same length as the record by just specifying a record length.
IBM provides comprehensive documentation: https://www.ibm.com/docs/en/i/7.2?topic=programming-setting-up-database-files