ERROR: User does not have appropriate authorization level for file WORK.SASMACR.CATALOG - sas

Anyone seen this error before?
"ERROR: User does not have appropriate authorization level for file WORK.SASMACR.CATALOG"
Occasionally, our batch jobs stops with this error. I don't understand how a file in work should not be writeable?
Thanks,
Stig

After I disabled antivirus (Sophos) online scanning for the work folder and *.sas7bcat files the error seem to have gone away.

According to this http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001328775.htm , macro catalogs are usually read-only, except while macros are being compiled or updated. Perhaps this answers the "why this file in work folder is not writable" part of your question.

Related

Watching Variables with same name in IAR watch window

Need some help, in one project I have started working on, I found that the same name variables (static defined) in separate files, and when I tried to add these variables into the "Live Watch" or "Watch Window", IAR display "Unknown or ambiguous symbol", which is for obvious reasons as it gets confusing which one to display as the same name is used in multiple files.
I searched over the internet and found one page.
https://www.iar.com/support/tech-notes/debugger/resolving-variables-with-same-name-in-c-spy/
And it works fine when the files are in the project directory, if the same name variable is inside some folders, then I am not able to access the variables.
Can anyone please suggest what is the correct format to access these variables?
Thanks in advance.
In the above project, there was a mistake done by me, the filename name is "tes2.c" the "t" is missing, and due to this it was not working.
if I type tes2\testvarI am getting the output, so it was my mistake.
But there is some more point, which I got after contacting the IAR support team, and I will share this information below.
If the "pre-include" file is specified in your IAR IDE, then this doesn't work, this is a known issue and is present till now, and they will fix this in the next upcoming releases.
Actually, in my main project, there is a "pre-include" file and that's why even after entering the correct information, I am not getting the proper data on the "Live Watch" or "Watch Window". The example shown here was a demo project to show the issue I am facing.
Now there is another possibility to view/watch the static variables.
Click on "View" --> "Statics" this will list down all the status variables in your project and this works well even when the "pre-include" file is included in the IAR IDE.

TypeError: Unable to modify PDF file, make sure that output file target is available and that it is not protected

I'm trying to fill pdf form using HummusJS but it throws me an error TypeError: Unable to modify PDF file, make sure that output file target is available and that it is not protected while running pdf generation in AWS lambda function but its working fine on my local machine and log aren't generated. Is there any debugging option available??. I wasted 3 days for solving this issue.
Any help will highly be appreciated.
Thanks
I experienced this issue when the PDF file I was reading had a size of 0. Somewhere during my tests I suspect that the PDF I was working with got overwritten with empty data and it turns out that this is what was creating the permission error.
I was working from this sample.

Cloning Open Cart admin language issue

I'm trying to clone one fully functioning opencart website to another. The front-end of the website is in Dutch and the back-end I have left English default.
Here are the steps I have taken:
Copy database to new environment
Copy files and edit both the config files(config.php and admin/config.php) to match the server paths.
when i go to test the site, all seems to be working fine, until i go to the admin section where i find this blasted error which seems to be very common:
Notice: Error: Could not load language dutch! in /opt/www/prezent/graviolashop.de/HTML/system/library/language.php on line 39
I'm not sure if this is a path issue or something wrong with the db?
I have googled this issue but none are specific to my perticular case. Has anyone had this issue and resolved it?
Thanks.
If it's unable to load the language and you've copied them over as you say, then this is going to be a config issue. Ensure your path is exactly as it should be. A good way to do this is to create a file such as error.php in your root website folder. Then put some erroneous code in it like
<?php
dfs sdf sd;
Then call the file at www.yoursite.com/error.php, and it will show you the path in the error which you can copy exactly. One other unlikely but possible problem could be permissions, but the former is far more likely

(vqmod) Error: Could not load language total/sub_total

I have moved my Opencart website to a new host, and I receive the error:
Notice: Error: Could not load language total/sub_total! in
.../vqmod/vqcache/vq2-system_library_language.php on line 41
How do I resolve this?
I have tried renaming vqmod/xml to vqmod/xml.bad, with no result.
I have tried renaming /vqmod/vqcache to /vqmod/vqcache.bad, with no result.
Update:
In \system\library\language.php, I commented out an else branch which resulted in an application exit.
Most probable reason can be that you are missing one of the following file:
catalog/language/english/total/sub_total.php
admin/language/english/total/sub_total.php
if you are missing them, upload them from a fresh copy of opencart and then try.
and put back that else , error will be error, not displaying error will not solve it
The most logical explanation for this is that the language file you need is missing. This isn't necessarily the english language one if you have multiple languages so you will need to validate them all
Check that the language files
admin/language/language-name-here/total/sub_total.php
exists if you receive this in the admin area, or
catalog/language/language-name-here/total/sub_total
if it's on the customer side
The other possibility is that the file is simply corrupt, in which case I would recommend just re-uploading all of these files from a clean copy. Note that the vQmod reference is simply because vQmod has altered the language load file (this is standard for vQmod to do for it to work). If you don't have any modifications that specifically alter the way languages work, this isn't going to be the cause of the error
I believe there was a bug in earlier versions of 1.5.X that caused this kind of problem too, so if you're not on a reasonably recent version I would recommend an upgrade as well

Creating a dll with very large files

This is the first time I am writing in this forum, I hope someone could help me. I have been searching on the Web but have not found any answer related to my question.
I have a very large file (about 25000 lines) with thousands of definitions that must be used by another file
All these files (and about 600 more of them) are converted to .c files using a special tool. I am almost sure this conversion is made propertly.
If I create a.exe with all these files, there is no problem and everything works all right. Unfortunately, I need a .dll which crashes when I try to access to the very large file.
I have check that its .obj file is larger than 65MB so I have added the compiler command /bigobj as far as I have seen on the Internet but it didn't solve the problem.
I have also checked that the problem happens when access to the large file because everything works ok when I join both files (which is not possible in my development)
I am using Visual 2008
Could it be related to compile as C (/TC) or C++ (/TP) code? What's the difference between .exe and .dll that may make my program crashes?
Any ideas please?
Thanks in advance
Indeed, without the code not much can be said... (tho not sure if anyone would have the patience of reading 600 files each with 25k lines of code :) )
As advice, rebuild the exe and dll in debug mode, run the exe from MSVC, then put a breakpoint where you know it crashes. Next set a data breakpoint on the variable after you get its address from the watch window. ASSUMING the app does what it should correctly, then the pointer is set, but lost along the way; that means it should be triggered twice.
Alternatively, try an assertion check.
Another scenario is because the variable is volatile.
Another scenario is the value is returned from a temporary value and gets lost...
And last but not least, the value is never set because of wrong\bad conditions...
If your problem is the crash and not the missing value, just do a null check and return the call if you really want to avoid the complication, however, I would recommend you find why the value isn't set. Your choice.