06-25-2023
sameer112217
Quartz | Level 8
Member since
06-12-2016
- 117 Posts
- 20 Likes Given
- 0 Solutions
- 2 Likes Received
-
Latest posts by sameer112217
Subject Views Posted 1828 06-12-2023 09:07 AM 525 06-12-2023 09:03 AM 6239 06-30-2022 01:49 PM 1292 07-06-2020 05:28 PM 2206 07-05-2020 04:46 PM 2130 03-01-2020 01:59 AM 2131 03-01-2020 01:58 AM 2222 02-29-2020 01:35 AM 1434 10-15-2019 02:02 PM 1435 10-15-2019 02:01 PM -
Activity Feed for sameer112217
- Posted Excel cell in SAS Excel Add in as input parameter to infomap table on SAS Web Report Studio. 06-12-2023 09:07 AM
- Posted Proc Report - Email Size on SAS Programming. 06-12-2023 09:03 AM
- Liked Re: How do i Transpose column into Rows? for Tom. 06-30-2022 02:00 PM
- Posted How do i Transpose column into Rows? on SAS Programming. 06-30-2022 01:49 PM
- Posted Inner Join based on word in two variables on SAS Programming. 07-06-2020 05:28 PM
- Liked Re: Transpose Column into rows for s_lassen. 07-06-2020 05:13 PM
- Liked Re: Transpose Column into rows for novinosrin. 07-06-2020 05:13 PM
- Posted Transpose Column into rows on SAS Programming. 07-05-2020 04:46 PM
- Posted Re: extracting SAS word from string with special characters on SAS Programming. 03-01-2020 01:59 AM
- Posted Re: extracting SAS word from string with special characters on SAS Programming. 03-01-2020 01:58 AM
- Liked Re: extracting SAS word from string with special characters for ed_sas_member. 03-01-2020 01:57 AM
- Posted extracting SAS word from string with special characters on SAS Programming. 02-29-2020 01:35 AM
- Tagged extracting SAS word from string with special characters on SAS Programming. 02-29-2020 01:35 AM
- Posted Re: Proc Report Width on Statistical Procedures. 10-15-2019 02:02 PM
- Posted Re: Proc Report Width on Statistical Procedures. 10-15-2019 02:01 PM
- Posted Proc Report Width on Statistical Procedures. 10-14-2019 04:05 PM
- Posted Re: Proc Report sum and average on SAS Procedures. 09-08-2019 02:30 PM
- Posted Re: Proc Report sum and average on SAS Procedures. 09-08-2019 02:29 PM
- Posted Re: Proc Report sum and average on SAS Procedures. 09-08-2019 06:44 AM
- Posted Re: Proc Report sum and average on SAS Procedures. 09-07-2019 02:27 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 2 1 1 1 -
My Liked Posts
Subject Likes Posted 1 01-14-2019 07:19 AM 1 09-09-2017 11:23 AM
06-12-2023
09:07 AM
When I am opening information map table in SAS Add in excel it gives me a prompt for the date. When I enter the same it gives me output table in Excel. Is there any way around where I can use Excel cell as input parameter for the Infomap where it can display the results in Excel. Is there any other way around if this is not possible. Suppose on CEll A25 I have date value = 25Jun2022. Instead of entering the same in input parameter while opening infomap. can i use the cell a25 in excel as input? Let me know
... View more
06-12-2023
09:03 AM
When I am using the below code, I am seeing proper formatted reports in my EG but if I send it on email the columns are shrink and small. In my outlook email the output column is not aligned and formatted. When I am getting an option of how the message is displayed and to view it in a browser I am getting proper format and column width. IS there any way I can increase the size/width of column size. Is it code issue or email setting issue Proc Report data=BS1_Sample_code Missing split="*" nowd Style (report)= {just=left borderwidth=0.5 font =('zurich b',9PT) bordercolor=black font_size=2} Style (header)= {foreground=white background=blue font_size=2 font=('zurich b',9PT) fontweight=bold bordercolor=black} Style (column)= {just=center foreground=black font_size=2 borderwidth=0.5 borderstyle=solid bordercolor=black}; column ("Balance Sheet - Amount- (USD) in 1000's"(Entity_Cd Vs_Product VS_Product_L1 CURRENT_DAY_USD PREVIOUS_DAY_USD Variance Variance_per)); Define Entity_Cd/"ENTITY" group style={just=L cellwidth=0.9} ; Define Vs_Product/"Vs Product" group style={just=L cellwidth=0.9} ; Define VS_Product_L1/"VS_Product_L1" group style={just=L cellwidth=0.9} ; Define CURRENT_DAY_USD/analysis sum "11JUN2023 - AMOUNT USD" format= 20. style={just=r cellwidth=0.5}; Define PREVIOUS_DAY_USD/analysis sum "10JUN2023 - AMOUNT USD" format= 20. style={just=r cellwidth=0.5}; Define Variance/analysis sum "Variance" format= 20. style={just=r cellwidth=0.5}; Define Variance_per/"Variance %" computed format=percent8.2 style={just=r cellwidth=0.5}; compute Variance_per; Variance_per=(CURRENT_DAY_USD.sum-PREVIOUS_DAY_USD.sum)/PREVIOUS_DAY_USD.sum; endcomp; compute after Vs_Product; Vs_Product="Total"||''||Vs_Product; call define(_row_,"style","style={background=cxEEFFFF}"); endcomp; break after Vs_Product / dol skip summarize; rbreak after / style ={background=brown};
... View more
06-30-2022
01:49 PM
Need help, I have an input table like this. I want to transpose the values in agriemail and sigrimeial against cluster and cluster1 in rows from columns Input Table CLUSTER CLUSTER1 AGRIEMAIL SIGRIEMAIL AJMER AGRI PROD sameer1122@yahoo.com hardik@yahoo.com AJMER AGRI PROD amit1122@yahoo.com umran@yahoo.com AJMER AGRI PROD nikhil@yahoo.com rahul@yahoo.com SURAT SIGRI GOLD rajesh@yahoo.com virat@yahoo.com SURAT SIGRI GOLD Kranti@yahoo.com rohit@yahoo.com SURAT SIGRI GOLD Nitin@yahoo.com shami@yahoo.com Want output like this CLUSTER CLUSTER1 Email1 Email2 Email3 AJMER AGRI PROD sameer1122@yahoo.com amit1122@yahoo.com nikhil@yahoo.com AJMER AGRI PROD sameer1122@yahoo.com amit1122@yahoo.com nikhil@yahoo.com AJMER AGRI PROD sameer1122@yahoo.com amit1122@yahoo.com nikhil@yahoo.com SURAT SIGRI GOLD virat@yahoo.com rohit@yahoo.com shami@yahoo.com SURAT SIGRI GOLD virat@yahoo.com rohit@yahoo.com shami@yahoo.com SURAT SIGRI GOLD virat@yahoo.com rohit@yahoo.com shami@yahoo.com It can be email 1-50. Tried Proc Transpose but it did not work Proc Transpose data = sample out=output by cluster cluster1; id email1 var agriemail sigriemail; run; Not getting desired output.
... View more
07-06-2020
05:28 PM
I have two tables and want to have inner join. The issue is I want to join where even one word is common where application name is common variable Table one Application_Name ETOL Pune INDIA UPI Mumbai ETOS India Ltd CISCO REDHAT Infosys Table two Application_Name ETOS UPI CISCO DELHI IBM SYNTEL WIPRO I want to have inner join even if one word in both the tables are common with below desired output UPI Mumbai ETOS India Ltd CISCO I tried code Proc SQL; Create table want as select a.application_name from one a inner join two b on a.application_name contains b.application_name' quit; But if i use contains I might miss Cisco in table B which has more words. I am looking for a solution where it should have inner join even if one word in both tables application_name matches..
... View more
07-05-2020
04:46 PM
Hello! Below is my dataset. This is company hierarchy level data Owner Owner1 Owner2 Tom Sam Radha Tom Sam Jane Tom Jack Chang Jane Vijay Ajay Jane Uma Sandeep Jane Peter Brian Jane Peter Lance Tom and Jane are level 7 Managers, Sam and Jack Reports to Tom and then there are people under Sam and Jack. I need the below data as my output Owner1 Owner2 Owner3 Owner4 Owner5 Owner6 Owner7 Owner8 Tom Sam Jack Radha Jane Chang Jane Peter Vijay uma Ajay Sandeep Brian Lance Based on the Name variable grouping (first column, I want everyone under Tom and those employees under his hierarchy. Similarly for Jane. I have worked on a logic but it looks too long. Split the table into two tables based on group. In my real example table there are 7 groups. Then bring all the three columns values into one column Use distinct and transpose. Append all table Let me know if there is better approach.
... View more
03-01-2020
01:59 AM
Thank you this is what i have been looking... i thank you so much for the help.
... View more
03-01-2020
01:58 AM
thanks tom, this is what i was looking exactly....
... View more
02-29-2020
01:35 AM
I need help I have a variable with text description name as description Description i am repairing the system with 1.11.1.123 I am done with system 1.23.1.120 and not 192.1.21.1 that lives in apt 5 i am not doing for 1.22.3.130 for person living in apartment 4 I am working on system 1.21.1.119 I just want to extract only the ip address. the ip address starts with special character 1. or by 192. so the output should be like this 1.11.1.123 1.23.1.120 192.1.21.1 122.3.130 1.21.1.119 I tried substring using index but it doesnt work out Sameer
... View more
- Tags:
- Extract from string
10-15-2019
02:01 PM
%macro Consolidated_reporting; proc format; picture hextraffic low-<0 = "green" other = "lightgrey" ; run; options missing=0; ODS _ALL_ CLOSE; filename mailbox email TO= ('cccc@xrgmail.com' 'cccc@idfcfirstbank.com' 'ccccc@xrgmail.com' 'ccccc@ext-mails.com') /*CC=*/ /*(*/ /**/ /*)*/ type='text/html' subject="Alliance MIS Report for the Consolidated partners" ATTACH="F:\IT_Projects\Strategic_Alliance_MBL\Strategic_Alliance_MBLMIS.xlsx"; ods html file=mailbox rs=none ; OPTIONS MISSING=0; PROC ODSTEXT; P "Dear All,"; p " "; p " Please find the attached Consolidated Partners BIL/LAP MIS as on &cur_date. "; p " "; P " Disb Potential is a sum of all Pending Disb cases (mentioned above) and Disbursed Cases" ; p " "; P " Please note that the amount numbers are in lakhs" ; RUN; ODS LAYOUT START COLUMNS=1 WIDTH=40.0IN HEIGHT=4.0IN; ODS REGION; options missing=0; PROC REPORT DATA=final_report3 style(report) = {just=left borderwidth=0.5 font = ('zurich BT',8PT) bordercolor = black} style(header) = {foreground = white background = maroon font = ('zurich BT',8PT) fontweight = bold bordercolor =black} style(column) = {just=left foreground = black borderwidth = 0.5 borderstyle=solid bordercolor = black}; format app_cm_amt 5.2 dis_cm_amt 5.2 dis_cm_count 5.2 log_cm_amt 5.2 TARGET 5.2 DIFF 5.2; format length PARTNER_PRODUCT $32.; COLUMN PARTNER_PRODUCT Partner log_cm_count log_cm_amt app_cm_count app_cm_amt TARGET dis_cm_count dis_cm_amt DIFF ; define PARTNER_PRODUCT/group 'PARTNER_PRODUCT' format=$32. ; DEFINE Partner/GROUP 'PARTNER' ; define log_cm_count/analysis ' LOGIN_CM_CT ' style(column)={just=c CELLWIDTH =1.0in }; define log_cm_amt/analysis 'LOGIN_CM_AMT' style(column)={just=c CELLWIDTH =1.0in }; define app_cm_count/analysis 'APR_CM_AMT' style(column)={just=c CELLWIDTH =1.0in }; define app_cm_amt/analysis 'APR_CM_AMT' style(column)={just=c CELLWIDTH =1.0in }; define target/analysis style(column)={just=c CELLWIDTH =1.0in background=lightbrown}; define dis_cm_count/analysis 'DISB_CM_CT' style(column)={just=c CELLWIDTH =1.0in }; define dis_cm_amt/analysis 'DISB_CM_AMT' style(column)={just=c CELLWIDTH =1.0in background=lightbrown}; define DIFF/computed format=5.2 style(column)={just=c CELLWIDTH =1.0in background=hextraffic.};; compute DIFF/; DIFF=target.sum-dis_cm_amt.sum; endcomp; compute after PARTNER_PRODUCT; PARTNER_PRODUCT='SUBT'; endcomp; /*break after state/summarize;*/ /**/ /*break after zone/summarize;*/ /*rbrEAK AFTER /SUMMARIzE DOL DUL;*/ compute after; PARTNER_PRODUCT= 'TOTAL'; endcomp; break after PARTNER_PRODUCT/summarize style=Header {background=darkbrown foreground=white} ; /*break after PARTNER/summarize style =Header {background=lightyellow} ;*/ rbreak after/summarize style= Header {background=maroon foreground=white FONT_WEIGHT=bold}; run; %mend; Consolidated_reporting;
... View more
10-14-2019
04:05 PM
My issue is that I created a report in Proc Report. When I ran it, it worked fine. I used one variable as across, so it increased the width of the report. In the email trigger, I am not able to view it completely. layout start width=8.5in height=11in; I tried increasing the width of 100% or 100 inch. How can increase it further in the email body as I used html body.Is there alternative? Sameer
... View more
09-08-2019
02:29 PM
09-08-2019
06:44 AM
Hello paigemiller, here i remove it proc report data=sample; column zone state selling_price target diff; define zone/group; define state/group; define selling_price/sum; define target/mean; define diff/computed; compute diff; diff=selling_price.sum-target.mean; endcomp; compute after zone; zone=catx('',propcase(zone),'Subtotal'); line ''; endcomp; /*break after state/summarize;*/ break after zone/summarize; rbrEAK AFTER /SUMMARIzE DOL DUL; compute after; state= 'Total'; endcomp; run;
... View more
09-07-2019
02:27 PM
The subtotal and total I need is sum of the target. The target column numbers I had to add it in the above code, hence I had to use mean/average but while doing total I need the sum. Is there any way to do it. Also the zone subtotal using catx is showing shorter length. is there any way to increase it
... View more