HP 3000 Manuals

Running RPGINIT [ HP RPG/XL Utilities-Part 4 RPGINIT ] MPE/iX 5.0 Documentation


HP RPG/XL Utilities-Part 4 RPGINIT

Running RPGINIT 

To create and initialize the files LDAFILE and RPGUDATE, run RPGINIT with
the command

           RUN RPGINIT.PUB.SYS [;PARM=n] [,QUIET]

where n can be a value of 1 through 32.  The PARM value n represents a
multiple of 256, as shown in the the table below:

---------------------------------------------------------------------------------------------
|                         |                                                                 |
|      Value of PARM      |                             Action                              |
|                         |                                                                 |
---------------------------------------------------------------------------------------------
|                         |                                                                 |
|            1            | Creates the LDAFILE with 256 bytes.                             |
|                         |                                                                 |
|            2            | Creates the LDAFILE with 512 bytes.                             |
|                         |                                                                 |
|            3            | Creates the LDAFILE with 768 bytes.                             |
|                         |                                                                 |
|            .            | .                                                               |
|                         |                                                                 |
|            .            | .                                                               |
|                         |                                                                 |
|           32            | Creates the LDAFILE with 8192 bytes.                            |
|                         |                                                                 |
---------------------------------------------------------------------------------------------

If a value for PARM is not specified or is less than 1, the value for
PARM defaults to 2 (a 512-byte LDAFILE). If the value for PARM is greater
than 32, the value defaults to 32 (an 8192-byte LDAFILE).

For example, to create and initialize an RPGUDATE file and a 512 byte
Local Data Area, use the following commands before accessing the LDA
file:

     RUN RPGINIT.PUB.SYS;PARM=2

or

     RUN RPGINIT.PUB.SYS

For a 256-byte Local Data Area, use the following command:

     RUN RPGINIT.PUB.SYS; PARM=1

The QUIET option allows you to suppress the display of informational
messages when using RPGINIT to create and initialize LDAFILE and
RPGUDATE. This can be useful when running RPGINIT from a User Defined
Command (UDC) as shown in the example below.

In most applications you can include the RPGINIT command in a logon User
Defined Command, as shown in the following UDC file:

     SETUP
     OPTION LOGON
     RUN RPGINIT.PUB.SYS, QUIET
     :
     <other commands for setting up>



MPE/iX 5.0 Documentation