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
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
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
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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