Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: shenniko
  • Content: Threads
  • Order by date
  1. shenniko

    Arguments/Parameter count

    Hi All, I need a little bit of scripting help here. Within OBIEE (web based Business Intelligence tool) we send a file to a VBscript with a list of Arguments/Parameters. Now generally i know you can use the below code to count the number of arguments passed: Set objArgs = Wscript.Arguments...
  2. shenniko

    Quotes!

    Hi, I've pulled a list of about 3k Excel Documents in a folder on our network drive. I want to loop through those documents and DDE in some information (there are about 200+ values in the document but will only list 2 of them below) The problem im having is when there is an & or a ' in the...
  3. shenniko

    DDE to Excel

    Hi All, Need a little bit of help/info. I'm trying to setup some automation with the reports in my new workplace which uses Excel and DDE quite heavily. Now using DDE to enter data into a worksheet isn't a problem when using the triplet, but the problem I've bumped into is Saving and closing...
  4. shenniko

    Table Ownership

    Hi All, Need a bit of help. Is there a way to list all tables that I own in a Library? The reason for this is because our SAS admin have decided to make it so that only the people who created the table, can make changes to it.. So.. I want to make a little program that looks in a Library and...
  5. shenniko

    MySQL connect.

    Hi All, Need a little bit of help... Im trying to connect to a MySQL database though SAS, apparenly the MySQL connect Engine isnt installed, but the ODBC engine is. So the connection would need to be done though that.. I've tried to connect using the below:- libname tastedb ODBC...
  6. shenniko

    Search Variable for text string

    Hi all, Need a little bit of help. In my dataset i have a variable called comments, i want to search that variable for a specific text string. I've done the below if index(Concat_Comments, "1091") then Error = "Y"; Else Error = "N"; But the only problem is its bringing back customers...
  7. shenniko

    FTP - Unix

    Hi all, At the moment we are running all our programs on our local machine (Rsubmit-ing them). But due to increased workload we planning on scheduling some of them on the SAS server. So the FTP script were using wont work, as the script is meant for windows... and i've no idea about unix...
  8. shenniko

    SAS Error

    Hi All, Need a little bit of help here... Think i have everyone baffled in work regarding this... Im trying to run the below code remotely:- filename Runcode "Drill_Hod.SAS"; Data Franchise_Output_Macro; file runcode; set Drill_Hod; Length Mac_String $500...
  9. shenniko

    Rsubmit - Unix?

    Hi All, Not 100% sure about this question as only know a little bit about what happens when you rsubmit things... Below code:- rsubmit; filename Runcode "Macro_Runs.SAS"; Data t1; set Product_Links; File Runcode; Length SubStr $200; If Franchise NE "All" Then SubStr =...
  10. shenniko

    intck('weekday'

    Hi All, Need some help with the intck('weekday' statement... I have the below code. Data Test; DateDiff = intck('weekday', '01JUN2007'd, '12JUN2007'd); run; Now there should be 8 weekdays between those two dates, but when i run the code i only get 7... I want to see how many weekdays...
  11. shenniko

    intnx

    Hi all, Need some help with the below statement:- if run_day = 1 then sunday=&last_rundate-7; else sunday = intnx('week.2',&last_rundate,-2,'end'); Last_rundate is today()-1; run_day = weekday(&last_rundate); I've been trying to figure out what the above does for the past day now, i...
  12. shenniko

    Embeding ODS HTML in E-mail

    When sending an E-mail through SAS, is there a way to Embed an ODS HTML report in that E-mail instead of sending it as an attachment?? Thanks in advance Robbie
  13. shenniko

    Last Modified

    Is there any way that i can find out when a Dataset Was Created and Last Modified with SAS Code? Im trying to write a Data Check Macro to Check all of our Datasets (provided by another department), to see if and when they were updated. So the macro will check when it was created, when it was...
  14. shenniko

    SAS E-mail

    Hi, Need some help from you guys... Im using SAS to auto send an e-mail when my SAS report has finished using the below code:- filename mymail email ("Name1") subject="Please find attached Potential Saves for &yest." attach=("T:\TRAC\Robbie\Failed_Trucks\saves.zip"); data _null_...
  15. shenniko

    ODS HTML

    Hi Guys need a little help again, I've noticed that when using ODS HTML it auto inserts some JavaScript:- <SCRIPT LANGUAGE="JavaScript"> <!-- // This script is to load all object onLoad() functions function startup(){ } function shutdown(){ } //--> </SCRIPT> into the HTML files, which is...
  16. shenniko

    Check Variable.

    Hi Guys need some help, Have the following code below:- proc sql noprint; select count (Holiday) into :count_Line from Merged Where Holiday ne ""; quit; %if (&count_Line ne 0) %then %do; %ChkHolidays(); %end; Which does a count on the holiday Field in the Merged Table and puts...
  17. shenniko

    Date to Text

    Hi, Need some help.. Ive got a Dataset with a few variables, one of them being a Date field, and another one being a Temperature. What i want to do is combine the Date and the temp field in a text variable.. So at the moment the Date field is shown as Date9. (02Jul2005) So when i try...
  18. shenniko

    Macro's creating folder on Export.

    Hi all, Need some help again, I've a macro setup to export a series of CSV files for each region we have, and this report will be ran monthly. But what i would like it to do is export the CSV files to its own folder depenging on the Month/Year... E.g Running this report now, it should create...
  19. shenniko

    Macro Problem

    Hi, Having a little problem with a Macro. Every time i run the macro, my SAS session will hang at the very end.. %Macro Region(FTitle=,Franchise=); Data &FTitle.; set rwork.Restoration_data; Where Franchise = "&Franchise."; Keep Franchise Account_No Workorder Problem_Code Problem_Desc...
  20. shenniko

    First. and Last.

    Hi guys, Need some of your expert wisdom! :) This is the first time im using the First. and Last. and im having a little trouble... Ive the following code below:- Data Telco_Features_By; set Telco_Features_Raw; By Workorder; retain last_Act_date MyCount; if (first.Workorder) then...

Part and Inventory Search

Back
Top