02-27-2018
Data_User
Quartz | Level 8
Member since
02-10-2017
- 46 Posts
- 16 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by Data_User
Subject Views Posted 3975 01-05-2018 09:32 AM 4021 01-05-2018 07:28 AM 4029 01-05-2018 07:16 AM 2274 07-13-2017 06:05 AM 3177 06-27-2017 10:14 AM 3179 06-27-2017 10:13 AM 3232 06-27-2017 06:27 AM 1510 06-26-2017 09:23 AM 1513 06-26-2017 09:22 AM 1550 06-26-2017 08:45 AM -
Activity Feed for Data_User
- Posted Re: Months Difference between two dates with exact figures including decimals on SAS Enterprise Guide. 01-05-2018 09:32 AM
- Posted Re: Months Difference between two dates with exact figures including decimals on SAS Enterprise Guide. 01-05-2018 07:28 AM
- Posted Months Difference between two dates with exact figures including decimals on SAS Enterprise Guide. 01-05-2018 07:16 AM
- Posted Converting SQL Code to SAS on SAS Programming. 07-13-2017 06:05 AM
- Liked Re: Moving observations in the required position for Astounding. 06-27-2017 10:15 AM
- Posted Re: Moving observations in the required position on SAS Programming. 06-27-2017 10:14 AM
- Liked Re: Moving observations in the required position for RW9. 06-27-2017 10:14 AM
- Posted Re: Moving observations in the required position on SAS Programming. 06-27-2017 10:13 AM
- Liked Re: Moving observations in the required position for Kurt_Bremser. 06-27-2017 10:12 AM
- Liked Re: Moving observations in the required position for slchen. 06-27-2017 10:12 AM
- Posted Moving observations in the required position on SAS Programming. 06-27-2017 06:27 AM
- Posted Re: Ordering without sorting on SAS Programming. 06-26-2017 09:23 AM
- Posted Re: Ordering without sorting on SAS Programming. 06-26-2017 09:22 AM
- Liked Re: Ordering without sorting for Astounding. 06-26-2017 09:21 AM
- Posted Ordering without sorting on SAS Programming. 06-26-2017 08:45 AM
- Posted Re: Reading Tab delimited file with non standard data on SAS Programming. 06-17-2017 06:43 PM
- Liked Re: Reading Tab delimited file with non standard data for Tom. 06-17-2017 06:41 PM
- Posted Re: Reading Tab delimited file with non standard data on SAS Programming. 06-17-2017 05:46 PM
- Liked Re: Reading Tab delimited file with non standard data for SuzanneDorinski. 06-17-2017 05:46 PM
- Posted Re: Reading Tab delimited file with non standard data on SAS Programming. 06-17-2017 05:32 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 2 1 3
01-05-2018
12:13 PM
@Data_User you are welcome. If your question has been answered, please mark one of the answers as an accepted solution.
... View more
07-13-2017
06:41 AM
Yes:
decode - you can replace this in a couple of ways, formats, or case when <> then <> else <> end statements.
to_number - you can replace this with input(<>,best.)
to_char - you can replace with put(<>,best
sign - again number of different ways but case when <> < 0 then -1 when <> =0 then 0 else 1 end
(note <> is your logic or variable).
Also note, I dont think that SQL code will wok as you expect as you are aggregating (sum,count) by a group, but you also have where clauses and variables which are not aggregated.
... View more
06-27-2017
10:27 AM
1 Like
No problem. Just for the record, you can still do this in one step, using mildly similar tools:
data want;
set have (where=(f1 ne : '%')) have (where=(f1 =: '%'));
run;
It's untested, but should work if you are identifying the "bottom" columns as those where F1 begins with "%".
... View more
06-26-2017
09:23 AM
I just wanted to move 1st obs to the last obs. It's working as i expected from the below solution provided by @Astounding. Thanks for your efforts too.
... View more
06-17-2017
06:43 PM
Hi Tom, This is awesome too! It's perfectly working. Your contribution is much appreciated. Thanks
... View more
05-16-2017
09:46 AM
2 Likes
Hi: TAGSETS.EXCELXP does NOT, NOT, NOT, ever create an XLSX file. TAGSETS.EXCELXP can ONLY create a simple .XML file which contains Spreadsheet Markup Language 2003 XML tags for a workbook/worksheet. The "official" file extension is .XML. If you use a .XLS file extension, typically, Excel will open the file, but display a message about the file extension not matching the contents. With TAGSETS.EXCELXP you should NEVER use XLSX as the file extension. With ODS EXCEL, on the other hand, the ONLY file extension you should use is .XLSX. If you truly used ODS EXCEL, then you should be able to open the .XLSX file with Excel, if you a creating the file on a Unix box, you might have to move the .XLSX file to a Windows machine so you can open the file. If you are using TAGSETS.EXCELXP, try using the simple .XML file extension and then moving the file to a system with Excel to open the file. cynthia
... View more
03-08-2017
05:02 PM
I am not sure that your response to this question understood what I was asking:
2) describe the exact output desired by the macro. Since your apparent desire is to have random values inserted into the data then there are LOTS of things that would have to be considered, such as what values are assingned to any other variables involved in the data set -
Ans2: I have different formats for each variable passing through the macro. Based on the raw values for each field corresponding formats will be applied
If you have variables a, b, c in the data and you are doing what ever you want to call this process to the data to generate your new dataset with the formatted values of A, what would be the values for variables B and C? If they are not in the result then I submit that proc tabulate may be a valid choice with the OUT= option to create a data set. One of the things in the output is a _type_ variable to tell you which table to select to generate your single variable datasets. But if you need any thing other than the single variable's formatted value and a count you need to be very explicit about where the values for any other variables come from.
... View more
02-16-2017
06:04 PM
Hello Everyone, Thanks very much for your contributions. I have solved my objective through the methods you have explained. I really appreciate all your help on this. Best Regards
... View more