BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ragivenk189
Calcite | Level 5
  1. Go to the desired folder under Unix shell

   

  1. Go to the directory on the UNIX where your sas program resides.\

  1. at the command prompt: type at 2am tomorrow (Hit enter)

   

  1. It will show at>

  1. at> nohup sas test.sas(hit enter)

   

The nohup utility can be used when it is known that command will take a long time to run and the user wants to logout of the terminal;

By default, when a shell exits, the system sends its chil- dren SIGHUP signals, which by default cause them to be killed.

However, with nohup, background jobs will ignore SIGHUP and continue running, if their invocation is preceded by the nohup command or if the process programmati- cally has chosen to ignore SIGHUP.

  1. at> press <Ctrl>+<d> (to save this)

  1. You can check if it has been scheduled, by typing:

   

  1. at -l

  1. It will list something like this

   

  1. job 107225020.a at Friday Oct 26th 2am

  1. If you want to remove the above job from the queue, type:

   

  1. at -r 107225020.a

  1. This command deletes the scheduled job.

   

  1. If you like to submit a job at a specified date you can type:

  1. at 0815am nov 02

   

  1. Here the job will run on Nov 2nd at 8.15am
1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

We've captured this as a tip -- another community member nominated it.  Check it out in the SAS Communities Library.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

View solution in original post

2 REPLIES 2
nissant
Calcite | Level 5

Hi ,

 

I tried the following commands in putty .But I did not see any of the outputs generated for that particular date and time .I used the following command at> nohup sasb test.sas .We use sasb command to run the sas programs .Could you let me know what has went wrong in my case ?

ChrisHemedinger
Community Manager

We've captured this as a tip -- another community member nominated it.  Check it out in the SAS Communities Library.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 13763 views
  • 0 likes
  • 3 in conversation