BookmarkSubscribeRSS Feed
Jane7476
Calcite | Level 5

Hey,

My goal is to have a script that can

- Check the date a file has been created in a network folder 'X'

- If it is the latest file then copy it over to another network folder 'Y'. Latest file can be compared using system dates or checking file names in folders 'X' and 'Y'

What I have:

I have EG 4.2 installed on a server that I am connecting via a UNIX account. In terms of permissions I can import and export files from my computer.

Question:

- Does SAS EG support such a task?

I have looked online and there are non sas scripts and softwares that do that but was wondering if SAS can do that for me.

Have a nice bank holiday weekend.

Thanks

Jai

1 REPLY 1
Reeza
Super User

Depends on your settings, if you're allowed to pass system commands through it's relatively easy.

This is a better job for a system commands but can be done via SAS.

Steps

1. Process to list all files and determine the latest file.  You can find scripts for that all across the forums and web.

2. You can copy using FCOPY or X Copy. 

Making Lists - sasCommunity

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 857 views
  • 0 likes
  • 2 in conversation