- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Wrong value returned by SYS$FAO
Operating System - OpenVMS
1755699
Members
3429
Online
108837
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
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
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
тАО02-07-2006 11:49 AM
тАО02-07-2006 11:49 AM
Re: Wrong value returned by SYS$FAO
Additional 2c...
The parameters to $FAO[L] are actually polymorphic. The type and mechanism depend on the corresponding directive in the control string. So there's no universally correct definition in any language for all possible combinations of directives and actual parameters. "ANY BY REF" is general enough to prevent most compilers from complaining, but you'll often need to override the mechanism with the language specific syntax, depending on the exact directive you're using.
The parameters to $FAO[L] are actually polymorphic. The type and mechanism depend on the corresponding directive in the control string. So there's no universally correct definition in any language for all possible combinations of directives and actual parameters. "ANY BY REF" is general enough to prevent most compilers from complaining, but you'll often need to override the mechanism with the language specific syntax, depending on the exact directive you're using.
A crucible of informative mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2006 08:40 PM
тАО02-07-2006 08:40 PM
Re: Wrong value returned by SYS$FAO
Noted, but the problem is that BASIC does not appear to offer the programmer any control on whether arguments are presented as 'by ref' or 'by value'.
When I tried specifying 'by value' in the service call I got compilation errors because the mode of the argument did not match the entry in the function.
While I feel this should be corrected, I wonder how many people it would affect. Who else but me is still writing code in BASIC...!
When I tried specifying 'by value' in the service call I got compilation errors because the mode of the argument did not match the entry in the function.
While I feel this should be corrected, I wonder how many people it would affect. Who else but me is still writing code in BASIC...!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 01:25 AM
тАО02-08-2006 01:25 AM
Re: Wrong value returned by SYS$FAO
Yep, still using DEC BASIC ;-)
The V1.6 definition is the same as V1.5.
As was said earlier it is probably quite unusual for a BASIC programmer to use SYS$FAO as PRINT USING and FORMAT$ are normally used for formatting output.
Also this is certainly not the first time that definitions in BASIC$STARLET have been incorrect. This is not a serious problem as HELP system_services $FAO, for example, shows the correct definition and it is not that onerous to type it in.
The V1.6 definition is the same as V1.5.
As was said earlier it is probably quite unusual for a BASIC programmer to use SYS$FAO as PRINT USING and FORMAT$ are normally used for formatting output.
Also this is certainly not the first time that definitions in BASIC$STARLET have been incorrect. This is not a serious problem as HELP system_services $FAO, for example, shows the correct definition and it is not that onerous to type it in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 02:22 AM
тАО02-08-2006 02:22 AM
Re: Wrong value returned by SYS$FAO
At least I am not alone... :-)
I cannot see how format$ can cut the mustard when it comes to converting a hexadecimal value into an ascii representation of the hex value.
i.e. hex 1F2E3D4C becomes ascii "1F2E3D4C"
Basic converts it to DECIMAL before formatting the numeric value into ascii.
For this task I do not know of anything other than one of the SYS$FAO family of services that has any chance of getting it right.
JT:
I cannot see how format$ can cut the mustard when it comes to converting a hexadecimal value into an ascii representation of the hex value.
i.e. hex 1F2E3D4C becomes ascii "1F2E3D4C"
Basic converts it to DECIMAL before formatting the numeric value into ascii.
For this task I do not know of anything other than one of the SYS$FAO family of services that has any chance of getting it right.
JT:
- « 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