07-20-2017
Sir_Highbury
Quartz | Level 8
Member since
03-25-2016
- 127 Posts
- 17 Likes Given
- 0 Solutions
- 1 Likes Received
-
Latest posts by Sir_Highbury
Subject Views Posted 1010 02-22-2017 11:24 AM 1984 02-17-2017 05:12 AM 1997 02-17-2017 04:51 AM 2006 02-17-2017 04:20 AM 4483 01-09-2017 10:53 AM 4484 01-09-2017 10:52 AM 4509 01-09-2017 09:00 AM 4529 01-09-2017 07:17 AM 1708 12-16-2016 03:24 AM 1736 12-15-2016 11:16 AM -
Activity Feed for Sir_Highbury
- Got a Like for Proc import csv specify a row for headers and a row for the first observation. 08-09-2018 08:28 AM
- Posted concetenate stringr and variable to generate a new variable on SAS Programming. 02-22-2017 11:24 AM
- Posted Re: connect sql database DB instance ip port on SAS Programming. 02-17-2017 05:12 AM
- Posted Re: connect sql database DB instance ip port on SAS Programming. 02-17-2017 04:51 AM
- Posted connect sql database DB instance ip port on SAS Programming. 02-17-2017 04:20 AM
- Posted Re: infile delimiter variables shifted on SAS Programming. 01-09-2017 10:53 AM
- Posted Re: infile delimiter variables shifted on SAS Programming. 01-09-2017 10:52 AM
- Posted Re: infile delimiter variables shifted on SAS Programming. 01-09-2017 09:00 AM
- Posted infile delimiter variables shifted on SAS Programming. 01-09-2017 07:17 AM
- Posted Re: show for the same variable some observations as numeric and some as date on SAS Programming. 12-16-2016 03:24 AM
- Liked Re: show for the same variable as numeric or date for RW9. 12-16-2016 03:23 AM
- Posted show for the same variable as numeric or date on SAS Programming. 12-15-2016 11:16 AM
- Posted show for the same variable some observations as numeric and some as date on SAS Programming. 12-15-2016 11:15 AM
- Posted Re: rename variables dropping a prefix on SAS Programming. 11-21-2016 11:53 AM
- Posted rename variables dropping a prefix on SAS Programming. 11-21-2016 08:21 AM
- Liked Re: call variables using a macro for PeterClemmensen. 11-14-2016 03:17 AM
- Posted call variables using a macro on SAS Programming. 11-14-2016 02:30 AM
- Posted Creating times stamp on output files on SAS Programming. 11-10-2016 03:40 AM
- Posted Re: ods pdf table of contents under the pictures on SAS Programming. 10-31-2016 05:41 AM
- Posted ods pdf table of contents under the pictures on SAS Programming. 10-31-2016 04:31 AM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 1 2 1 -
My Liked Posts
Subject Likes Posted 1 04-05-2016 10:37 AM
02-22-2017
11:24 AM
Dear experts, I have a variable called as follows: %let date=200907; And a table containing the following variables: AA_200901, AA_200902, AA_200903, AA_200904, B, C, D In the proc sql; I would like to select: B, C, D and AA_+&date. Any idea on how to do it? I would like to keep it as simple as possible. Thanks a lot in advance. SH
... View more
02-17-2017
05:12 AM
Dear Kiwi, I saw it immediately after I posted the question, sorry but still I do not get to the point. I get the following errors: ERROR: The ORACLE engine cannot be found. ERROR: Error in the LIBNAME statement. This is the reason why I asked if the component installed in my SAS version are enough....
... View more
02-17-2017
04:51 AM
I just runned a proc setinit and this is the result: ---SAS Workspace Server for Local Access is ist enough to access the DB via the parameters above described? Thanks again!
... View more
02-17-2017
04:20 AM
Dear experts, I was used to access sql database using the following parameters: LIBNAME NOP ORACLE PATH="klm" SCHEMA=abc USER=def PASSWORD=ghi ; Now I got the following data that should allow me to access a DB: DB user/password: abc/def DB Instance: ghi DB machine: srv001 (IP: 22.22.22.222) DB port: 222 Is it enough? I searched a lot but I did not find any string fitting these given parameters. Thanks a lot in advance for your support. Best regards, SH
... View more
01-09-2017
10:53 AM
@Shmuelthanks for the explanation, I am traing to go in the direction you suggested, if you can posta code... even better. BRs, SH
... View more
01-09-2017
10:52 AM
Dear @Daniel-Santos, nice to know that you agree but I posted what I can. Of course it is a guess, if you do not have a best guess, the problem is for you too complex and you cannot support, feel free to ignore the topic and avoid redundancies. But thanks for the effort.
... View more
01-09-2017
09:00 AM
Dear experts, I understand that "probably" the file is not properly structured to be a csv but this is what I have, let's put in this way: the file's extensions is .csv @ShmuelI have several variables, e.g. name, surname and addresse is just one of them. In most of the cases the cell where the address is contained is of 3 rows but this is not always he case, sometimes. Would you have a suggestion in case I would have always 3 rows? Maybe it could be already step forward. Output example: if the address as a variable is before the last column which is gender. I would like to get: as variable address: Diego Costa Private Limited | z.H. Cesc Fabregas | Dr. BRUG Wenger, Loftus Road Bistocchi 642009 Bangladesh Gender: "Male" (an not Fabregas) Best regards, SH
... View more
01-09-2017
07:17 AM
Dear experts, I need to import some files from a Csv. I am using " infile -> informat -> format" But I am struggling with the field address that contains almost everything in term of delimiters, kind of information, number of rows. Any good suggestion to cope with it efficently, i.e. getting all the data in a string for the same variable. Here two examples of the cells that are generating problems: 1. 65, Zenedine Zidane Brügge 7100 BELGIUM 2, Diego Costa Private Limited | z.H. Cesc Fabregas | Dr. BRUG Wenger, Loftus Road Bistocchi 642009 Bangladesh How to import the data in order to be sure to get the content as one record each? I am using the following delimiter "¦" to avoid confusion but still due to the several rows in the address the csv is not correctly imported. Thank in advance, SH.
... View more
12-16-2016
03:24 AM
of course, sorry I did it by mistake.
... View more
12-15-2016
11:16 AM
Dear expert, after some checks I get a data set with the following structure: data b; input type: $12. variable: $12. variable_min; datalines; date begin 2000 num price 3000 date end 2500 ;run; How can I show for the same variable (variable_min) in some cases (when type='date') as date and in some cases (when type='num') as numeric? Thanks in advance, SH.
... View more
12-15-2016
11:15 AM
Dear expert, after some checks I get a data set with the following structure: data b; input type: $12. variable: $12. variable_min; datalines; date begin 2000 num price 3000 date end 2500 ;run; How can I show for the same variable (variable_min) in some cases (when type='date') as date and in some cases (when type='num') as numeric? Thanks in advance, SH.
... View more
11-21-2016
11:53 AM
so based on your understanding the issue was to find a valid SAS name for a dataset? Thanks for your effort but please avoid to spam the forum answering if you can contribute to solve the issue.
... View more
11-21-2016
08:21 AM
Dear experts, givedn the following two datasets: data a; input country: $12. month_201601: $25. month_201602: $25. month_201603: $25.; datalines; russia 20 30 40 50 belgium 0 0 0 0 germany 10 20 30 40 ;run; data b; input country: $12. sales_201601: $25. sales_201602: $25. sales_201603: $25.; datalines; russia 20 30 40 50 belgium 0 0 0 0 germany 10 20 30 40 ;run; I need to merge the data into a unique data set. How can I adjust the variable names droppin the prefix, i.e. sales_201601 renamed as 201601 and month201601 as 201601. Afterward I could easily append them. Thanks in advance, SH.
... View more
11-14-2016
02:30 AM
Dear Expert, I should do a calculation calculate the difference between two variables: - dataset_201610 - dataset 201609 starting from the point that: ¤t.=201610 &prev.=201609 How can I flexibly specify the columns using something like: data_set_"¤t."-data_set_"&prev."? Thanks a lot in advance, SH
... View more
11-10-2016
03:40 AM
Dear experts,
how can should I adjust the following data set?
data time_stamp;
input status $ date time;
datalines;
start '%put %sysfunc(date(),worddate.).' '%put %sysfunc(time(),timeampm.)'
;
Thanks, SH
... View more