RajasekharReddy
Fluorite | Level 6
Member since
04-18-2014
- 44 Posts
- 9 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by RajasekharReddy
Subject Views Posted 1989 07-08-2019 06:02 AM 977 04-09-2019 09:04 AM 1602 02-23-2019 11:32 AM 1619 02-23-2019 08:20 AM 1629 02-23-2019 06:49 AM 1671 02-22-2019 07:58 PM 914 01-29-2019 01:43 AM 1118 01-29-2019 01:34 AM 1175 01-24-2019 06:54 AM 5091 01-16-2019 12:32 AM -
Activity Feed for RajasekharReddy
- Posted EXP funciton warning on SAS Programming. 07-08-2019 06:02 AM
- Posted What is difference "?" using in PUT & INPUT function on SAS Programming. 04-09-2019 09:04 AM
- Posted Re: Number & % allignment in Center dataset on SAS Programming. 02-23-2019 11:32 AM
- Posted Re: Number & % allignment in Center dataset on SAS Programming. 02-23-2019 08:20 AM
- Posted Re: Number & % allignment in Center dataset on SAS Programming. 02-23-2019 06:49 AM
- Posted Number & % allignment in Center dataset on SAS Programming. 02-22-2019 07:58 PM
- Posted Ttranspose data by array on SAS Programming. 01-29-2019 01:43 AM
- Posted Re: Retain values on SAS Programming. 01-29-2019 01:34 AM
- Posted Retain values on SAS Programming. 01-24-2019 06:54 AM
- Posted Re: PROC SQL INTO Clause when CASE on SAS Programming. 01-16-2019 12:32 AM
- Posted Re: PROC SQL INTO Clause when CASE on SAS Programming. 01-16-2019 12:09 AM
- Posted PROC SQL INTO Clause when CASE on SAS Programming. 01-15-2019 10:12 PM
- Posted Perl expression on SAS Programming. 05-24-2018 10:08 AM
- Posted To check Dataset exist created or not based on time elapsed on SAS Programming. 08-22-2017 09:45 AM
- Posted Hold lock for dataset for specified time on SAS Programming. 06-07-2017 12:55 AM
- Posted Hold Lock for dataset for specified time on All Things Community. 06-06-2017 01:50 AM
- Posted Data _null_ set obs=0 Note on SAS Programming. 04-17-2017 11:34 AM
- Posted Re: creating macro varible values based on dataset on SAS Programming. 04-03-2017 02:55 AM
- Posted creating macro varible values based on dataset on SAS Programming. 04-03-2017 01:49 AM
- Posted Re: Using X Command to Convert RTF to PDF with MS10 Word Excecutable on SAS Programming. 02-27-2017 06:38 AM
-
Posts I Liked
Subject Likes Author Latest Post 2 1 2 1 1
07-08-2019
06:02 AM
Hello
I am getting below log message when i used EXP function
I am removing missing values before passing , but still i am getting
data step :
if nmiss(gmean)=0 then gmean1=exp(gmean);
run;
PARTN=1 PARTTXT=Part 1 Dose Escalation TRTP=3 mg/kg PARAM=Carboxy-Dabrafenib PARAMCD=2298683 AVISITN=50 AVISIT=WEEK 1 DAY 1
ATPTNUM=70 ATPT=4 HOURS POST DOSE _TYPE_=0 _FREQ_=1 n1=1 nc=1 mean1=2968.26 gmean=2968.26 max1=2968.26 min1=2968.26 sd= gsd=
med=2968.26 CV1= gmean1= gcv= _ERROR_=1 _N_=3
NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to
missing
values.
... View more
04-09-2019
09:04 AM
Hello ,
I am using PUT & INPUT function so long and using below like
xx=put(aa,?best.)
zz=input(bb,??best.)
May i know why we are using "?" in put & input function and what is difference with out "?" and with "?"
Thank you in advance.
... View more
02-23-2019
11:32 AM
Hello
I have tried your code and it's not working as expected .
i need to align decimals in one line for reporting purpose so need to adjust space , placed screen shot here below
and also data pasted here
121
6.02
42
42
10.08
67
31
7.08
88
122
3.24
3.24
10.44
2.88
3.24
3.24
78
89
92
78
85
9.72
11
104
92
64
7.2
... View more
02-23-2019
08:20 AM
I would like to assign the spaces according to decimal positions like bellow without changing decimal values.
xxx
x.x
x.xx
x.x
x
xx
xxxx
x.x
x.xx
x.xxxx
xx
xx
... View more
02-23-2019
06:49 AM
Thank you . I have tried with strip removing but it didn't work
if i want assign space according decimal point , decimal point will come as center as shown below
53
8.1
8.3
40
7.8
29.07
51
... View more
02-22-2019
07:58 PM
Hi,
I am trying to center alignment in data set for column have number & percent
I am using below code to generate respective percentages
varout=strip(put(n,12.))||' ('||strip(put((n*100/denom),5.1))||')' ;
this is sample data
data test ;
input col1 ;
cards;
6
6 (100.0)
5 ( 83.3)
0
868 ( 35.1)
1607
1607 (100.0)
475 ( 29.6)
14 ( 0.9)
;
data test2 ;
input col2 $17. ;
cards;
6 (100.0)
5 ( 83.3)
0
868 ( 35.1)
1607
1607 (100.0)
475 ( 29.6)
14 ( 0.9)
;
I am try to alignment in center with decimal in line and numbers as showed in second image
My out put is like below in data set ;
i want output like below in data set : how i can adjust spaces and alignment in as below
... View more
01-29-2019
01:43 AM
Hello
I want transpose data from row to another column specific to row
Please help cod how we can do that one in array or transpose
My data was attached in excel sheet
In this Excel sheet I want create new columns that are ALT , AST , ALT _date, AST_date, ALT_VISIT , AST_Visit
This ALT and AST values need to populate for respective BILDIR test like below.
USUBJID
LBTESTCD
LBTEST
LBSTRESN
LBSTRESC
VISIT
VISITNUM
LBDTC
ALT
AST
ALT_Date
AST_Date
ALT_VISIT
AST_VISIT
Sci-B-Vac-001-100-1001
ALT
Alanine Aminotransferase
16
16
SCREENING
10
2018-02-28
Sci-B-Vac-001-100-1001
ALT
Alanine Aminotransferase
11
11
VISIT 1
20
2018-03-27
Sci-B-Vac-001-100-1001
ALT
Alanine Aminotransferase
13
13
SUBSTUDY1
40
2018-04-03
Sci-B-Vac-001-100-1001
ALT
Alanine Aminotransferase
16
16
SUBSTUDY2
70
2018-05-03
Sci-B-Vac-001-100-1001
ALT
Alanine Aminotransferase
17
17
SUBSTUDY3
110
2018-09-18
Sci-B-Vac-001-100-1001
AST
Aspartate Aminotransferase
19
19
SCREENING
10
2018-02-28
Sci-B-Vac-001-100-1001
AST
Aspartate Aminotransferase
16
16
VISIT 1
20
2018-03-27
Sci-B-Vac-001-100-1001
AST
Aspartate Aminotransferase
17
17
SUBSTUDY1
40
2018-04-03
Sci-B-Vac-001-100-1001
AST
Aspartate Aminotransferase
21
21
SUBSTUDY2
70
2018-05-03
Sci-B-Vac-001-100-1001
AST
Aspartate Aminotransferase
20
20
SUBSTUDY3
110
2018-09-18
Sci-B-Vac-001-100-1001
BILDIR
Direct Bilirubin
1.9
1.9
SCREENING
10
2018-02-28
16
19
2018-02-28
2018-03-27
SCREENING
SCREENING
Sci-B-Vac-001-100-1001
BILDIR
Direct Bilirubin
1.9
1.9
VISIT 1
20
2018-03-27
11
16
2018-03-27
2018-03-27
VISIT 1
VISIT 1
Sci-B-Vac-001-100-1001
BILDIR
Direct Bilirubin
1.7
1.7
SUBSTUDY1
40
2018-04-03
13
17
2018-04-03
2018-03-27
SUBSTUDY1
SUBSTUDY1
Sci-B-Vac-001-100-1001
BILDIR
Direct Bilirubin
SUBSTUDY2
70
2018-05-03
16
21
2018-05-03
2018-05-03
SUBSTUDY2
SUBSTUDY2
Sci-B-Vac-001-100-1001
BILDIR
Direct Bilirubin
SUBSTUDY3
110
2018-09-18
17
20
2018-09-18
2018-09-18
SUBSTUDY3
SUBSTUDY3
Sci-B-Vac-001-100-1001
BILI
Bilirubin
11.5
11.5
SCREENING
10
2018-02-28
Sci-B-Vac-001-100-1001
BILI
Bilirubin
5.3
5.3
VISIT 1
20
2018-03-27
Sci-B-Vac-001-100-1001
BILI
Bilirubin
9.7
9.7
SUBSTUDY1
40
2018-04-03
Sci-B-Vac-001-100-1001
BILI
Bilirubin
5
5
SUBSTUDY2
70
2018-05-03
Sci-B-Vac-001-100-1001
BILI
Bilirubin
7
7
SUBSTUDY3
110
2018-09-18
Sci-B-Vac-001-100-1001
BILI
Bilirubin
NEGATIVE
SCREENING
10
2018-02-28
... View more
01-24-2019
06:54 AM
Hello I am stuck with Retain values for variable ABLFL
ABLFL value is "Y" where VISITNUM is 10 and 10.1 and i need retain ABLFL values for same PARAMCD by USUBJID
... View more
01-16-2019
12:32 AM
Thank you very much for solution .
I am trying to get result for macro variable as per below to pass the same values in LENGTH statement .
%put &=var_all; VAR_ALL= Name$8. Sex$1. Age 8. Height 8. Weight 8.
i have tried below code , however for NUM variable how i can get space like " NUM 8. "
proc sql noprint;
create table tt as
select NAME,length,
case when upcase(type) ='CHAR' then '$'
else '.'
end as var_type
into: varlist separated by ' ' ,
: var_len separated by ',',
: var_type separated by ' ' from dictionary.COLUMNS
where upcase(libname) = 'SASHELP' and upcase(MEMNAME) = upcase("CLASS") ;
select case when var_type='$' then cats('',name,var_type,length,'.')
when var_type='.' then cats(' ',name,length,var_type)
else ' '
end as var_all
into:var_all separated by ' '
from tt ;
quit;
%put &=var_all;
In log shows
%put &=var_all; VAR_ALL=Name$8. Sex$1. Age8. Height8. Weight8.
But i want numeric variable length as "Age 8. Height 8. Weight 8. "
... View more
01-16-2019
12:09 AM
Thank you very much for solution .
I am trying to get result as pet below to pass the same values in LENGTH statement .
i have tried below code , however for NUM variable how i cam get space like " NUM 8. "
proc sql noprint;
create table tt as
select NAME,length,
case when upcase(type) ='CHAR' then '$'
else '.'
end as var_type
into: varlist separated by ' ' ,
: var_len separated by ',',
: var_type separated by ' ' from dictionary.COLUMNS
where upcase(libname) = 'SASHELP' and upcase(MEMNAME) = upcase("CLASS") ;
select case when var_type='$' then cats('',name,var_type,length,'.')
when var_type='.' then cats(' ',name,length,var_type)
else ' '
end as var_all
into:var_all separated by ' '
from tt ;
quit;
%put &=var_all;
In log shows
%put &=var_all; VAR_ALL=Name$8. Sex$1. Age8. Height8. Weight8.
But i want numeric variable length as "Age 8. Height 8. Weight 8. "
... View more
01-15-2019
10:12 PM
Hello,
Please help me tog generate macro variable values as
Varlist as variable names,
var_type as variable type (char= $ num='')
length as variable length
proc sql noprint;
create table test as
select NAME,length,
case when upcase(type) ='CHAR' then '$'
when upcase(type) ='NUM' then ''
else ''
end as var_type
into: varlist separated by ' ' ,
: var_len separated by ',',
: var_type separated by ' ' from dictionary.COLUMNS
where upcase(libname) = 'OFFLINE' and upcase(MEMNAME) = upcase("LIS002")
order by varnum ;
quit;
... View more
05-24-2018
10:08 AM
Hello ,
Please help to change "MCLAUREN" value as "McLAUREN" by using Perl Expression (PRXCHANGE)
I tried below code but didn't work for me
data _null_; x = 'MCLAUREN'; y = prxchange("s/ (MC) /\u\L$1/i", -1, x); put y=; run;
Thanks in Advance
... View more
08-22-2017
09:45 AM
Hi,
How we nedd to check whether dataset created or not based on creation of dataset time looping
ex: One program is creating the dataset and this program is on que
I want second program to check the first program created dataset or not based on time
Like first check dataset exist or not if not check after 10 sec , still not created check after 10 sec , once dataset creasted and this program will stop.
Regards,
Rajasekhar Reddy. B
... View more
06-07-2017
12:55 AM
Dear all,
I want hold Lock for specific dataset in specifed time period like in below program i have written lock statment and lock clear stament
want to run lock clear stament after specified time in windows(SAS EG) and unix
is any wayt to hold the lock for specified time and when use the same dataset in menioned perios want get error as data set was locked by user
data work.test01; input @01 employee_id 6. @08 last_name $10. @19 birthday date7.; format employee_id 6. last_name $10. birthday date7.; datalines; 1247 Garcia 04APR54 1078 Gibson 23APR36 1005 Knapp 06OCT38 1024 Mueller 17JUN53 ; run; lock AccesChk.test01 ; /*wiat for 10 min after lock need to be clear*/ /*and mean while i will use this dataset for other program and i want get error */ /*as data set was locked by user*/ /*is any options for holding some time in windoiws and unix ?*/ lock AccesChk.test01 clear ;
... View more