Thread: SAS C tutorial?
View Single Post
Old 28 April 2013, 23:36   #2
Leffmann

 
Join Date: Jul 2008
Location: Sweden
Posts: 2,029
Quick tutorial:

Download and install the most up to date SAS/C:
https://www.dropbox.com/s/rt23fhty36...sc658.lha?dl=1

Open your SAS/C drawer and the C drawer and run scsetup. Enter f.ex ram:hw to create a new empty project.

Open up your ram:hw drawer and click on edit and type in Hello World:
Code:
#include <stdio.h>

int main()
{
  puts("Hello, world!");
  return 0;
}
Rename the file to f.ex hello.c and save it, then click the build icon and your finished program will appear in the project drawer.

If you want to work from the command line instead then you can compile your program with:
Code:
sc hello.c LINK

Last edited by Leffmann; 21 December 2016 at 21:35.
Leffmann is offline  
 
Page generated in 0.07096 seconds with 9 queries