Getting Started with TRANSACT (32247-90007)
78 Chapter4
Using KSAM and MPE
Using MPE Files
Using MPE Files
Adding Records
Adding a record to an MPE file uses the same verb and syntax as does adding a record to
an IMAGE dataset or a KSAM file. We have the option of using LIST with DATA or just
using PROMPT alone.
Figure 4-5. Program to Add Data to an MPE File
1 The FILE= option names the MPE file we are going to access. The default
access is READ. UPDATE provides the most complete update capability to
files.
Figure 4-6. Figure 4-6. Adding Data to an MPE File
1 system ex34,file=batchinv(update);
2 list(auto) batchinv;
3 level;
4 data part-number:
5 location:
6 quantity;
7 put batchinv;
PART-NUMBER> p101
LOCATION> bin1
INV-QUANTITY> 100
PART-NUMBER> p102
LOCATION> bin2
INV-QUANTITY> 105
PART-NUMBER> ]