Skip to main content

Obtaining command line parameters via a linkage section declaration

  • May 15, 2014
  • 1 reply
  • 0 views

Hi all

I cannot get the runtime tunable command_line_linkage to work.  There is warning in the documentation that this works only for executables.  Does this mean this tunable will not work for program compiled to GNT or INT?

I am using NetExpress 5.1 with MTO

regards
Rico

1 reply

Chris Glazier
Forum|alt.badge.img+2

Hi all

I cannot get the runtime tunable command_line_linkage to work.  There is warning in the documentation that this works only for executables.  Does this mean this tunable will not work for program compiled to GNT or INT?

I am using NetExpress 5.1 with MTO

regards
Rico

Yes, the linkage section method works only in a linked .EXE program.

To read the command line from any type of program use the following instead which does not require the run-time tunable to be set:

01 CommandLine     pic x(256).            

    accept CommandLine from command-line