Skip to main content

Problem:

This program demonstrates how to use the UPSI external switches and the accept parameters with Net Express.

Resolution:

INTRODUCTION

==========

This program demonstrates how to use the UPSI external switches and the accept parameters with Net Express.

SOURCE FILES:

==========

Program Files          Description

--------------------     -----------------------------------------------------------

PARMPASS.APP      Application to build the PROGRAM1.EXE

PROGRAM1.CBL     Source program for PROGRAM1.EXE

PARMBASS.BAT      BAT file to be loaded into DEBUG directory where the EXE is loaded or

                                recreated via the application.

REQUIREMENTS:

==========

Net Express runtime either via Net Express Command prompt or licensed application server.

OPERATION:

========

The application is built using Net Express Service pack 1. You may rebuild it using your version of Net Express. The PARMPASS.BAT shows the format for setting the UPSI switches with the parameters being passed to the program. The UPSI switches can also be set by the COBSW; SET COBSW= 2-0; will set UPSI-2 on  and UPSI-0 off.

The run-time system looks at the parameters following the program for parenthesis and if they include or - with a number from 0 to 7 the correct UPSI switch will be set. To pass a parameter you must leave a space after the parenthesis and enter your parameter.

program_name ( 0-2) D

The above command will set UPSI-0 to on and UPSI-2 to off and pass D to the program when the ACCEPT User_field from COMMAND-LINE is  executed within the program.

==========================================================

Keywords: demonstration, sample, example, demo, UPSIparmpass.zip

demo.ex

demo.ne

Attachments:

UPSIParmpass.zip

Old KB# 4029