Hi, I've posted it on another forums, but I'm stuck with this problem.
How can I modify sysprint value in SAS EG 7.1 successfully?
I tried it in SAS 9.4 and it was successfull, by using options sysprint = "printer-name"; but not in EG 7.1.
Supposedly I got an error that the setting option I tried to do to sysprint would be ignored.
Thank you
@Sk4r, no worries...
See the last two paragraphs in this blog entry for instructions on how to change the registered SAS command (includes link to a tool for convenience, as an alternative to manually editing your registry):
Or if you want to do it manually, here are the typical locations the registered SAS command lives in your Windows Registry (the ones from my machine):
32-bit:
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{440196D4-90F0-11D0-9F41-00A024BB830C}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{CF7BC7E6-C7E8-11D5-87E3-00C04F38F9F6}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{E251B1BF-8E46-4CBE-AD83-6389185bA373}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{081d5c22-7b63-433a-9a65-12a8d276bcc9}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
64-bit:
HKEY_CLASSES_ROOT\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
HKEY_CLASSES_ROOT\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
HKEY_CLASSES_ROOT\CLSID\{440196D4-90F0-11D0-9F41-00A024BB830C}\LocalServer32
HKEY_CLASSES_ROOT\CLSID\{CF7BC7E6-C7E8-11D5-87E3-00C04F38F9F6}\LocalServer32
HKEY_CLASSES_ROOT\CLSID\{E251B1BF-8E46-4CBE-AD83-6389185bA373}\LocalServer32
If you navigate to those keys, you'll see the registered SAS command with the "-noprngetlist" option on the end. (Or you can search your registry for "noprngetlist", which should locate the keys.)
Note: If you want to re-register your SAS command at any time (to get back to default), you can do so via "C:\Program Files\SASHome\SASFoundation\9.4\sas.exe /regserver" command.
Casey
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
I don't think that you can use that option in EG at all. It seems to be tied to older programming environments and listing outputs.
If you can't get a useful answer here, contacting tech-support should be the next step.
When SAS is started by the object spawner (as is the case with EG for remote server connections), the NOPRNGETLIST system option is normally set (by default) to avoid the performance penalty of discovering printers and their capabilities. For the same reason, even local SAS server connections include the -noprngetlist option on the default registered SAS command.
I'm fairly certain when PRNGETLIST is off (NOPRNGETLIST), setting SYSPRINT will not work, since NOPRNGETLIST specifies that SAS does not recognize printers that are attached to the system. So, I suspect your SAS session that EG connects to has the NOPRNGETLIST option set.
Submit this code and then inspect the log to see if it is set in your session:
proc options group=listcontrol;
run;
If you confirm NOPRNGETLIST is set, then you could try turning it off and then setting SYSPRINT again.
(Note: To turn off NOPRNGETLIST for Local SAS, you have to remove the -noprngetlist option from the registered SAS command (in Windows registry). For a remote SAS server, it (-NOPRNGETLIST) would typically be in a config file, such as C:\SAS\Config\Lev1\SASApp\sasv9.cfg.)
Casey
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
@CaseySmith Thank you for your response, and sorry that it took long from me to write an answer, I've been doing another task in the while. I've checked and indeed prngetlist option is off, how can I access to SAS windows registry to remove that value?
Thank you very much for your time
@Sk4r, no worries...
See the last two paragraphs in this blog entry for instructions on how to change the registered SAS command (includes link to a tool for convenience, as an alternative to manually editing your registry):
Or if you want to do it manually, here are the typical locations the registered SAS command lives in your Windows Registry (the ones from my machine):
32-bit:
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{440196D4-90F0-11D0-9F41-00A024BB830C}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{CF7BC7E6-C7E8-11D5-87E3-00C04F38F9F6}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{E251B1BF-8E46-4CBE-AD83-6389185bA373}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{081d5c22-7b63-433a-9a65-12a8d276bcc9}\LocalServer32
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
64-bit:
HKEY_CLASSES_ROOT\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
HKEY_CLASSES_ROOT\CLSID\{20001C16-05D1-4706-9BD2-1782B8575063}\LocalServer32
HKEY_CLASSES_ROOT\CLSID\{440196D4-90F0-11D0-9F41-00A024BB830C}\LocalServer32
HKEY_CLASSES_ROOT\CLSID\{CF7BC7E6-C7E8-11D5-87E3-00C04F38F9F6}\LocalServer32
HKEY_CLASSES_ROOT\CLSID\{E251B1BF-8E46-4CBE-AD83-6389185bA373}\LocalServer32
If you navigate to those keys, you'll see the registered SAS command with the "-noprngetlist" option on the end. (Or you can search your registry for "noprngetlist", which should locate the keys.)
Note: If you want to re-register your SAS command at any time (to get back to default), you can do so via "C:\Program Files\SASHome\SASFoundation\9.4\sas.exe /regserver" command.
Casey
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.