BookmarkSubscribeRSS Feed
plkkw
Calcite | Level 5

can I use DOS command to create scheduling of a specified report?

2 REPLIES 2
JohnT
Quartz | Level 8

Hi plkkw,

Not sure what kind of scheduling you want in Web Report Studio which uses a DOS command, however, this is what I've used in the past:

net use s: \\sydfs01\SASdata
net use h: \\sydfs02\shareddata
net use m: \\Sydfs01\SASdata\Sasuserdata\SAS_Output

#allows us to run SAS without having to reference directory
path = "C:\Program Files\SAS\SASFoundation\9.2"

#sas flags used for running jobs in batch
set sas_options = -nosplash -noxwait -noxsync -noterminal -icon

#location of work folders for SAS
set work_path = -work "s:\sasusertemp\"

#sas job shortener
set sj = %%work_path%% %%sas_options%% -sysin


#list of jobs to run
###sas %sj% "H:\Technical\Data\Agencies\Sirius\SAS prog\1. Downloading Sirius Tables.sas"
sas %sj% "H:\Technical\Data\Agencies\Sirius\SAS prog\2. Creating Base Tables.sas"

^^

It was used in conjunction with Windows Scheduler though.

plkkw
Calcite | Level 5

Hi John T,

let me test it later.

many thanks

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1033 views
  • 0 likes
  • 2 in conversation