BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Myurathan
Quartz | Level 8

Hi!

 

Is there a way to combine multiple program into one single program? I need to print the file for reference.

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Vish33
Lapis Lazuli | Level 10

Why do you want to export all 60 files and combine them, (first combine them and export the final data)how big is your each SAS program, if small files you always can include in one single sas program and you can append all data using proc append.

 

prg1 --data1

....prg60 --data60

 

you can always macrotize to make it simple if the programs are similar.

View solution in original post

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

I'm not sure what you mean? Do you have multiple sas files that you want to store in a single file?

 

Remember, they are just text files. I'm sure there are tools out there that can combine several text files into one..

Myurathan
Quartz | Level 8
Thanks @PeterClemmensen. I know. but I do not wanna individually export each file as txt and then combine. Because I have around 60 programs.
Vish33
Lapis Lazuli | Level 10

Why do you want to export all 60 files and combine them, (first combine them and export the final data)how big is your each SAS program, if small files you always can include in one single sas program and you can append all data using proc append.

 

prg1 --data1

....prg60 --data60

 

you can always macrotize to make it simple if the programs are similar.

CaseySmith
SAS Employee

You might want to look into exporting all the code in your EG project (File->Export->Export All Code...), to see if that could meet your needs.  It will export all the programs (both embedded and externally referenced) in your project to a single .sas file.

 

If your programs are stored as .sas files (rather than embedded in EG projects), I'd suggest using an operating system command to concatenate them together.  For example, the cat command if using Linux (ex. cat 1.sas 2.sas 3.sas > combined.sas)

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 4 replies
  • 3503 views
  • 0 likes
  • 4 in conversation