BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,
I have a Stored Process that was created from an Enterprise Guide project. The project uses an Information Map. Issue is that the Stored Process that gets created uses the username and password to access the Information Map.

When the Stored Process is run through any SAS application (like WRS, EG, Stored Process Server) the user credentials are passed through the SAS global variables that store the username and password.

But when the Stored Process is executed i.e. scheduled though non SAS applications like LSF the user credentials are not passed and hence the Stored Process fails.

Is there any way by which we can suppress the use of username and password to access Information Map

Stored Process Code is shown below.

/* --- Start of code for "Import Quarterly_summary". --- */
/* Save off the current value of the validvarname option */
%let _imapValidVarName=%sysfunc(getoption(validvarname,keyword));

/* need for proper data column names in the InfoMap Libname Engine */
options validvarname=v7;

libname _egmle sasioime
user="&_InfoMapUser"
pw="&_InfoMapPassword"
metaserver="msr008.bsil.com"
metaport=8561
metarepository="Foundation"
mappath="/BIP Tree/ReportStudio/Maps"
PRESERVE_TAB_NAMES=YES;

data WORK.Quarterly_summary (label='Selected Data from Quarterly_summary');
length
Act_Expect_Bonus_Diff_Perc 8
Actual_Qtd 8
Actual_Ytd 8
Bonus 8
Bonus_Expected 8
;
set _egmle."Quarterly_summary"n (keep=Act_Expect_Bonus_Diff_Perc Actual_Qtd Actual_Ytd Bonus Bonus_Expected );
run;

/* clear the libname when complete */
libname _egmle clear;

/* restore the validvarname option */
/* NOTE: Might cause a warning if value is VALIDVARNAME=ANY */
options &_imapValidVarName;

/* --- End of code for "Import Quarterly_summary". --- */
3 REPLIES 3
ChrisHemedinger
Community Manager
Sunil,

Unfortunately, this is a limitation of the INFOMAPS library engine that won't be addressed until SAS 9.2.

EG "promoted" the user/password values for the Information Map task to hidden parameters in the stored process. You could change the stored process to prompt for those parameters instead, but that might not offer the best user experience either.

Chris
Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
SanjayM
Calcite | Level 5
Hi Chris

Issue here is that when the stored process is scheduled through LSF the Username and password is not passed.

So should we modify the Stored Process and

1. Hardcode the username and password or
2. Can we remove the code of username and password.

GrassHopper
ChrisHemedinger
Community Manager
Ah Grasshopper,

You'll have to hard code the user/password for now in order to use the INFOMAPS (sasioime) libname engine. You can at least use PROC PWENCODE to encode the password so it isn't clear text.

Chris
Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 633 views
  • 0 likes
  • 3 in conversation