- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: undefined symbol error while defining account ...
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
Forums
Discussions
Discussions
Discussions
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
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
02-02-2009 07:00 PM
02-02-2009 07:00 PM
undefined symbol error while defining account ownership.
For account profile management we've different team, he is trying to change the ownership of account as per management requirement.
Case1:When he tried to change ownership as
uaf>modify use1/owner="robert"
Case2:
uaf>modify use1/owner="+robert"
When he tried to change ownership same but including + sign, getting undefined sysmbol error
I'm managing this server and i'm able to do this both way successfully.My account having system privileges but security team user having only "NETMBX,SECURITY,SYSPRV and TMPMBX privileges.
Can you pl. sugget wht could be issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 07:20 PM
02-02-2009 07:20 PM
Re: undefined symbol error while defining account ownership.
In case 1: security team user able to changed the owenership.
In case 2:they are getting error UNDEFINED symbol.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 07:58 PM
02-02-2009 07:58 PM
Re: undefined symbol error while defining account ownership.
Could you please post the exact command(s) you're issuing and the exact error?
According to HELP:
MODIFY
/OWNER
/OWNER=owner-name
Specifies the name of the owner of the account. You can use this
name for billing purposes or similar applications. The owner name
is 1 to 31 characters. No default owner name exists.
I don't see any limitations on the character set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 09:44 PM
02-02-2009 09:44 PM
Re: undefined symbol error while defining account ownership.
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
 \RG9472robert\
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
 \RG9472robert\
