- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Screen Management (SMG$)
Operating System - OpenVMS
1748015
Members
4912
Online
108757
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
10-11-2007 12:10 AM
10-11-2007 12:10 AM
Re: Screen Management (SMG$)
There are some alternatives to using SMG$*MENU* and we will use one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 01:12 AM
10-11-2007 01:12 AM
Re: Screen Management (SMG$)
Gents;
Far be it for me to argue with the depth of experince displayed here, but, what the hell :-) (watch the wrapping)
This is the 'standard' call I used to build the SMG CREATE MENU call:
; Menu
M_DCS: .WORD 14 ; size of element
.BYTE DSC$K_DTYPE_T
.BYTE DSC$K_CLASS_A
MADDR: .LONG 0 ; Pointer to item list
.WORD 0 ; DIGITS, SCALE
.BYTE DSC$K_DTYPE_T ; AFLAGS
.BYTE DSC$K_CLASS_S ; DIMCT
; .LONG ^X01E00000 ;DIMCT,AFLAGS,DIGITS,SCALE
DMSIZE: .LONG 0 ; Size of array
.LONG 20
.LONG 1 ;
.LONG 20
.LONG 1 ;
And here is a snippet calculating the values: (R11 is counting the items)
MULL #128,R11
MOVW #128,M_DCS ; Item size
MOVL MENADDR,MADDR
MOVL R11,DMSIZE
Translation: The total size of the menu choices is passed in DMSIZE, a .long and appears to be the architectural limit. The program this is chopped out of has a hardcoded value of 2000 (vax) pages allocated to this and filled before the call. It worked with (almost) 1M characters. This would have been in V6.2 days probably.
Not trying to be pedantic or even 'my call is bigger than yours' but if you are looking to solve the problem, it does not look like it is in SMG to me.
Happy to be educated though ....
Regards
Paul
Far be it for me to argue with the depth of experince displayed here, but, what the hell :-) (watch the wrapping)
This is the 'standard' call I used to build the SMG CREATE MENU call:
; Menu
M_DCS: .WORD 14 ; size of element
.BYTE DSC$K_DTYPE_T
.BYTE DSC$K_CLASS_A
MADDR: .LONG 0 ; Pointer to item list
.WORD 0 ; DIGITS, SCALE
.BYTE DSC$K_DTYPE_T ; AFLAGS
.BYTE DSC$K_CLASS_S ; DIMCT
; .LONG ^X01E00000 ;DIMCT,AFLAGS,DIGITS,SCALE
DMSIZE: .LONG 0 ; Size of array
.LONG 20
.LONG 1 ;
.LONG 20
.LONG 1 ;
And here is a snippet calculating the values: (R11 is counting the items)
MULL #128,R11
MOVW #128,M_DCS ; Item size
MOVL MENADDR,MADDR
MOVL R11,DMSIZE
Translation: The total size of the menu choices is passed in DMSIZE, a .long and appears to be the architectural limit. The program this is chopped out of has a hardcoded value of 2000 (vax) pages allocated to this and filled before the call. It worked with (almost) 1M characters. This would have been in V6.2 days probably.
Not trying to be pedantic or even 'my call is bigger than yours' but if you are looking to solve the problem, it does not look like it is in SMG to me.
Happy to be educated though ....
Regards
Paul
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP