BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Sk4r
Obsidian | Level 7

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

1 ACCEPTED SOLUTION

Accepted Solutions
CaseySmith
SAS Employee

@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):

https://blogs.sas.com/content/sasdummy/2009/11/19/using-the-x-and-systask-commands-from-sas-enterpri...

 

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

View solution in original post

4 REPLIES 4
andreas_lds
Jade | Level 19

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.

CaseySmith
SAS Employee

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

Sk4r
Obsidian | Level 7

@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

CaseySmith
SAS Employee

@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):

https://blogs.sas.com/content/sasdummy/2009/11/19/using-the-x-and-systask-commands-from-sas-enterpri...

 

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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 894 views
  • 1 like
  • 3 in conversation