Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
64 views

I 'm using the following code to set the format of my variable of interest: data thenameofmyvar; length label $200.; set mydb(keep= thenameofmyvar); retain fmtname '$myfmt' type '$'; ...
NewUsr_stat's user avatar
  • 2,637
1 vote
1 answer
70 views

suppose to have the following dataset: data mydataset; infile datalines; input ID $ Relation $ Type $ G5 $; datalines; 001 Related A Y 001 PossiblyRelated B Y 001 NotRelatd ...
NewUsr_stat's user avatar
  • 2,637
0 votes
1 answer
54 views

Need a SAS date in mmddyy8. format running Windows 11 Enterprise on PC SAS 9.4. Code below, does in fact, derive the first date ("Q_start") of the month of the current quarter of the ...
MeatPopsicle's user avatar
2 votes
2 answers
90 views

I would like to ask if it is possible to include a proc sql in data step like this: data mydata; set have; proc sql; create table adrs01 as /*This line I suppose should be removed*/ ...
NewUsr_stat's user avatar
  • 2,637
0 votes
3 answers
138 views

Getting an error which I have fixed, but I can't explain or understand WHY it's happening and would appreciate insight so that I can be confident my company's SAS install isn't haunted. Getting this ...
Isobel Hughes's user avatar
1 vote
1 answer
102 views

I have a list of variables named: Type1__2, Type2__2, Type3__2, ...., that I would like to insert in a do loop. I would like not to list them since they are many. In a "typical" situation ...
NewUsr_stat's user avatar
  • 2,637
Advice
0 votes
0 replies
36 views

I’m trying to reproduce an ML pipeline (built in SAS Viya Model Studio, but the question is general) consisting of: Robust PCA with automatic/optimal component selection XGBoost with auto-tuned ...
Grace Gonzalez's user avatar
0 votes
4 answers
86 views

I am running SAS on a Linux server where XCMD (system commands) is disabled, so I cannot use the Pipe/Find method. I need a pure SAS macro that can: Recursively scan a directory. Get the Internal ...
Aamir Warsi's user avatar
0 votes
2 answers
88 views

I would like to hide values of certain macro variables (passwords) used in libname statement from logs. Disabling symbolgen, mlogic or mprint is not an option, as debugging without those options is a ...
Negdo's user avatar
  • 532
1 vote
4 answers
113 views

%if %sysfunc(prxmatch(/^\("([A-Za-z])"\)$/, %str(&names))) = 0 and %upcase(&stringC) = N %then %do; %put ERROR: Please format as such ("obesity","diabetes&...
Health_Code13's user avatar
1 vote
2 answers
177 views

The files are over 100gb and I want 1000 observations but not the first 1000, how can I make sure it's randomized before/while importing so that not all of it has to be loaded in? data <- lapply(...
Kaylen Ton's user avatar
0 votes
0 answers
91 views

libname xldata xlsx 'C:/Users/user/Documents/WB.xlsx'; proc print data=xldata.abc; run; I want to read and access Excel sheet, but I get this error: 1 OPTIONS NONOTES NOSTIMER NOSOURCE ...
Azhar Khan's user avatar
0 votes
0 answers
151 views

I'm using SAS Studio. I want to learn python coding on SAS Viya. If possible, would like to migrate my existing SAS codes to python but to start with I want to learn the basics. I tried a basic query -...
sunnyday's user avatar
1 vote
1 answer
88 views

I am currently working on SAS conversion to python. I noticed that there are ASA Carriage Control Character at the first column in the output file in mainframe. After some research, I noticed that 1 ...
Lim Gwin Yeaw's user avatar
1 vote
1 answer
130 views

I am trying to connect to work SAS server from R, to extract datasets for further processing/analysis in R. Due to corporate constraints, the only solution available is SAS JDBC type of connection, ...
Ondrej's user avatar
  • 43

15 30 50 per page
1
2 3 4 5
1078