BookmarkSubscribeRSS Feed
KannanBaskar
Calcite | Level 5

Dear All,

I am in need help on converting SAS code to BAT file in windows SAS. Could you let me know the sample code so that it would be easier for me.

Thanks in advance,

Kannan B

4 REPLIES 4
Reeza
Super User

Do you mean calling a SAS program from BAT file, or do you mean converting SAS programs to DOS programs?

KannanBaskar
Calcite | Level 5

Hi Reeza,

Thanks for your response,

I need your help on converting SAS programs to DOS programs.

Thanks,

Kannan B.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Can you supply some of this code that you want to move into a batch file?  If it is sysexec or cmd commands then this could be moved directly to a batch file.  If you want to execute SAS code then this needs to go through the SAS system as it gets processed, compiled and then run.  If you mean that you want a DOS program which performs some actions like a SAS program, then you would need to investigate a programming language which compiles to the OS you use (e.g. C++) or some intermediate language like Java or .NET.

Reeza
Super User

I'll offer the comment that there's no gurantee that you can and it seems like a bit of a weird request. If your programs are data management, I'd expect you to be using SQL, PowerShell, Python or R, not DOS. If you have any statistical component to the programs then you'll most likely need Python or R, not DOS.

I'd suggest hiring someone to do the conversion if you really need it done. If its an extremely small program you can post it here and see what people suggest.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1133 views
  • 0 likes
  • 3 in conversation