Download Print this page

HP 3000 Manual page 163

Mpe/ix computer systems, rpg/xl utilities
Hide thumbs Also See for 3000:

Advertisement

In the first example, the FILE command is used to create a new KSAM file named SIMCAL2. A message is
returned asking for the maximum number of records to be included in the new file. The number given is 5
(1). This is an example of Case 1 (see above).
The ADD command is entered, and an attempt to add the 6th record is nullified. The error message gives
the reason and recommends using the XPAND command to increase file size (2). When XPAND is entered
without the number of records to expand the file by, another error message appears (3).
The XPAND command is again tried, this time with the maximum number of records specified
alphabetically rather than numerically. This generates another error message (4).
When the XPAND command is properly entered, an execution message is displayed (5). The ADD that
follows is accepted by RISE, and lines are added before <Control Y> is applied to exit Add mode (6).
>FILE SIMCAL2
(1)
Creating new Ksam file, enter maximum number of records.
5
File opened.
>ADD
1
2
3
4
5
6
(2)
Error 147: No room in edit file, use XPAND.
(3) >XPAND
Error 137: Missing number of records to expand by.
(4)
>XPAND FIFTY
^
Error 138: Illegal numeric value.
(5) >XPAND 50
Xpand completed.
>ADD
5
6
7
8
(6) >EXIT
In the second example, which typifies Case 3 (above), SIMCAL exists but is not a KSAM file, and RISE
must convert it. A message in response to the FILE command asks for a new file name and a maximum
number of records (1). When the filename and record number are given, the file is opened (2). The
converted file is then listed (3).
:LINE 1
:LINE 2
:LINE 3
:LINE 4
:LINE 5
:LINE 6
:LINE 5
:LINE 6
:LINE 7
:<Control Y>
2- 165

Advertisement

loading