How to rename a text file with SAS in Windows XP?

I have a process in SAS that creates .csv. I have another process in Python that waits until a file exists, and then something with that file. I want to make sure that the Python process does not start doing its job until SAS has finished writing the file.

I thought that I just got SAS.csv, and then rename the file after it is completed. Can I rename to SAS? Then the python process could just wait until the file is renamed.

EDIT: I accidentally posted this question twice, and then accidentally deleted both versions. Sorry about that.

+3
source share
5 answers

, , , script, SAS, Python script, SAS . , .

+2

9.2 SAS , , .

+1

SAS, .csv , . , csv, :

data _null_;
file './ouptut_file.csv' dlm=',';
set dataset_name;
put var1 var2;
run;

SAS, csv , .

0

.

python script .csv? , - ?

  • .csv, , , .txt, x ( OS) , @cmjohns.

  • : .csv , , python. , .

  • python script .csv, 1.

  • "flag" python, , sas .csv.

, , @jgunnink.

0

How about a viewer watching a single small file instead of a large CSV file? This will be recorded in a single SAS write operation and will reduce the risk of starting a read before writing is performed.

 data _null_;
   file 'bigfile.csv' dsd ;
   set bigdata;
   put (_all_) (+0);
 run;
 data _null_;
   file 'bigfile.txt' ;
   put 'bigfile.csv written';
 run;
0
source

Source: https://habr.com/ru/post/1774845/


All Articles