Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Control Language
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Commands and programs== [[Parameter (computer science)|Parameters]] ([[command-line argument]]s) defined in the main procedures of all traditional System/38 and AS/400 programs are hard-coded lists that are made up of parameters that can be numeric, alphanumeric, Boolean, etc. and the order in which parameters are passed is important. This is a stark difference from the [[Unix]] and [[DOS]] worlds where the parameter list in Unix shell scripts and [[C (programming language)|C programs]] is a set or array of character pointers and more often than not the parameters are not positionally dependent. The developer's solution to this problem was the command object (*CMD). While the parameters on the command can be specified in any order, each parameter is defined to be passed in a specific order to the program. The programmer can also define, among other things, the parameter's [[data type]], unique parameter name, descriptive text (for prompting), default value (used only if the parameter isn't specified during execution), if the values are restricted to a certain set or range if the data entered should be changed to another value before calling the program, etc. At its most basic a command names a single program to call when the user types or prompts the command and presses the Enter key. The command takes all of the parameters typed by the user, and those not typed by the user, and builds a parameter list that it passes to the program when it's called.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)