- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to change the label of a variable. But the option is not working. In the log it is showing modification is successful. But the label for the variable is still blank.
When I use other options like rename, it is working fine and the variable name is being changed.
Following is the below code, where I'm facing the issue.
data cls2; set sashelp.class; run; proc datasets; modify cls2; rename name = t; label t = 'test' sex = 'test2' ; quit;
Following is the log for the above code
The output is
Could you please help me, where I'm getting the code wrong
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Check your options, there's a label/nolabel option that could be set on your server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Post the output from the suggested code on SO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Reeza,
I've updated the post with the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
That's not the output from the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
thats the cls2 dataset modified after the proc datasets procedure is run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Ok then. The code has no issues, your log has no issues.
You're doing something wrong and unless you post the full log from the code I *had* posted on SO we can't tell you anything else.
Notice that that's the same response you're getting on SO.
Good Luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Check your options, there's a label/nolabel option that could be set on your server.