- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: passing parameters to dcl procedures run as de...
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
Discussions
Discussions
Forums
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
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
тАО08-13-2005 05:19 PM
тАО08-13-2005 05:19 PM
passing parameters to dcl procedures run as detached processes
When I create an empty command file and execute it I see that P1-P8 are defined.
This is how I am starting the procedure.
$ RUN SYS$SYSTEM:LOGINOUT.EXE -
/AUTHORIZE -
/DETACHED -
/INPUT=TESTDETACH.COM -
/PROCESS_NAME="TESTDETACH" -
/on=DEV2 -
/PRIOR=4 -
/OUTPUT=TESTDETACH.LOG -
/ERROR=TESTDETACH.ERR -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2005 07:11 PM
тАО08-13-2005 07:11 PM
Re: passing parameters to dcl procedures run as detached processes
no, this is not possible. There is special handling for parameters P1 to P8 and BATCH$RESTART in LOGINOUT and the CLI for BATCH processes only.
As another method to pass parameters to detached processes, you could use logical names (with DEFINE/CLUSTER if you want them to be available clusterwide as indicated by /on=DEV2 in your example).
Or you could write a temporary input file containing the parameters and the invocation of @TESTDETACH.COM p1 ... p8 and use this file as the /INPUT=... file.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2005 07:25 PM
тАО08-13-2005 07:25 PM
Re: passing parameters to dcl procedures run as detached processes
I don't think define/cluster works until VMS 8.2 or 8.3 we are using 7.3-2 so I need to do define/table=lnm$syscluster....
Thanks for the info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 02:26 PM
тАО08-14-2005 02:26 PM
Re: passing parameters to dcl procedures run as detached processes
Q
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 02:16 AM
тАО08-15-2005 02:16 AM
Re: passing parameters to dcl procedures run as detached processes
$RUN PROGRAM.EXE
PARAMTER1-VALUE
PARAMETER2-VALUE
.
.
.
PARAMETERN-VALUE
$ rest of the .com file after this
Then the PROGRAM.EXE would simply use a read from the default input channel to get the values.
This is not the ideal way though. Logical names are best for passing small amounts of data between programs (1 - 256 bytes), Mailboxes are best for larger amounts of data (256-2048 bytes depending on your SYSGEN DEFMBXBUFQUO parameter value) and files are best for large blocks of data (>2048 bytes or the value of the SYSGEN DEFMBXBUFQUO value). Depending on the amount of data that you need to send in the p1-p8 type of parameter you should choose which method to use.
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:43 PM
тАО08-15-2005 01:43 PM
Re: passing parameters to dcl procedures run as detached processes
As others have explained, there is no direct mechanism for passing parameters into a command procedure executing in a detached process, but it's a very simple matter to create a jacket procedure to do it and then delete itself. Extending your example:
$ OPEN/WRITE jack JACKET.COM
$ WRITE jack "$ @TESTDETACH ""''p1'"" ""''p2'"" etc.."
$ WRITE jack "$ DELETE 'F$ENVIRONMENT(""PROCEDURE"")'"
$ CLOSE jack
$
$ RUN SYS$SYSTEM:LOGINOUT.EXE -
/AUTHORIZE -
/DETACHED -
/INPUT=JACKET.COM -
/PROCESS_NAME="TESTDETACH" -
/on=DEV2 -
/PRIOR=4 -
/OUTPUT=TESTDETACH.LOG -
/ERROR=TESTDETACH.ERR -
...