- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- set term/inq in sylogin.com - feature or bug?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 10:29 AM
03-09-2005 10:29 AM
Maybe this is a bit trivial, but could there be a bug in sylogin.com of 7.3-1.
I was wondering why I would always have to do a $set term/inq manually in order to get e.g. edit/tpu working. The command should be in sylogin.com, but somehow doesn't seem to apply.
After some debugging of sylogin.com (results below) I came to the following:
The line:
$ IF F$LOCATE("|''TT_DEVPREFIX'|",TT_NOINQUIR) .eq. F$Length(TT_NOINQUIR)
should probably read
$ IF F$LOCATE("|''TT_DEVPREFIX'|",TT_NOINQUIR) .NE. F$Length(TT_NOINQUIR)
A few more questions:
Sylogin.com states that
$! In SYSTARTUP_VMS.COM, add the following line:
$! $ DEFINE/EXECUTIVE/SYSTEM SYS$SYLOGIN SYS$STARTUP:SYLOGIN
$! This will cause SYLOGIN.COM to be executed for all DCL logins
To me it seems that sylogin.com is always executed, even if I don't have
$ sho sym sys$sylogin
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
some results:
$ TT_DEVNAME = F$GETDVI("TT","TT_PHYDEVNAM")
$ sho sym tt_devname
TT_DEVNAME = "_TNA5:"
$ TT_DEVPREFIX = F$EXTRACT(1,2,TT_DEVNAME)
$ sho sym tt_devprefix
TT_DEVPREFIX = "TN"
$ write sys$output F$GETDVI("TT","DEVCLASS")
66
$ tt_page = f$getdvi("TT","TT_PAGE")
$ sho sym tt_page
TT_PAGE = 24 Hex = 00000018 Octal = 00000000030
$ devbufsiz = f$getdvi("TT","DEVBUFSIZ")
$ sho sym devbufsiz
DEVBUFSIZ = 80 Hex = 00000050 Octal = 00000000120
$ SET TERMINAL/INQUIRE/PAGE='tt_page'/WIDTH='devbufsiz'
$
$ write sys$output F$LOCATE("|''TT_DEVPREFIX'|",TT_NOINQUIR)
21
$ write sys$output F$Length(TT_NOINQUIR)
25
$ write sys$output F$LOCATE("|XX|",TT_NOINQUIR)
25
extract from sylogin.com:
$ IF F$LOCATE("|''TT_DEVPREFIX'|",TT_NOINQUIR) .eq. F$Length(TT_NOINQUIR)
$ THEN
$ ! Determine if this is a terminal
$ IF F$GETDVI("TT","DEVCLASS") .eq. 66
$ THEN
$ ! Determine what sort of terminal this is, and avoid resetting
$ ! the user's default display size settings in the process...
$ tt_page = f$getdvi("TT","TT_PAGE")
$ devbufsiz = f$getdvi("TT","DEVBUFSIZ")
$ SET TERMINAL/INQUIRE/PAGE='tt_page'/WIDTH='devbufsiz'
$ EndIf
$ EndIf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 05:12 PM
03-09-2005 05:12 PM
Solutionto me the line in SYLOGIN containing the F$LOCATE looks correct: the list specifies the devices, for which a /INQUIRE is not needed, if your device is not in this list (.eq.f$length),then a /INQUIRE must be performed.
The TN device is in this list, because TELNET from another VMS host sends the terminal characteristics so a /INQUIRE is not needed.
May be you should adapt this list to your needs.
mfg Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 05:13 PM
03-09-2005 05:13 PM
Re: set term/inq in sylogin.com - feature or bug?
> %DCL-W-UNDSYM, undefined symbol - check validity and spelling
You have confused a logical name with a symbol - use:
$ show logical sys$sylogin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 06:08 PM
03-09-2005 06:08 PM
Re: set term/inq in sylogin.com - feature or bug?
Btw : I always do set term/insert.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 06:19 PM
03-09-2005 06:19 PM
Re: set term/inq in sylogin.com - feature or bug?
$ DEFINE/EXECUTIVE/SYSTEM SYS$SYLOGIN SYS$STARTUP:SYLOGIN
and
To me it seems that sylogin.com is always executed, even if I don't have
Similar to so VMS file elements, SYS$SYLOGIN has a -- default -- file specification, in this case SYS$MANAGER:SYLOGIN.COM, but _IF_ the logical name is defined, _THEN_ that is executed.
There can be many reasons to specify an alternate location, eg, if the cluster for whatever reason has > 1 system disks.
PS. in my opinion it would have been more correct to also include the file TYPE ( .COM ) in the logical name.
At least that allows simply specifying SYS$SYLOGIN as the file to be SEARCHed, EDITted, PURGEd, or whatever.
In the default definition
$ @SYS$SYLOGIN
will work, because for "@" the default filetype is .COM, but for all other commands is is needed to evaluate the logical name and add ".COM" or use an F$PARSE construct.
I prefer to make things easy on myself whenever and whereever possible!
for an explanation of the parse mechanism:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=830390
hth.
Proost.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 06:21 PM
03-09-2005 06:21 PM
Re: set term/inq in sylogin.com - feature or bug?
Got differences in hangup, insert/overstrike.
It seems that the settings of tna0 are used as a template. But modifying them and do a show afterwards and it seems that the change is not remembered. Strange.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2005 09:08 PM
03-09-2005 09:08 PM
Re: set term/inq in sylogin.com - feature or bug?
Personally I remove TN from the noinquire list but it depends on your setup.
The logic is
IF the device name prefix is not in the list
THEN
IF the device is a terminal
THEN
do a inquire preserving the display size
F$LOCATE returns the length of its 2nd parameter if the first string paramter is not found.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2005 02:27 AM
03-10-2005 02:27 AM
Re: set term/inq in sylogin.com - feature or bug?
I was under the impression that a "set term/inq" should always be done if there was a DEVCLASS of 66 attached to one of the scanned DEVPREVIX's. But I understand now that it shouldn't be necessary. So it seems the problem is with the VT emulation client, which could be a settings problem.
Also the logic behind having a logical for sylogin.com is clear to me know.
Thanks for all your answers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 08:12 AM
04-25-2007 08:12 AM
Re: set term/inq in sylogin.com - feature or bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 08:44 AM
04-25-2007 08:44 AM
Re: set term/inq in sylogin.com - feature or bug?
If you don't like what you have happening or your particular sequence survives the inquire sequence, then certainly change the DCL of SYLOGIN -- that's kinda the point of SYLOGIN, after all. It's site specific.
This thread seems to continue over in http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1121667