03-07-2021
LearnByMistk
Obsidian | Level 7
Member since
09-29-2014
- 40 Posts
- 7 Likes Given
- 0 Solutions
- 5 Likes Received
-
Latest posts by LearnByMistk
Subject Views Posted 944 03-07-2021 06:24 AM 1113 03-03-2021 11:43 AM 4007 12-09-2020 01:06 PM 4036 12-09-2020 12:36 PM 4051 12-09-2020 12:24 PM 3230 02-20-2020 01:42 PM 3232 02-20-2020 01:41 PM 3244 02-20-2020 01:28 PM 3281 02-20-2020 12:31 PM 3298 02-20-2020 11:47 AM -
Activity Feed for LearnByMistk
- Posted Re: update all columns of specific naming convention across monthly dataset on SAS Programming. 03-07-2021 06:24 AM
- Liked Re: update all columns of specific naming convention across monthly dataset for yabwon. 03-07-2021 06:22 AM
- Posted update all columns of specific naming convention across monthly dataset on SAS Programming. 03-03-2021 11:43 AM
- Posted Re: SAS special character in column names on SAS Programming. 12-09-2020 01:06 PM
- Posted Re: SAS special character in column names on SAS Programming. 12-09-2020 12:36 PM
- Posted SAS special character in column names on SAS Programming. 12-09-2020 12:24 PM
- Posted Re: increment month in do loop macro on SAS Programming. 02-20-2020 01:42 PM
- Posted Re: increment month in do loop macro on SAS Programming. 02-20-2020 01:41 PM
- Posted Re: increment month in do loop macro on SAS Programming. 02-20-2020 01:28 PM
- Posted Re: increment month in do loop macro on SAS Programming. 02-20-2020 12:31 PM
- Posted increment month in do loop macro on SAS Programming. 02-20-2020 11:47 AM
- Liked Re: Import CSV into SAS for Kurt_Bremser. 05-21-2019 05:33 AM
- Liked Re: Import CSV into SAS for andreas_lds. 05-21-2019 05:33 AM
- Posted Import CSV into SAS on SAS Programming. 05-21-2019 04:50 AM
- Got a Like for memsize option while running sas via batch mode. 01-19-2018 03:24 AM
- Posted memsize option while running sas via batch mode on Administration and Deployment. 01-18-2018 11:29 PM
- Posted Re: datatype teradata to sas on SAS Programming. 03-06-2017 05:54 AM
- Posted datatype teradata to sas on SAS Programming. 02-28-2017 04:49 AM
- Got a Like for Re: Help SAS date code to distinguish dates and blanks. 01-24-2017 10:00 AM
- Posted Char to int var on SAS Programming. 07-25-2016 01:31 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 1 1 1 -
My Liked Posts
Subject Likes Posted 1 01-18-2018 11:29 PM 1 09-29-2014 02:05 PM 3 11-06-2014 02:43 PM
03-07-2021
06:24 AM
as always community is very much responsive and helpful . Thanks all for their valuable time and response
... View more
12-09-2020
06:14 PM
29 rename AGE_85_+_PCT=age_85_plus; ERROR: Missing numeric suffix on a numbered variable list (AGE_85_-_PCT).
This code is not what was provided to you as a solution.
You have to enclose the variable name inside ' 'n as shown.
... View more
05-21-2019
09:22 AM
You can read the header line and check.
Say your input file is NEWCSV and expected structure is described by the SAS datasets TEMPLATE.
* Read headers from new delimited file ;
data new_names ;
length name $50 ;
infile newcsv obs=1 dsd dlm='09'x ;
input name @@ ;
run;
* Get names from template structure ;
proc transpose data=template(obs=0) out=old_names;
var _all_;
run;
* Compare;
proc compare data=old_names compare=new_names;
run;
PROC COMPARE will actually set a macro variable you can test to see if there are differences. Or you can use some other methods to compare.
... View more
01-19-2018
03:28 AM
For a SAS Grid environment, you can also use Grid Options Sets. See this link... http://support.sas.com/documentation/cdl/en/gridref/67371/HTML/default/viewer.htm#n1inymfs0b7go2n147xdknz0ygpx.htm
... View more
03-06-2017
05:54 AM
Hi ,
Thanks for infoo ,I have read that post but my issue still remains the same
column datatype in teradata is timestamp(0) and when i tried to cull data from TD to sas via pass through sql as
proc sql;
connect to teradata (user=&user password=&pwd mode=teradata);
create table mysas.data1 as
select * from connection to teradata(
/**********approaches i used so far****/
select employee_id , registration_date format =timestamp19.); fail
select employee_id , cast(registration_date as mm-dd-yyyy hh:mm:ss.); fail
disconnect to teradata;
quit;
could you help me how to get this thing into SAS
... View more
07-25-2016
02:32 PM
Your first code is SAS code.
Your second set of code is Teradata code, use SQL Pass Through - code is literally passed to Teradata server.
When end using a libname connection in EG you need to use SAS code.
... View more
05-24-2016
07:10 AM
i wrote this query using alias var names and yes sql in questions isnt correct it missed end statment .
But thanks both of you for revert.
... View more
03-07-2016
03:23 AM
Then we need to add an additional flag for the processing of each subscriber_num:
data have;
length yyyymm $6;
input subscriber_num yyyymm id_flg;
cards;
101 201512 1
101 201511 23
101 201510 223
102 201512 .
102 201511 1
102 201501 54
103 201512 .
103 201511 .
103 201510 1
;
run;
data want (keep=subscriber_num var_m1_m4);
set have;
by subscriber_num;
retain flag;
if first.subscriber_num then flag = 1;
if id_flg > 0 and flag
then do;
var_m1_m4 = intck('month',input(yyyymm!!'01',yymmdd8.),'30jan2016'd);
if 1 <= var_m1_m4 <= 4
then do;
output;
flag = 0;
end;
end;
run;
... View more
10-22-2015
10:57 AM
It would be helpful if you also attached the huang_bal_04a dataset.
... View more
05-20-2015
11:09 AM
Thanks all of you for your help * Support ..that's the only reason i love this community
... View more
05-06-2015
12:35 AM
Yes RW9@ & KurtBremser... i agree there are multiple ways but couldn't bring them that time so used that.. actually i used earlier select a,b from (select id ,cat from T 1 where some condition) aliasname....as i forgot to put this alias name so it makes me to put question here on discussion portal ...but thanks for the effrort you guys put ..i appreciate it .thanks..
... View more
01-08-2015
08:47 AM
It sounds like you want to fix that in your import before your data set is created. One way is to import the data as is and then run the script I've suggested, modified to reference your data of course. OR Highlight the line, hit CTRL+F and Find/Replace all _ using the "IN SELECTION" option.
... View more