- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Perl and awk result to a symbol/logical?
Operating System - OpenVMS
1753370
Members
4936
Online
108792
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
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-18-2010 01:38 AM
тАО02-18-2010 01:38 AM
Re: Perl and awk result to a symbol/logical?
>>>And since the job logical table space is rather small, one should take care to deassign the logical after use!
So
$ mysymb = f$trnlnm("mylogical","lnm$job")
$ deas/job mylogical
So
$ mysymb = f$trnlnm("mylogical","lnm$job")
$ deas/job mylogical
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 02:45 AM
тАО02-18-2010 02:45 AM
Re: Perl and awk result to a symbol/logical?
One addition:
when using the perl $ENV{myvalue} method, don't blindly expect to have the logical MYVALUE defined, it could well be a global DCL symbol (or nothing at all if perl defined a local DCL symbol).
To make sure perl creates the right entity independent of the installation or system setup:
$ define/user PERL_ENV_TABLES CLISYM_GLOBAL
or
$ define/user PERL_ENV_TABLES LNM$FILE_DEV
before invoking perl.
Then $ENV() generates DCL symbols resp. logical names.
when using the perl $ENV{myvalue} method, don't blindly expect to have the logical MYVALUE defined, it could well be a global DCL symbol (or nothing at all if perl defined a local DCL symbol).
To make sure perl creates the right entity independent of the installation or system setup:
$ define/user PERL_ENV_TABLES CLISYM_GLOBAL
or
$ define/user PERL_ENV_TABLES LNM$FILE_DEV
before invoking perl.
Then $ENV() generates DCL symbols resp. logical names.
http://www.mpp.mpg.de/~huber
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 02:54 AM
тАО02-18-2010 02:54 AM
Re: Perl and awk result to a symbol/logical?
and for results needed only inside a DCL procedure, a local symbol is appropriate:
define/user PERL_ENV_TABLES CLISYM_LOCAL
perl -e "$ENV{result} = sprintf(""testing result"")"
sh sym result
RESULT = "testing result"
define/user PERL_ENV_TABLES CLISYM_LOCAL
perl -e "$ENV{result} = sprintf(""testing result"")"
sh sym result
RESULT = "testing result"
http://www.mpp.mpg.de/~huber
- « 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