You can use the CC or CXX REXX EXECs to compile source code that is stored in z/OS® UNIX files and directories. Use the following syntax when specifying a z/OS UNIX file or directory as your input or output file:
>>-+----------+--+--------------+------------------------------>< '-+---+--/-' | .-/--------. | '-.-' | V | | '---pathname-+-'
CC /u/david/src
CC /u/david/db\ 1.c
CC file\"one
CXX ./test/hello.c
CC /u/david/test/hello.c
CXX test/hello.c
CC ///hello.c
CC ../test/hello.c
CXX hello.c
CC //hello.c
When z/OS UNIX file names contain the special characters blank, backslash, and double quotation mark, you must precede the special character with a backslash(\).
def(errno=\\(*__errno\\(\\)\\))
When you use REXX EXECs supplied by IBM®, you can override the default compiler options by specifying the options directly on the invocation line after an open left parenthesis (.
CXX 'STUDENT.GRADES.CXX'
( LIST,TEST,
LSEARCH(MASTER.STUDENT,COURSE.TEACHER),
SEARCH(VGM9.FINANCE,SYSABC.REPORTS),
OBJ('GRADUATE.GRADES.OBJ(REPORT)')
See Summary of compiler options for more information on compiler options.