- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- dcl coding error
Operating System - OpenVMS
1752337
Members
5674
Online
108787
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
тАО10-14-2008 03:19 PM
тАО10-14-2008 03:19 PM
dcl coding error
i have just recently started working with vms. i have written a dcl program but it given a error, can someone please help me here.
$ SET PROC/PRIV=ALL
$ SET NOON
$ GET_NAME:
$!
$ INQUIRE NAME "Enter Username Or Exit =>"
$ IF NAME .EQS. "EXIT" THEN GOTO END_LOOP
$!
$ MC AUTHORIZE
$ MODIFY/FLAGS=DISPWDHIS 'NAME'
$ MODIFY/FLAGS=DISPWDDIC 'NAME'
$!
$ GOTO GET_NAME
$!
$ END_LOOP:
$ WRITE SYS$OUTPUT "WELL DONE"
$ EXIT
I cant seem to change the flag
$ SET PROC/PRIV=ALL
$ SET NOON
$ GET_NAME:
$!
$ INQUIRE NAME "Enter Username Or Exit =>"
$ IF NAME .EQS. "EXIT" THEN GOTO END_LOOP
$!
$ MC AUTHORIZE
$ MODIFY/FLAGS=DISPWDHIS 'NAME'
$ MODIFY/FLAGS=DISPWDDIC 'NAME'
$!
$ GOTO GET_NAME
$!
$ END_LOOP:
$ WRITE SYS$OUTPUT "WELL DONE"
$ EXIT
I cant seem to change the flag
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2008 03:51 PM
тАО10-14-2008 03:51 PM
Re: dcl coding error
> $ SET PROC/PRIV=ALL
> $ INQUIRE [...]
Not a good combination:
http://h71000.www7.hp.com/wizard/wiz_2216.html
Using READ on SYS$COMMAND is safer.
> $ MC AUTHORIZE
> $ MODIFY/FLAGS=DISPWDHIS 'NAME'
> $ MODIFY/FLAGS=DISPWDDIC 'NAME'
I'd expect some error messages here, which
you ought to have included.
"$ MODIFY" is treated as a separate command.
Remove the "$" to let AUTHORIZE read it.
But that won't work as you wish, because DCL
will not substitute 'NAME' that way.
You could say things like:
$ MCR AUTHORIZE MODIFY/FLAGS=DISPWDHIS 'NAME'
DCL will substitute 'NAME' that way.
Many other things are possible, too, like
writing a temporary file with the "MCR
AUTHORIZE" command and the actual AUTHORIZE
commands (like MODIFY) in it.
> $ INQUIRE [...]
Not a good combination:
http://h71000.www7.hp.com/wizard/wiz_2216.html
Using READ on SYS$COMMAND is safer.
> $ MC AUTHORIZE
> $ MODIFY/FLAGS=DISPWDHIS 'NAME'
> $ MODIFY/FLAGS=DISPWDDIC 'NAME'
I'd expect some error messages here, which
you ought to have included.
"$ MODIFY" is treated as a separate command.
Remove the "$" to let AUTHORIZE read it.
But that won't work as you wish, because DCL
will not substitute 'NAME' that way.
You could say things like:
$ MCR AUTHORIZE MODIFY/FLAGS=DISPWDHIS 'NAME'
DCL will substitute 'NAME' that way.
Many other things are possible, too, like
writing a temporary file with the "MCR
AUTHORIZE" command and the actual AUTHORIZE
commands (like MODIFY) in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2008 04:07 PM
тАО10-14-2008 04:07 PM
Re: dcl coding error
thanks man, it worked out. thanks once again. this forum is good
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2008 05:27 PM
тАО10-14-2008 05:27 PM
Re: dcl coding error
So give some HP 'points'.
He loves to hate them. :-)
And consider 'closing the topic'.
btw... OpenVMS users don't do exit/bye/quit.
And they most certainly can not be bothered with uppercase/lowercase.
They just hit ^Z (control-Z) or
So at least change to:
$ IF NAME.EQS."" .OR. F$EDIT(NAME,"UPCASE").EQS."EXIT"....
Be sure check out READ/END and ON ERROR
Add don;t just SET PROC/PRIV without restting.
Check ot $HELP LEXI F$SETPRV return_value
Other then that it is just fine... :-)
Cheers,
Hein
( 0 points for this! )
He loves to hate them. :-)
And consider 'closing the topic'.
btw... OpenVMS users don't do exit/bye/quit.
And they most certainly can not be bothered with uppercase/lowercase.
They just hit ^Z (control-Z) or
So at least change to:
$ IF NAME.EQS."" .OR. F$EDIT(NAME,"UPCASE").EQS."EXIT"....
Be sure check out READ/END and ON ERROR
Add don;t just SET PROC/PRIV without restting.
Check ot $HELP LEXI F$SETPRV return_value
Other then that it is just fine... :-)
Cheers,
Hein
( 0 points for this! )
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