Tags:
create new tag
view all tags

.ENV GET CMD LINE PARM

This subroutine returns the value of a command line parameter.


Usage:

      PASS         <param_value>              FIELD            SHARE? Y
      PASS         <param_name>               FIELD            SHARE? N
      GOSUB    --- .ENV GET CMD LINE PARM
      *        Check for errors
      IF       --- .ENV GET CMD LINE PARM     NE

Description:

This subroutine returns the value of a command line parameter. All parameters are required, if any are missing the subroutine will CANCEL.

<param_value> returns the value of the command line parameter, if it was specified on the command line that started this Appx session (Required). This must be PASSed with Share "Y" to return the value.

<param_name> is the name of the command line parameter for which you want the value (Required). Note that this must include the leading dash, if one was specified. For example, if "-data=012512" was entered on the command line that started this Appx session, then you would pass "-data" to this subroutine.

If the field you passed is too short to contain the data, --- .ENV GET CMD LINE PARM will be set to "Data was truncated".

Comments:

Read what other users have said about this page or add your own comments.


-- JeanNeron - 2012-01-25

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-02-10 - JeanNeron
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback