Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, can anyone provide me list of functions available , with example.
as i am new learner, so example will help me alot.
eg:
f$search(), F$USER().. etc
please do needful as it will help all new learner.
Thanks.

Use HELP;
Those f$... functions are called DCL "lexical" functions, and You will get a list, and uusually examples for each of the functions withHELP LEXICAL
Joseph Huber, http://www.huber-joseph.de
ITRC

Or if it's more convenient, refer to the online OpenVMS documentation at http://h71000.www7.hp.com/doc/os83_index.html There you'll find the DCL dictionary which provides full details for all lexical functions. New functions are added from time to time, so be sure to choose the version of the manual that corresponds to the version of OpenVMS which you're running.

$ SET TERMINAL/DEVICE_TYPE=xxxxx
Where xxxxx is the type of device (e.g. VT200)
If you're using a known terminal type (or a good emulator), then the SET TERMINAL/INQUIRE command should automatically set the terminal type.
For more details, see that same manual (DCL Dictionary).

You can set the terminal type only for permanently existing terminal lines like TTA0 or TXa0:
set terminal TTA0:/devive=VT100/permanent
in e.g. systartup_vms.comDepending on the type of login and/or network stack, the terminal devices are dynamically created like RTAx:,FTAx:, or TNAx:
You can't and should not set the type, since You never know what the remote terminal (or emulation) really is.
What You could do is to set the terminal type in sylogin.
Look into sys$manager:sylogin.template how to determine terminal type in interactive mode.
Only if You/Your users frequently login from misbehaving terminal emulators set the sevice typ fixed to e.g. VT100 if mode is interactive.
And be aware of doing anything on TT: if the login is for a DECWindows process:doing a terminal/inquire fror those will make DECWindows start fail!Look into
http://wwwvms.mppmu.mpg.de/vms$comm...how I do it.
(on my system it is not in sylogin.com, but in every users login.com, created in the user account creation).Joseph Huber, http://www.huber-joseph.de
ITRC

I didn't notice the previous reply as it was after the "ads" and I can't seem to delete this, so feel free to ignore...
Then you'll want to take a look at SYLOGIN.COM as a place to put the command. However, be aware that this procedure is run by virtually ALL processes when they are created, including batch jobs and network processes. Many of these processes will not have a "terminal" attached to them. Your SYLOGIN.COM probably already has logic in place to execute different code based on the type of process.

Finally, if the device type is still "unknown" after trying /inquire, You could do:
if f$edit(f$getdvi("TT:","DEVICE_TYPE_NAME"),"UPCASE") .eqs."UNKNOWN" then set terminal TT:/device=VT100Joseph Huber, http://www.huber-joseph.de
ITRC

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |