01-13-2022
DCL
Obsidian | Level 7
Member since
06-23-2011
- 42 Posts
- 7 Likes Given
- 1 Solutions
- 4 Likes Received
-
Latest posts by DCL
Subject Views Posted 1064 01-17-2019 12:47 PM 1104 01-16-2019 12:19 PM 2409 10-05-2017 03:58 AM 2434 10-04-2017 01:44 PM 2454 10-04-2017 08:39 AM 2470 10-03-2017 10:21 PM 2530 10-03-2017 08:40 AM 2113 06-08-2017 03:46 AM 1940 06-08-2017 02:54 AM 1962 06-08-2017 02:12 AM -
Activity Feed for DCL
- Posted Re: Pseudonymization using assymetric keys on SAS Programming. 01-17-2019 12:47 PM
- Posted Pseudonymization using assymetric keys on SAS Programming. 01-16-2019 12:19 PM
- Posted Re: PROC DS2 - END= dataset option on SAS Procedures. 10-05-2017 03:58 AM
- Liked Re: PROC DS2 - END= dataset option for ChrisBrooks. 10-05-2017 03:54 AM
- Posted Re: PROC DS2 - END= dataset option on SAS Procedures. 10-04-2017 01:44 PM
- Posted Re: PROC DS2 - END= dataset option on SAS Procedures. 10-04-2017 08:39 AM
- Posted Re: PROC DS2 - END= dataset option on SAS Procedures. 10-03-2017 10:21 PM
- Posted PROC DS2 - END= dataset option on SAS Procedures. 10-03-2017 08:40 AM
- Liked Maxims of Maximally Efficient SAS Programmers for Kurt_Bremser. 06-30-2017 10:43 AM
- Got a Like for Re: Random number issue. 06-08-2017 04:01 AM
- Posted Re: Random number issue on Statistical Procedures. 06-08-2017 03:46 AM
- Posted Re: Random number issue on Statistical Procedures. 06-08-2017 02:54 AM
- Posted Random number issue on Statistical Procedures. 06-08-2017 02:12 AM
- Got a Like for Re: Help with SAS RESTful webservice. 04-17-2017 10:09 AM
- Got a Like for Re: Help with SAS RESTful webservice. 03-16-2017 03:02 AM
- Posted Re: Help with SAS RESTful webservice on Developers. 03-02-2017 09:06 AM
- Posted Re: ODS package changing encoding of the zipped files on ODS and Base Reporting. 02-28-2017 12:39 AM
- Posted Re: Help with SAS RESTful webservice on Developers. 02-23-2017 06:10 AM
- Posted Re: SAS server migration + version upgrade 9.3 --> 9.4 on Administration and Deployment. 02-22-2017 07:37 AM
- Posted Help with SAS RESTful webservice on Developers. 02-22-2017 07:25 AM
-
Posts I Liked
Subject Likes Author Latest Post 1 101 1 1 1 -
My Liked Posts
Subject Likes Posted 1 06-08-2017 03:46 AM 2 03-02-2017 09:06 AM 1 12-21-2016 01:47 AM
01-17-2019
12:47 PM
hi, Yes, I do want this encrypted using asymmetric keys because the intention is to grant only a specific set of users, who have the special key, to decrypt the data. And, i would want this to be done only to specific records- not something to be configured at the dataset level.
... View more
01-16-2019
12:19 PM
Hi,
I am looking for pseudonymizing few records in my data using asymmetric keys.
i.e. encryption: clear text ---key1--->cipher
decryption: cipher --key2--->clear text
Is this possible in SAS?
Thanks in advance!
... View more
10-05-2017
03:58 AM
Hi Chris,
This helped, Thanks a lot for being so kind to illustrate the functionalities of SQLSTMT package!
Thanks, Dilip
... View more
10-04-2017
01:44 PM
Hi Chris, I want to convert something like following into DS2: data output; retain f1 0; array ar1(%eval(&maxLookupKey.+1),3) 8 _temporary_; IF _N_=1 THEN DO; do until(eof1); set lookup1 end=eof1; ar1(lookupKey+1,1)=f1; ar1(lookupKey+1,2)=f2; ar1(lookupKey+1,3)=f3; end; END; set factTable; by field1; if first.field1 then do; f1=ar1(field1+1,1); . . . end; . . . run; So, i am stuck with DS2 while trying to read through the datasets that I use to load into arrays which I can later use while processing the fact table. I hope the above code helps in conveying my requirement. If not, tomorrow I shall give a working version of the code with some sample data. Thanks, Dilip
... View more
10-04-2017
08:39 AM
I did try to load the lookup tables in init() :
method init();
if 0 then set dsName (locktable=share);
do rLoop=1 to &dsObs.;
put rLoop=;
set dsName (locktable=share);
arrayName[arKey + 1,arIndex] = dsField1;
.
.
.
end;
end;
But, now I get following errors:
rloop=1
ERROR: Integer divide by zero
ERROR: Integer divide by zero
ERROR: General error
ERROR: Access violation
ERROR: Access violation
Does anybody have any clue on this?
... View more
10-03-2017
10:21 PM
Hi Mark, From what I understood only run method has the implicit loop to read through all the dataset observations. Can init be used to read through all the observations? Thanks Dilip
... View more
10-03-2017
08:40 AM
Hi,
I just realized that dataset END option is not possible in DS2:
<>
do until(eof);
set datasetName (locktable=share) end=eof;
<>
ERROR: Compilation error.
ERROR: Parse encountered END when expecting ';'.
ERROR: Line 0: Parse failed: datasetName (locktable=share) >>> end <<< =eof; arrayName[arKey
My intention is to load the lookup data to temporary array so that I could use it while processing the main fact table.
I managed to load the arrays using a data-> run method
data _null_;
method run();
set datasetName (locktable=share);
arrayName[arKey, arIndex] = dsField1;
.
.
.
end;
enddata;
Now, I need to access this array while processing my fact table. Unfortunately I am short of ideas to use it in the same DATA step in DS2.
Could anybody please help me?
Thanks in advance!
P.S- I have multiple look up tables to be loaded into arrays and it is too big for loading into hashes
... View more
06-08-2017
03:46 AM
1 Like
It seems that there is a change in random number generation from SAS/STAT14.1
https://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_whatsnew_sect040.htm
When I added following option, I get old results 🙂
OPTIONS SET=SAS_RNG_METHOD=MT1998;
Thanks, Dilip
... View more
06-08-2017
02:54 AM
Hi Kurt,
Sorry- i forgot to mention that.
OLD server= SAS9.3
New Server= 9.4 (TS1M3 MBCS3170)
Thanks, Dilip
... View more
06-08-2017
02:12 AM
Hi,
Ever since I migrated to a new SAS server, i notice that random number generation for a seed value [334766080] gets different in this new server.
Code
data A(drop=i);
call streaminit(334766080);
do i = 1 to 5;
x123 = rand("uniform"); output;
end;
run;
Results In OLD server
x123
0.7852188905 0.1264403092 0.5529167121 0.8073481501 0.3563103683
Results in NEW Server
x123
0.9406947785 0.9712292252 0.0413521428 0.5594002416 0.1823783112
Seed value is exactly the same. Is there something else which affects the random number generation process?
Thanks in advance!
Dilip
... View more
03-02-2017
09:06 AM
2 Likes
Thanks Vince for the response- I did mention the Stream option. In the meantime, I fixed my issues.
Just in case, it helps anyone - I am listing down the mistakes/ corrections I made during the last couple of days:
1. After getting annoyed with _WEBOUT, I decided to use another fileref in my SAS code and registered that in Data target tab while creating the stored process (Once I find some time, I will recheck _WEBOUT again- conceptually it should work- i guess!)
2. I spent some hours to realise that the endpoint URl is different for getting the Streamed results/ Output parameters
eg. https://<webserverUrl>/SASBIWS/rest/storedProcesse s/<StoredProcess Path >/<stpName>/outputParameters/<macrovariable>
https://<webserverUrl>/SASBIWS/rest/storedProcesse s/<StoredProcess Path >/<stpName>/dataTargets/<fileref>
3. In dataTargets, it took me some time to configure the correct content-type for associated file
File Type
content-type
File Type
content-type
pdf
application/pdf
xls/csv
application/vnd.ms-excel
zip
application/x-zip-compressed
4. At client side, I gave content-type: text/xml as I pass the parameters
There are still lot of areas to explore in this topic. Eventhough, I read about XMLA webservice, i havent still understood its use case. Since RESTClient is easy to use, I felt RESTful webservices comparatively simple to operate.
Thanks, Dilip
... View more
02-28-2017
12:39 AM
Hi All,
Just to update on this topic- I had raised this issue to SAS tech Support but unfortunately did not recieve any useful solution.
My application has now migrated to SAS9.4. I did a quick search in SAS docs but couldnt find any major enhancements to ODS package in 9.4 (that could preserve the encoding type of the file).
If there are any thoughts, please let me know.
Thanks, Dilip
... View more
02-23-2017
06:10 AM
latest Update:
I managed to pass the parameter as Body in the RESTClient and it worked:
<any> <parameters> <parameter1>value1</parameter1> </parameters> </any>
But, now it fails in SAS as I had given fileref as _WEBOUT in the code- SAS tries to write _webout.dat in the SAS Foundation library where it doesnt have write access.
MPRINT(FSTREAM): data _null_; MPRINT(FSTREAM): infile ".../saswork/SAS_work470C0026F545_sla06469/SAS_work8ECA0026F545_sla06469/temp.csv" recfm=f lrecl=1; MPRINT(FSTREAM): file _WEBOUT recfm=n; MPRINT(FSTREAM): input c $char1. @@; MPRINT(FSTREAM): put c $char1. @@; MPRINT(FSTREAM): run;
Now, I am wondering if I have to define "Data Targets" for this stored process.
Any suggestions?
... View more
02-22-2017
07:37 AM
After migrating 2 projects folowing this principle, my team were able to minimise the reworks on the DI jobs. There were couple of issues however:
1. Appeared to be linked to a new functionality/bug in the latest version of DI studio which was overwriting parameter values in a DI job. At the end we had to delete the parameter and add it to "Precode".
2. SAS project name conflict causing an issue for a DI job [can be ignored!]
So, to summarize I would vote for this suggestion as the best solution; eventhough, it would have been wonderful if an automated deployment tool was available for this purpose.
... View more
02-22-2017
07:25 AM
Hi,
I am currently facing issues while trying to invoke SAS BIWebservice.
I am using Firefox plugin- RESTClient to invoke
https://<webserverUrl>/SASBIWS/rest/storedProcesses/<StoredProcess Path >/<stpName>?<parameter1>=<value1>
However, "parameter1" is not getting resolved in sas.
I had registered the stored process with
* Results capability- enabled for "Stream" and "Package"
* Server Type: Stored process only
* Prompts: <parameter1> type: text
The purpose of this stored process is to stream a PDF file to the browser.
Any help on this topic would be highly appreciated:
1. I am currently puzzled why the parameter is not getting resolved.
2. How do I access the WADL file for this webservice
WSDL path is as follows:
https://<webserverUrl>/SASBIWS/services/<StoredProcess Path >/<stpName>.wsdl
Please let me know if there are any questions.
Thanks in advance,
Dilip
... View more