05-31-2018
chimanbj
Obsidian | Level 7
Member since
06-23-2011
- 25 Posts
- 6 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by chimanbj
Subject Views Posted 24862 10-18-2016 03:21 PM 2315 09-20-2016 04:50 PM 2327 09-20-2016 04:18 PM 7816 07-18-2016 02:34 PM 7838 07-18-2016 11:24 AM 7869 07-18-2016 10:22 AM 4732 05-18-2016 10:41 PM 4757 05-17-2016 06:19 PM 3042 03-31-2016 04:08 PM 3057 03-30-2016 12:28 PM -
Activity Feed for chimanbj
- Liked Re: ODS excel & multiple sheets for Reeza. 10-18-2016 04:37 PM
- Posted Re: Lines Wrapping in ODS Excel - workaround on ODS and Base Reporting. 10-18-2016 03:21 PM
- Liked Re: Lines Wrapping in ODS Excel - workaround for SuzanneDorinski. 10-18-2016 03:21 PM
- Posted Re: Running a Macro for a control table of dates on SAS Programming. 09-20-2016 04:50 PM
- Posted Running a Macro for a control table of dates on SAS Programming. 09-20-2016 04:18 PM
- Posted Re: Capturing the number of records in an INFILE on SAS Programming. 07-18-2016 02:34 PM
- Posted Re: Capturing the number of records in an INFILE on SAS Programming. 07-18-2016 11:24 AM
- Posted Capturing the number of records in an INFILE on SAS Programming. 07-18-2016 10:22 AM
- Posted Re: ODS PDF - Scaling graphics on ODS and Base Reporting. 05-18-2016 10:41 PM
- Posted ODS PDF - Scaling graphics on ODS and Base Reporting. 05-17-2016 06:19 PM
- Posted Re: Multiple Reports in a single tab, repeated in multiple tabs on ODS and Base Reporting. 03-31-2016 04:08 PM
- Posted Re: Multiple Reports in a single tab, repeated in multiple tabs on ODS and Base Reporting. 03-30-2016 12:28 PM
- Liked Re: SAS pulling data incorrectly from Informix for Reeza. 03-30-2016 10:48 AM
- Liked Re: SAS pulling data incorrectly from Informix for Reeza. 03-30-2016 10:48 AM
- Liked Re: SAS pulling data incorrectly from Informix for mattshev. 03-30-2016 10:46 AM
- Posted Multiple Reports in a single tab, repeated in multiple tabs on ODS and Base Reporting. 03-30-2016 10:42 AM
- Posted Re: SAS pulling data incorrectly from Informix on SAS Programming. 03-08-2016 05:45 PM
- Posted Re: SAS pulling data incorrectly from Informix on SAS Programming. 03-08-2016 05:06 PM
- Posted Re: tagsets.ExcelXP Removing blank line between procedures on ODS and Base Reporting. 03-08-2016 02:57 PM
- Posted SAS pulling data incorrectly from Informix on SAS Programming. 03-08-2016 02:53 PM
-
Posts I Liked
Subject Likes Author Latest Post 12 5 1 1 1
10-18-2016
03:21 PM
This is brilliantly simple! This can solve so many problems. Thanks so much!
... View more
09-20-2016
04:50 PM
The shipping log is a contains a list of projects that have been delivered, as well as projects that are currently being worked on. I need to be able to see weekdays where no date occurred. I'm looking at two date fields, ship_date (actual deliveries) and contract_date (expected deliveries). There are some dates where I don't have an actual or expected. Those dates need to be tracked in my report as well as the dates where we have activity.
... View more
09-20-2016
04:18 PM
I'm trying to run a macro that gives counts of widgets by date. The macro give me a count of scheduled deliverables and a count of acutal deliverables for a given day. I want to loop through this macro "N" times, based on the dates that are in a separate table. This table would contain dates for the year that are work days, excluding holidays and weekends.
Ultimately, I'd like to set up the date table such that I have dates for the next few years, and set the code so that it controls for when the date in the control table doesn't exceed the current date.
Here's the macro as it currently stands:
%macro takt(rptdate); proc sql; create table takt_data as select "&rptdate" as report_date, sum(ship_date = input("&rptdate",mmddyy10.)) as actual, sum(contract_date = input("&rptdate",mmddyy10.)) as planned, calculated actual / calculated planned as takt_index from shippinglog where substr(project,1,2) <> "CD" ; quit; proc append base = takt data = takt_data force; quit; %mend takt; %takt(09/01/2016); %takt(09/02/2016); %takt(09/05/2016); %takt(09/06/2016); %takt(09/07/2016); %takt(09/08/2016); %takt(09/09/2016); %takt(09/12/2016); %takt(09/13/2016); %takt(09/14/2016); %takt(09/15/2016); %takt(09/16/2016); %takt(09/19/2016); %takt(09/20/2016);
... View more
07-18-2016
02:34 PM
Sometimes the answer is as plain as the nose on your face.
Thanks!
... View more
07-18-2016
11:24 AM
I was hoping that the &sysnobs macro variable would do the trick. Unfortunately, it seems to capture the number of records in the output dataset, not the input dataset. When I add a subsetting IF statement, I only get the number of records that qualified for the IF statement.
Unfortunately, I don't have control over the way the files are sent to me, so I can't require the changing of input formats, and the like.
I'm open to other suggestions.
... View more
07-18-2016
10:22 AM
Greetings!
I'm trying to write code that will identify when a data step has gone awry. Essentially, I want to capture the number of records that are read from and INFILE and compare it to the resulting data set. I can get the number of observations in the SAS data set, but I am at a loss as to how to capture the number of observations in the INFILE (external dataset). I know that SAS has it in one of the many temporary variables, as it prints it out in the log. I want to be able to use that information to create a report, verifying that the number of records read in matches the number of recors written out.
"NOTE: 39917 records were read from the infile"
... View more
05-17-2016
06:19 PM
Hello!
I am trying to create a cover page in a PDF, and have found an option in ODS LAYOUT/REGION that allows for the scaling of images. The syntax looks like this:
ODS REGION x=90 pct y=10.3 in width=1 in height=1 in; ODS PDF text="^S={postimage='R:\SESUG 2008\hmc.bmp^scalewidth'}";
The ^scalewidth or other variants of the same don't work. I can accept that the commands are old, but were they replaced, or do I have to do my own scaling outside of SAS for a PDF report?
... View more
03-31-2016
04:08 PM
The sheet_interval along with the sheet_name is what makes it work.
Thanks so much!!!
... View more
03-30-2016
12:28 PM
Thanks for your reply. This gave me interesting results. Indeed, two tabs were created, but the tabs were labeled "Job 1 - Freq" and "Test 2 - Means"
I'm not sure where SAS is getting those names...
... View more
03-30-2016
10:42 AM
I'm doing something that I was hoping would be straightforward, but I'm finding it difficult to get to the "right" answer. I have a report that I'm creating for a hospital system. The report consists of 4 separate proc report statements. I am able to put them all on one tab for a single facility. However, when I try to have each set of 4 reports into separate tabs of the same workbook, I can't figure out which option I need to use. My current workaround is to have each tab written out as separate worksheets. This requires me to put it back together manually, which I would like to avoid.
The tagset statement I"m using is:
ods tagsets.ExcelXP file="&datadir\&hosp..xml" style = printer options(embedded_titles='yes' sheet_interval='none' skip_space='0,0,0,1,1' sheet_name="&hospname" /*doc='help'*/) ;
I'm open to all suggestions.
... View more
03-08-2016
05:45 PM
Here is the code:
libname dblib informix server=dbname; proc print data = dblib.data_table(obs=10110 firstobs=10100); format _all_; run;
... View more
03-08-2016
05:06 PM
The issue is happening during a PROC PRINT. Others have reported the same issue with a Data Step. I wish it were as simple as a Data Step. I'm thinking it has something to do with the Informix driver, but I'm not sure...
... View more
03-08-2016
02:57 PM
Thank you for that solution!
... View more
03-08-2016
02:53 PM
Hello!
We are running SAS 9.4 (TS1M3), and have found a bizzare problem. When pulling data from an Informix database, we are finding that SAS is not re-initializing fields after every record. This is resulting in data from the previous record being put into the subsequent record, if the subsequent record is blank.
Here is an example, for clarity:
In Informix -
Record 1 -> Total Charge value of 5494.32
Record 2 -> Total Charge is missing
With SAS -
Record 1 -> Total Charge value of 5494.32
Record 2 -> Total Charge value of 5495.32
The SAS information was determined by using Proc Print. The connection is made with a libname statement (libname state informix server=dbname).
Has anyone seen this, and can tell me what might be causing this issue?
... View more
- Tags:
- INFORMIX