SASC SAMPLE C Last Updated: 10MAR97 ===================== Copyright (c) 1996, SAS Institute Inc. Unpublished - All Rights Reserved This member contains a list and description of sample C programs distributed with your SAS/C product. File: - Description: -------------------------------------------------------------------------------- APPSEND/ - Demonstrates the SAS/C APPC/VM support. APPSERV - Demonstrates the SAS/C APPC/VM support. BARCHART - Uses GDDM to create and display a bar chart graph. BSDSTR - Collection of BSD String manipulation utilities. These utilities are provided soley for portability of BSD applications, and are not recommended for new applications BTREE - SAS/C DEBUGGER example program, which generates a binary tree. CALENDAR - Implements a daily calendar to illustrate use of SAS/C FSSL. CICCLNT - TCPIP client program, intended for use with the other CIC* samples within the prefix.SAMPLE.C library CICLISTN - TCPIP CICS listener program, when enabled allows a remote client to start a CICS transaction. CICLQUIT - CICS program that may be used to terminate CICLISTN. CICTSERV - TCPIP CICS server, started by CICLISTN, and sends data to a remote client, CICCLNT. CMSMENU - Demonstrate use of the SAS/C FSSL to develop menus, submenus, help screens, and error displays. DESCRIBE - Demonstrate use of the SAS/C FSSL, by allowing a dataset name to be entered and miscellaneous information about the dataset returned. DYNALLOC - Demonstrate MVS dynamic allocation, SVC 99, facilities from within a C program, using the osdynalloc() function. ECBMAIN - Multitasking sample using SAS/C features such as: ATTACH(), ecbpause(), selectecb(), and WAIT1(). ECBTASK - Subtask that is ATTACHed, by the ECBMAIN sample. FINGER - Sample TCPIP Finger client, demonstrating typical socket functions. This is a limited finger client. FSSLALL - All-resident pgm displaying "Hello World!" using SAS/C FSSL. FTOC - Simple C program from page 8 of the Kernighan and Ritchie text. Output is a table of temperatures on both the Fahrenheit and Celsius scales. GETHENT - TCPIP sample which demonstrates various resolver functions, including: sethostent(), gethostent(), and endhostent(), and processing data in the ETC.HOSTS file. GETHID - TCPIP sample demonstrating the function, gethostid(), which returns the 32-bit IP address for the local host. GETHNM - TCPIP sample demonstrating the function, gethostname() which returns the hostname, as defined on the local host. GETSENT - TCPIP sample which demonstrates processing information in the ETC.SERVICES file. GHBNM - TCPIP sample demonstrating the resolver function gethostbyname(), which returns a structure containing the an IP address that correlates to a specific hostname. Refer to the RESINIT sample for tracing gethostbyname(). GSBNM - TCPIP sample which reads the ETC.SERVICES file, and returns a structure, that correlates to a specific "service" and "protocol". HI2ME - Simple SAS/C DEBUGGER example program. IMSC - Demonstrate calls to IMS and to read all of the checking account information for all customers havin a particular ZIP code and print the information to STDOUT. This example is a simple DL/I batch program. ITOA - Sample C-main to convert an integer to an equivalent string. May be easily modified to perform an itoa() function. ISPFEXIT - ISFP user exit, part of ISPFEXIT sample program. ISPFUSER - C main part of the the ISPFEXIT sample program. JOBDDN - Lists all DDnames and datasets associated with an MVS job. This example uses the TIOT, retrieved by the TIOTLIST member. LOADLIBS - Demonstrates how to access members of a CMS loadlib and how to list the members of a CMS loadlib. L$UFSIO - Sample data stream exit for SAS/C FSSL. This sample is referenced in the the SAS/C FSSL User's Guide. L$CLDBEX - Sample user-added locale. This sample referenced in the SAS/C Library Reference Vol 2 L$CLSAMP - Sample user-added locale. This sample referenced in the SAS/C Library Reference Vol 2 ORASASC - Demonstrates using the ORACLE Pro*C Precompiler with SAS/C. OSMENU - Demonstrate use of the SAS/C FSSL to develop menus, submenus, help screens, and error displays. PDSREAD - Demonstrates how to read and deblock a PDS directory. P2UPM - C main which controls unloading a PDS in a format suitable for input to IEBUPDTE. P2UPSK - Skiplist creation and maintenance functions for P2UPM P2UPSKCM - Compare functions called by P2UPSK P2UREAD - Functions to read and create a list of members from a PDS directory, used by P2UPM. PI4 - SAS/C DEBUGGER example program This program computes pi/4 using a slowly converging infinite series for atan(1.0). RECEIVER - CMS IUCV sample, along with SENDER, demonstrate a simple IUCV interface. RESINIT - TCPIP sample which demonstrates the gethostbyname() function. Additionally, RESINIT enables resolver tracing, which allows one to observe the interaction between the resolver and remote nameserver. RXLOCFN - Demonstrates the CMS REXX function package interface. SASCALL - Traditional CICS FILEA sample program. See Appendix 1, Second Edition, of the SAS/C CICS User's Guide for a detailed explanation. SASCAMA - See description of SASCALL above. SASCAMB - See description of SASCALL above. SASCAMC - See description of SASCALL above. SASCBRW - See description of SASCALL above. SASCMNU - See description of SASCALL above. SASCSAMP - CICS tutorial sample program. See Chapter 4, Second Edition, of the SAS/C CICS User's Guide for a detailed explanation. SENDER - CMS IUCV sample, along with RECEIVER, demonstrate a simple IUCV interface. SPFLOAD - Demonstrate how to load ISPLINK using MVS macro LOAD SPFLOADM - Demonstrate how to load ISPLINK using SAS/C function LOADM() STAT - Demonstrates the CMSSTAT function on CMS. SVC99 - Sample sub-routines used by SVC99C to invoke SVC 99 calls from within a SAS/C application. SVC99C - Sample C main which calls sub-functions within SVC99, to use MVS SVC 99 dynamic allocation supervisor calls. SUBCMD - Demonstrates the subcommand interface for use with CMS EXECs and TSO CLISTS. SYNAD - Sample BASM OS low-level I/O routine, which demonstrates calling a synad exit when an I/O error occurs accessing a dataset. TCPCLNT - TCPIP sample client program, to be used with the SAS/C samples TCPLISTN and TCPTSERV. This sample is platform independent. TCPLISTN - TCPIP sample listener program. TCPLISTN will ATTACH a child task, TCPTSERV, and issue a givesocket(). TCPOEC - TCPIP client program that connects to TCPOED, and sends and receives data to/from the TCPOED program. TCPOEC includes directions for compiling and executing a tcpip program under the OE shell. TCPOED - TCPIP server/daemon that uses Open Edition(OE) sockets (integrated sockets), and OE services such as fork(), and pipes, to handle remote client connections. The child process receives and sends data to the remote client. TCPTSERV - TCPIP sample server, attached by TCPLISTN. TCPTSERV will issue a takesocket(), and send data back to a client. TELBOOK - C main and functions support the TELBOOK sample program. TIOTLIST - See JOBDDN. TRYRACF - An example of issuing a MVS RACF call from a C program. UPDBLD - Function which reads the contents of members in a PDS directory and creates an IEBUPDTE formatted output file. Used by P2UPM. WDHYPER - Demonstrates how a hypertext window can be incorporated into a windowing application. WDSAMPLE - Demonstrates the use of the SAS/C Windowing interface functions with the use of the SAS/C FSSL. WRDCNT1 - SAS/C DEBUGGER tutorial example program Simple word counting program. WRDCNT2A - SAS/C DEBUGGER tutorial example program Prints out each unique word and its count. (pgm source is divided among two source files, ) (WRDCNT2A , WRDCNT2B) WRDCNT2B - SAS/C DEBUGGER tutorial example program Prints out each unique word and its count. (pgm source is divided among two source files, ) (WRDCNT2A , WRDCNT2B)