AS/400 Assignment-2A
Fill in the blanks:
1. Physical file can be compared as the in SQL.
2. Logical file can be compared as the in SQL.
3. DATA is stored in of a file.
4. Logical file can be created multiple record format file (Y /N)
5. keyword is used to relate a logical file to its physical file.
6. One path will be created when a logical file is created.
7. Key of logical file can be different to its physical file (T / F)
8. Command to create a Source physical file
9. Command to see all record formats of a file
10. Command to reuse the deleted record space of a file
11. For dynamic select/omit rather than access path select/omit command used
12. For Record format level check identifier needs to be *YES
13. What is the maximum number of fields that can be in a file?
AS/400 Assignment-2B
In the command line, type the command WRKMBRPDM and take F4. Specify the Source
Physical file parameter as QDDSSRC. Create the following source members and compile
them.
1. Create a Physical file (PF) with the following definition:
Filename: ITMMST (Item Master)
Key: Item Number is Unique
Item Number
- 5,0 Numeric
Item Description
- 30 Char
Item Price
- 5,0 Numeric
Bulk Item (Y/N)
- 1 Char
2. Create a logical file (LF) on ITMMST which is keyed on Item number with selection
criteria Bulk Item = Y.
Filename: ITMMSTL1
3. Create a Physical File(PF) with the following definition:
Filename: SUPMST (Supplier Master)
Key: Supplier number is Unique
Supplier Number
- 6,0 Numeric
Supplier Name
- 30 Char
Supplier Address1
- 50 Char
Supplier Address2
- 50 Char
Zip Code
- 6,0 Numeric
Item Supplied
- 5,0 Numeric
4. Create a Join Logical File(LF) with the following definition:
Filename: SUPINFO (Supplier Information)
Supplier Number
- 6,0 Numeric
Supplier Name
- 30 Char
Item Supplied
- 5,0 Numeric
Item Description
- 30 Char
Item Price
- 5,0 Numeric
Bulk Item (Y/N)
- 1 Char
5. Create data in the above two PFs using UPDDTA command
6. Use RUNQRY command and SQL statements to view the data in ITMMSTL1 and
SUPINFO.