%DCL-E-INVIFNEST, invalid IF-THEN-ELSE nesting structure or data inconsistency
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 09:57 PM
02-02-2009 09:57 PM
Re: undefined symbol error while defining account ownership.
It is no problem to set the owner to 'strange' characters, e.g.:
UAF> mod rohwedder/owner=")(/+*~'Ã Ã _:;+"
%UAF-I-MDFYMSG, user record(s) updated
regards kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 10:03 PM
02-02-2009 10:03 PM
Re: undefined symbol error while defining account ownership.
> you're issuing and the exact error?
> UAF>mod user2 /owner="+rg9472robert"
The "UAF>" prompt does not tell us how you
got the "UAF>" prompt.
> %DCL-W-UNDSYM, undefined symbol - check validity and spelling
Apparently you're running some (defective)
command procedure, but my psychic powers are
too weak to tell me much more than that.
Note that if you were running the (real)
AUTHORIZE utility, you wouldn't get a DCL
complaint. For example:
ALP $ mcr authorize
UAF> mod user2 /owner="+rg9472robert"
%UAF-W-BADSPC, no user matches specification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 10:45 PM
02-02-2009 10:45 PM
Re: undefined symbol error while defining account ownership.
---------------------------------------
$ if p1 .eqs. "A" then SYS_OPTION :== RUN_AUTHORIZATION ! Authorization
$RUN_AUTHORIZATION:
$ on warning then continue
$ ask "UAF>" action
$ action = f$edit("''action'","UPCASE")
$ IF (F$EDIT(action,"UPCASE,COLLAPSE") .eqs. "EXIT") .or. (F$EDIT(action,"UPCASE,COLLAPSE") .eqs. "EX") THEN GOTO select_sys_option
$!
$ IF (F$LOCATE( "/PA", "''action'") .ne. F$length("''action'")) .or. (F$LOCATE( "/G", "''action'") .ne. F$length("''action'"))
$ then
$ Say "*** Modifying PASSWORD is not permitted"
$ goto RUN_AUTHORIZATION
$ endif
$!
$ UAF 'action'
$ goto RUN_AUTHORIZATION
----------------------------------------
Above procedure will execute while security team wants to do some changes in UAF user parameter as per my understanding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 11:04 PM
02-02-2009 11:04 PM
Re: undefined symbol error while defining account ownership.
-------------------------------------------
$RUN_AUTHORIZATION:
$ on warning then continue
$ ask "UAF>" action
UAF>modify user2/owner="+robert"
$ action = f$edit("modify user2/owner="+robert"","UPCASE")
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
\robert\
---------------------------------
I thing if we set "action" string correctly then it will fix this issue.
$ask "UAF>" action
$ action = f$edit("''action'","UPCASE")
Pl.suggest how can i set action symbol correctly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 11:09 PM
02-02-2009 11:09 PM
Re: undefined symbol error while defining account ownership.
$ action = f$edit("modify user2/owner="+robert"","UPCASE")
should be /owner=""+robert""
Hakan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 11:24 PM
02-02-2009 11:24 PM
Re: undefined symbol error while defining account ownership.
$action = f$edit("modify user2/owner="robert"","UPCASE")
$sh sym action
ACTION = "MODIFY USER2/OWNER=ROBERT"
case2:with +sign
$action = f$edit("modify user2/owner="+robert"","UPCASE")
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
\ROBERT\
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 11:33 PM
02-02-2009 11:33 PM
Re: undefined symbol error while defining account ownership.
action = f$edit("modify user2/owner="+robert,"UPCASE")
or
action = f$edit("modify user2/owner=""''robert'""","UPCASE")
Hakan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 11:36 PM
02-02-2009 11:36 PM
Re: undefined symbol error while defining account ownership.
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
\ROBERT\
$action = f$edit("modify user2/owner=""''robert'""","UPCASE")
$sh sym action
ACTION = "MODIFY USER2/OWNER="""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 11:39 PM
02-02-2009 11:39 PM
Re: undefined symbol error while defining account ownership.
$sh sym
_Symbol: action
ACTION = "MODIFY USER2/OWNER="+robert'""
Looks good, let me change in script and execute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 11:51 PM
02-02-2009 11:51 PM
Re: undefined symbol error while defining account ownership.
How can i implement this cmd-
action = f$edit("modify user2/owner=""''+robert'""","UPCASE")
in below cmd procedure. I'm too cheking. :)
------------------------------------------
$RUN_AUTHORIZATION:
$ on warning then continue
$ ask "UAF>" action
$ action = f$edit("''action'","UPCASE")
$ IF (F$EDIT(action,"UPCASE,COLLAPSE") .eqs. "EXIT") .or. (F$EDIT(action,"UPCASE,COLLAPSE") .eqs. "EX") THEN GOTO select_sys_option
$!
$ IF (F$LOCATE( "/PA", "''action'") .ne. F$length("''action'")) .or. (F$LOCATE( "/G", "''action'") .ne. F$length("''action'"))
$ then
$ Say "*** Modifying PASSWORD is not permitted"
$ goto RUN_AUTHORIZATION
$ endif
$!
$ UAF 'action'
$ goto RUN_AUTHORIZATION
-----------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2009 11:59 PM
02-02-2009 11:59 PM
Re: undefined symbol error while defining account ownership.
I just fixed the error in the faulty command.
I have NO idea what you are trying to do.....
What is "robert" ?
There is no definition of "robert" in your piece of code.
You are not telling us the whole story......
I'm sorry......
Hakan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 12:00 AM
02-03-2009 12:00 AM
Re: undefined symbol error while defining account ownership.
Is it is possible to define this way in above script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 12:08 AM
02-03-2009 12:08 AM
Re: undefined symbol error while defining account ownership.
as proven by
>>>
$action=f$edit("modify user2/owner="+robert,"UPCASE")
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
\ROBERT\
<<<
the error is NOT in he AUTHORIZE, but in the string manipulation
$action=f$edit("modify user2/owner="+robert,"UPCASE")
The + sign is trying to add the VALUE of the symbol ROBERT to the quoted string "modify user2/owner". And that fails because there is no symbol ROBERT.
Obviously you are trying to add the quoted value "ROBERT" to your quoted string.
To add quotes inside a quoted string you have to double the quotes. That would give:
$action=f$edit("modify user2/owner= + " "robert"","UPCASE")
(note: I added spaces between the 2 double quotes for readability in the forum display.
They are NOT to be there in your procedure!!)
I hope this explains a bit better what Hakan already wrote.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 12:09 AM
02-03-2009 12:09 AM
Re: undefined symbol error while defining account ownership.
i'm going to defined the account ownership with "+" sign with help of above script, without + sign script is running fine since long time but now as per management requirement they wants to add "+" sing in all acount profile ownership column.
ex.
current owner : robert_dev
Needs to be change to owner: +robert_dev
Manully i'm able to change successfully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 12:26 AM
02-03-2009 12:26 AM
Re: undefined symbol error while defining account ownership.
$ ask "UAF>" action
$ action = f$edit("''action'","UPCASE")
$ IF (F$EDIT(action,"UPCASE,COLLAPSE") .eqs. "EXIT") .or. ...
is o.k. only if the "user" is giving enough double quotes to survive the ''action' symbol substitution.
But this substitution is IMHO unnecessary, why not leave it out ?
The main problem follows in the line
$ UAF 'action'
Here again all depends on the user entering ENOUGH double quotes, and the "ask" command(-procedure?) is preserving them.
So You probably require the the user to enter something like
/owner="""+robert"""
So that the substitution results in
$ UAF ... /owner="+ROBERT"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 12:45 AM
02-03-2009 12:45 AM
Re: undefined symbol error while defining account ownership.
$ owner = "robert_dev"
$ new_owner = "+"+owner
$ show sym new_owner
NEW_OWNER = "+robert_dev"
Hakan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 01:18 AM
02-03-2009 01:18 AM
Re: undefined symbol error while defining account ownership.
$ ask "owner?" owner
$ if f$extract(0,1,owner).nes."+" then owner="+"+owner
$ UAF modify 'user'/owner="''owner'"
And finally, to just update all accounts to adhere to the new "+" rule, I would get the freeware GETUAI utility in a procedure
$loop:
$! reading the username from a file
$ GETUAI 'username' /owner=owner
$ if f$extract(0,1,owner).nes."+" then owner="+"+owner
$ UAF modify 'username'/owner="''owner'"
$ goto loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 04:31 AM
02-03-2009 04:31 AM
Re: undefined symbol error while defining account ownership.
anyone yet explained what "ask" really is?
alp $ help ask
Sorry, no documentation on ASK
[...]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 04:54 AM
02-03-2009 04:54 AM
Re: undefined symbol error while defining account ownership.
>> "ask" command(-procedure?) is preserving them.
Whatever it is, behind it probably is is either an inquire or a read, or another procedure doing it.
And depending on that, it requires a different number of double quotes for the quoted user input string.
Since we don't know what 'ask" is effectively doing, the OP has to test his procedure with different number of quote pairs to find the right incantation.
And is is already clear why it was working (just by chance) until special characters like "+" was in the symbol: the unquoted string was still legal in the UAF command.
And I repeat: it is quite ugly to write a procedure which requires from the user to know how to quote his input !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 05:20 AM
02-03-2009 05:20 AM
Re: undefined symbol error while defining account ownership.
And, of course, INQUIRE in a context with
enough privilege to use AUTHORIZE is a big
invitation to trouble.
http://h71000.www7.hp.com/doc/732final/aa-q2hlg-te/aa-q2hlg-te.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 06:16 AM
02-03-2009 06:16 AM
Re: undefined symbol error while defining account ownership.
Weird to say the least...