03-22-2019
RahulG
Barite | Level 11
Member since
10-11-2011
- 273 Posts
- 176 Likes Given
- 29 Solutions
- 97 Likes Received
-
Latest posts by RahulG
Subject Views Posted 926 03-22-2019 11:07 PM 959 03-22-2019 10:12 AM 1367 04-19-2018 10:19 AM 1366 04-08-2018 11:45 PM 1684 01-12-2018 12:33 AM 9734 01-12-2018 12:30 AM 4468 12-19-2017 09:51 PM 1094 11-12-2017 10:50 PM 1278 10-30-2017 02:30 AM 7954 10-29-2017 11:11 PM -
Activity Feed for RahulG
- Got a Like for Re: Proc Metadata to get Dependent Objects. 01-12-2023 11:01 AM
- Got a Like for Re: Proc Metadata to get Dependent Objects. 05-17-2021 08:56 AM
- Got a Like for Re: The best way to get an advanced programming skills. 06-19-2020 10:52 AM
- Got a Like for Re: What are the ranks for communities.sas.com and how many posts do you need per rank?. 02-27-2020 03:56 PM
- Got a Like for Re: PROC SQL - DROP statement in a join - Discrimination between t1 and t2. 01-24-2020 08:40 AM
- Got a Like for Re: Proc Metadata to get Dependent Objects. 07-04-2019 10:38 PM
- Got a Like for Re: Transpose data. 03-27-2019 12:29 PM
- Posted Re: SASVA -Text box - how to replace (missing) with 0 on New SAS User. 03-22-2019 11:07 PM
- Posted SASVA -Text box - how to replace (missing) with 0 on New SAS User. 03-22-2019 10:12 AM
- Got a Like for Re: Word wrap in SAS Enterprise Guide Program Editor. 10-15-2018 11:27 AM
- Liked Re: Regarding Best use of Virtual Lab time for Cynthia_sas. 05-31-2018 10:50 AM
- Liked Re: PROC SQL how to add 2 columns from 2 different tables for PGStats. 04-24-2018 01:36 AM
- Liked Re: Create multiple dataset from source dataset for novinosrin. 04-19-2018 11:16 AM
- Liked Re: Create multiple dataset from source dataset for ballardw. 04-19-2018 11:05 AM
- Posted Create multiple dataset from source dataset on SAS Programming. 04-19-2018 10:19 AM
- Posted Re: DI Studio - using programming or scripts to check in / out on SAS Data Management. 04-08-2018 11:45 PM
- Posted Re: Excluding a foreign key in SAS DIS on SAS Data Management. 01-12-2018 12:33 AM
- Posted Re: Duplicate Rows After Left Join on SAS Enterprise Guide. 01-12-2018 12:30 AM
- Got a Like for Re: Newbie here! Question about a proposal using SAS! :). 12-20-2017 06:59 AM
- Posted Re: Newbie here! Question about a proposal using SAS! :) on Graphics Programming. 12-19-2017 09:51 PM
-
Posts I Liked
Subject Likes Author Latest Post 2 1 1 3 14 -
My Liked Posts
Subject Likes Posted 1 12-05-2016 01:00 AM 1 06-13-2016 04:33 AM 1 06-12-2016 11:18 PM 1 12-19-2017 09:51 PM 1 10-24-2017 01:55 AM
03-22-2019
11:07 PM
Where should I write this statement in SASVA reports
... View more
03-22-2019
10:12 AM
I am using Text box for numeric value with advance filter. If condition is true then numeric value is printed.
But when there is no rows with that condition then it is showing (missing).
I tried to use new calculated item where I used condition if Val missing then 0 Else Val
It is helping to get rid of (missing)
... View more
Labels:
04-19-2018
10:19 AM
I have a source dataset that have multiple departments. I want to create separate dataset for every departmet.
I can do it by creating macro %Create_dept_data(dept_nm) then call this macro multiple time for every department dynamically.
Is there any better way to do it in data step with out using macro.
Note: there can be any number of department in have dataset.
data have; input Dept $ EmployeeName $10.; datalines; HR Rocky HR Samy Finance Souley Finance Boby Admin John Admin Ahmed ;
Output Three dataset Dataset name: Hr Hr Rocky Hr Samy
Dataset Name: Finance Finance Souley Finance Boby
Dataset Name:Finance Admin John Admin Ahmed
... View more
04-08-2018
11:45 PM
1. Are you looking for ways to find checked out objects and by whom?
OR
2. Are you looking for ways to check in / check out through automated script.
... View more
01-12-2018
12:33 AM
You are updating the metadata information when you are Going to the properties of the table and excluding it from the tab keys .
But physical table still has that properties.
I would suggest to make change in your physical dataset and then update table metadata.
... View more
01-12-2018
12:30 AM
I see few problem with the sql query.
You should remove group by statement becuase I do not find any aggregate function being used in the select clause.
Then try again.
... View more
12-19-2017
09:51 PM
1 Like
Wow!! Congratulation...
I was eagerly waiting for the result.
Great news 🙂
... View more
11-12-2017
10:50 PM
As you have defined RUNDATE macro variable, similarly you need to define T1
For example
%LET T1=COL1;
... View more
10-30-2017
02:30 AM
I think you should take this free course on SAS Programming 1: Essential
https://support.sas.com/edu/schedules.html?ctry=us&crs=PROG1
Otherwise to your question, you can use If statment to handle BMI in case of missing values.
Go to Work library and find your output dataset. Or you can point your output dataset to PI library.
... View more
10-29-2017
11:11 PM
Library assignment is for P1 and then in the next step the library used is biostats.
You should also define biostats libname.
... View more
10-25-2017
03:57 AM
I tried it but its not working
data Have1;
length ID $20.;
input ID $ age;
datalines;
10000_John 25
10001_Andrew 24
10002_Sam 22
;
data have2;
length ID $20.;
input ID $ marks1 marks2;
datalines;
10000 75 78
10001 58 89
10002 85 73
;
proc sql;
create table want as select a.id, a.age,b.marks1, b.marks2
from have1 a, have2 b
where index(a.id,b.id) = 1
;
quit;
... View more
10-25-2017
01:57 AM
I have two tables
table 1 has Primary Key column whose value are
10000_John
10001_Andrew
10002_Sam
table2 has Primary Key whose value are
10000
10001
10002
I have to join both the tables based on Primary key values
Can I join them directly without manipulating any value in table 1?
... View more
10-24-2017
01:55 AM
1 Like
I have created a macro to split data. It takes symbol root as an input and creates dataset with name as "Data_AA". Here AA is your symbol root. It will create separate dataset for every symbol root.
I have assume column name as SYMBOL_ROOT in testdata.
%macro split_data(_sym_root);
%put symroot val = &_sym_root;
proc sql;
create table Data_&_sym_root. as
select *
from testdata
where SYM_ROOT ="&_sym_root";
quit;
%mend;
filename Split temp;
data _null_;
set test_master;
file split;
put "%" "split_data(" SYMBOL_ROOT ");";
run;
%inc Split;
Just for your knowledge Split file would have call to the macro something like this.
%split_data(A );
%split_data(C );
%split_data(B );
You can add your analysis in %split macro or may be you may need to create separate macro with same kind of approach.
... View more
10-22-2017
11:30 PM
I do not know all the column names of data1, data2, temp1 and temp3 so I have to assume that
commercial_grade and lab_grade also present in data1 table.
You also need to correct the select clause,enter the column name in select clause as you needed in final table temp4
proc sql; create table temp4 as select a.*,b.*, case when c.lab_grade is null then 'N/A' else c.lab_grade end as lab_grade, case when d.commercial_grade is null then 'N/A' else d.commercial_grade end as commercial_grade from data1 a left join data2 b on a.id=b.id and a.regiment_number=b.regiment_number and a.serial_number=b.serial_number left join temp1 c on a.lab_grade= c.lab_grade left join temp3 d on a.commercial_grade = d.commerical_grade; quit;
EDIT: Added comma after lab_grade - PG
... View more
09-28-2017
12:40 AM
1 Like
Use Truncover option in infile statement to read the thrid line as record number 3
... View more