Date and Time Commands
Page 262 7210 SAS M, X Basic System Configuration Guide
weekday
Syntax [no] weekday {weekday-number [..weekday-number]|day-name [..day-name]| all}
Context config>cron>sched
Description This command specifies which days of the week that the schedule will fire on. Multiple days of the
week can be specified. When multiple days are configured, each of them will cause the schedule to
occur. If a weekday is configured without configuring month, day-of-month, hour and minute, the
event will not execute.
Using the weekday command as well as the day-of month command will cause the script to run
twice. For example, consider that “today” is Monday January 1. If “Tuesday January 5” is configured,
the script will run on Tuesday (tomorrow) as well as January 5 (Friday).
The no form of this command removes the specified weekday from the configuration.
Parameters day-number — Specifies a weekday number.
Values 1 —7 (maximum 7 week-day-numbers)
day-name — Specifies a day by name
Values sunday, monday, tuesday, wednesday, thursday, friday, saturday (maximum 7 week-
day names)
all — Specifies all days of the week.
script
Syntax [no] script script-name [owner owner-name]
Context config>cron>script
Description This command configures the name associated with this script.
Parameters script-name — Specifies the script name.
location
Syntax [no] location file-url
Context config>cron>script
Description This command configures the location of script to be scheduled.
Parameters file-url — Specifies the location where the system writes the output of an event script’s execution.
Values file url: local-url | remote-url: 255 chars max
local-url: [cflash-id/][file-path]
remote-url: [{ftp://} login:pswd@remote-locn/][file-path]
remote-locn [ hostname | ipv4-address]