1752569 Members
4803 Online
108788 Solutions
New Discussion юеВ

Re: Define command

 
pkg
Occasional Contributor

Define command

Hello,
I am new in VMS. Please can any one explain the meaning of-:
define/group cpi$status "OK"

What define/group command do and cpi$status is variable or any thing.
4 REPLIES 4
Joseph Huber_1
Honored Contributor

Re: Define command

First of all, better read a tutorial for VMS beginners (see pointers at www.openvms.org) and the general DCL manual at the VMS documentation site (see at the bottom of the ITRC page), or even the wikipedia article as a start ( http://en.wikipedia.org/wiki/Files-11#Logical_names ).

The DEFINE command defines a logical name.
The /GROUP qualifier defines the logical name in the group name table, i.e. the name is visible to the owners UIC group only.

cpi$status is the logical name itself; since it contains a "$" in the name it seems to belong to some system-registered facility or subsystem.

The value of the logical name is "OK": any user/dcl procedure/program can look up (translate) the logical name by means of;
SHOW LOGICAL/GROUP cpi$status
f$trnlnm("cpi$status","LNM$GROUP")
$TRNLNM system service call
http://www.mpp.mpg.de/~huber
Kris Clippeleyr
Honored Contributor

Re: Define command

Hi,
Welcome.

Please start with the fine VMS manuals.
Specifically the "OpenVMS User's Manual" at
http://h71000.www7.hp.com/doc/731final/6489/6489pro.html

And to answer on topic.
The "define" command creates a logical name (in your example the name "cpi$status" in the group table, representing the equivalence name "OK").

Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Steven Schweda
Honored Contributor

Re: Define command

For the short version:

HELP DEFINE
Andy Bustamante
Honored Contributor

Re: Define command

See http://h71000.www7.hp.com/doc/83final/9996/9996pro_46.html#purple_1 for documentation on the DEFINE command. This will lead to more questions (user group system?)

For access to the complete OpenVMS Documentation set see
http://h71000.www7.hp.com/doc/os83_index.html. It appears you're trying to review command file (script if you're a unix type). The DCL Dictionary should will prove handy. The User's Guide already mentioned provides a good starting point. The command HELP provides access to excellent documenation as well. Try HELP DEFINE, HELP HELP and HELP HINTS.



If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net