Chapter Contents |
Previous |
Next |
Introduction |
#include <stdio.h> main() { printf("Hello World!\n"); }
TSO Quick-Start |
Use this procedure to compile, link, and run a simple C program from the TSO environment.
LC370 QSTART(HELLO)
The object code output is stored in userid.QSTART.OBJ(HELLO).
COOL QSTART(HELLO)
The load module is stored in userid.QSTART.LOAD(HELLO).
CALL QSTART(HELLO)
The program executes and "Hello world!" is displayed.
CMS Quick-Start |
Use this procedure to compile, link, and run a simple C program from the CMS environment.
LC370 HELLO
The object code output is stored in HELLO TEXT.
COOL HELLO (GENMOD HELLO
The load module is stored in HELLO MODULE.
HELLO
The program executes and "Hello world!" is displayed.
USS Quick-Start |
Use this procedure to compile, link, and run a simple C program from the USS shell.
hello.c
.
Note:
In order to invoke the
sascc370
command, you must include
the directory where SAS/C was installed
in your PATH environment variable. Probably, your site will define PATH appropriately
for you when you start up the shell. If your site does not do this, contact
your SAS Software Representative for C compiler products to obtain the correct
directory name and add it to your PATH.
hello.c
:
sascc370 -o hello hello.c
The object code output is stored in
hello.o
, and the executable output is stored in
hello
.
hello
program:
hello
The program executes and "Hello world!" is displayed.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.