To compile the SDB modules you need to have a logical device C: assigned. Something like: .ASSIGN PD0 C This device must contain STDIO.H and CTYPE.H. Also you must have CC.SAV, AS.SAV, CLIB.OBJ, and SUPORT.OBJ on SY: All of the source files being compiled should be on DK: To compile all of the sources: .@SDBCMP This should create SDB*.OBJ files for each of the SDB*.C files. It also creates SDB*.S files which contain the assembler output of the compiler. The SDB*.S files can be deleted. To create an object library to link with applications programs: .@SDBLIB This creates an object library called SDBLIB.OBJ. To link the resulting object files: .@SDBLNK This should create a copy of SDB.SAV which is the interactive query facility. At this point all of the .OBJ files can be deleted. To link an application program with the SDB routines: .LINK/BOTTOM:3000. application,SDBLIB,SY:SUPORT,SY:CLIB You may want to try different values for the BOTTOM qualifier. I set it to 3000 just to be safe, but I'm sure that its possible to use a smaller value.