Skip to main content

Set and test COBOL programmable switches at program 'run' from NX command prompt

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Net Express 4.0:

SWITCH-0, SWITCH-1, SWITCH-2,..,SWITCH-8  are coded in the SPECIAL-NAMES paragraph of the CONFIGURATION SECTION of a COBOL program. The program tests to see which switches are ON and behaves accordingly.

The program is built as an .int or .gnt. How would you set there statuses from the Net Express command prompt, so that they are passed as parameters when the program is 'run'?

Resolution:

The status of the switches are set and passed to the program, at the time of program execution from the command prompt, with the following command:

run ( 0 1 2) Program

This sets the programmable switches SWITCH-0, SWITCH-1 and SWITCH-2 to ON and passes these settings to the program "Program", built as an .int or .gnt.

Old KB# 5737

0 replies

Be the first to reply!