DATA Step, Macro, Functions and more

Is that possible for SAS using genmax to generate generation file for external file?

Reply
Super Contributor
Posts: 271

Is that possible for SAS using genmax to generate generation file for external file?

[ Edited ]
 

Hello,

 

Is that possible to generate generation file for external file(not sas dataset)??

 

libname mylib "c:\temp\";
data mylib.a12321 (genmax=10);/*this works for SAS dataset*/ x=1; output; run; filename gen_file "c:\temp\a_generation_file";/*this is external file,need generation file like sas dataset above */ data _null_; time=time(); file gen_file(genmax=10);/*the genmax needed here,not works so far*/ put time; format time time9.; run;  

Thanks!

Super User
Posts: 10,592

Re: Is that possible for SAS using genmax to generate generation file for external file?

Posted in reply to GeorgeSAS

No, but you can write SAS code that determines a new name within a sequence, so you can build the generation files yourself.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Super Contributor
Posts: 271

Re: Is that possible for SAS using genmax to generate generation file for external file?

Posted in reply to KurtBremser

Thank you!

Ask a Question
Discussion stats
  • 2 replies
  • 89 views
  • 1 like
  • 2 in conversation