//WRDCNT1 job card info //* //* Copyright (c) 1996, SAS Institute Inc. //* Unpublished - All Rights Reserved //* //* //* NAME: WRDCNT1 //* //* PURPOSE: SAS/C DEBUGGER tutorial example program //* Simple word counting program. This program provides //* three types of statistical output on any given file(s) //* 1. total words //* 2. average length //* 3. median length //* //* Refer to SAS/C Debugger User's Guide and Reference, //* Third Edition, Chapter 4. //* //* INPUT/OUTPUT: ddn:DATAIN/stdout //* //* FUNCTION: Compile and link source files listed below. //* make sure to use the =DEBUG compile option //* //* SOURCE: see prefix.SAMPLE.C members - //* WRDCNT1 //* //* MISC NOTES: You must specify an input file with the DDname of //* DATAIN. //* //* NOTE: Verify the statements indicated by the "<== VERIFY" //* have been customized for the local environment. //**************************************************************** //* //************************** //* COMPILE and LINK * //************************** //* //COMPLNK EXEC PROC=LC370CL,PARM.C='DEBUG,SNAME(WRDCNT1)' //C.SYSIN DD DSN=prefix.SAMPLE.C(WRDCNT1),DISP=SHR <== VERIFY //C.SYSLIN DD DSN=your.object.library(WRDCNT1),DISP=SHR <== VERIFY //C.SYSDBLIB DD DSN=your.debugger.dataset,DISP=SHR <== VERIFY //LKED.SYSLMOD DD DSN=your.load.library(WRDCNT1),DISP=SHR <== VERIFY //* //