Re: New "base document" available



Question remains .
How do I compatibitly retrieve command parameters.
eg. ACU does not know anything about ARGUMENT_xxx
(and presumably no mainframe variant)

Roger

"Rick Smith" <ricksmith@xxxxxxx> schrieb im Newsbeitrag
news:130qvifhagkpf04@xxxxxxxxxxxxxxxxxxxxx

"Roger While" <simrw@xxxxxxxxxxxx> wrote in message
news:eujplg$e11$02$1@xxxxxxxxxxxxxxxxxxxx
ARGUMENT-NAME/NUMBER are MF inventions.
Question remains.

It's ARGUMENT-NUMBER and ARGUMENT-VALUE
and these are the terms used in "X/Open CAE Specification
COBOL Language" (c) December 1991, X/Open Company
Limited. [This document is available in PDF from
< www.opengroup.org >; but requires registration.]

Page 166, "8.6 ACCESS TO COMMAND LINE
ARGUMENTS AND ENVIRONMENT VARIABLES
Function
The following formats of the ACCEPT statement retrieve
the number of arguments on the command line and the value
of a command line argument or an environment variable.
The following formats of the DISPLAY statement specify
the position of an argument within the command line, the
name of an environment variable and store a value in the
specified environment variable."

[Four pages of text (formats, rules, and examples)
not reproduced here.]

Micro Focus appears to deviate from the specification
by allowing the names to be used, directly, in ACCEPT
and DISPLAY statements, rather than only in the
SPECIAL-NAMES paragraph.





.



Relevant Pages

  • Re: A more structured approach
    ... I still find Gas fairly cryptic, but I haven't spent much time with it. ... If we started with no command line parameters, this would point at an environment variable, If we started with one or more command line parameters, this might point to one of them, or to the zero that separates command line args from environment variables. ... I suspect what you tried that *didn't* work was a memory to memory compare "cmpb, ...
    (alt.lang.asm)
  • Re: New "base document" available
    ... and these are the terms used in "X/Open CAE Specification ... "8.6 ACCESS TO COMMAND LINE ... ARGUMENTS AND ENVIRONMENT VARIABLES ... The following formats of the DISPLAY statement specify ...
    (comp.lang.cobol)
  • Re: Failed running .bat file from WinXP Explorer
    ... If you use>> anything to the right will be echoed in the command prompt. ... typed in a Command or Run window. ... What does PATHEXT show? ... System environment variables are in the following Registry key: ...
    (microsoft.public.windowsxp.general)
  • Re: What does %WinDir% mean?
    ... Perhaps there really is no WINDIR variable, and it's just a convention to ... Panel, Advanced tab, Environment Variables button). ... In a command shell, when you run the following command: ... Are you still in the command console after the command ends? ...
    (microsoft.public.windowsxp.general)
  • Re: question about setenv
    ... an external command. ... There do exist programs which set environment variables with the help ... Being an external command, ... setenv isn't a standard command that would be found in /bin or /usr/bin ...
    (comp.unix.shell)