//WRDCNT2 job card info //* //* Copyright (c) 1996, SAS Institute Inc. //* Unpublished - All Rights Reserved //* //* //* NAME: WRDCNT2 //* //* PURPOSE: SAS/C DEBUGGER tutorial example program //* Prints out each unique word and its count. //* (pgm source is divided among two source files, ) //* //* Refer to SAS/C Debugger User's Guide and Reference, //* Third Edition, Chapter 5, pg. 121. //* //* 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 - //* WRDCNT2A //* WRDCNT2B //* //* INCLUDES: see prefix.SAMPLE.H members - //* WRDCNT2C //* //* 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 WRDCNT2A * //************************** //* //COMPLNK EXEC PROC=LC370C,PARM.C='DEBUG,SNAME(COMPA)' //C.SYSIN DD DSN=prefix.SAMPLE.C(WRDCNT2A),DISP=SHR <== VERIFY //C.SYSLIN DD DSN=your.object.library(WRDCNT2A),DISP=SHR <== VERIFY //C.H DD DSN=prefix.SAMPLE.H,DISP=SHR <== VERIFY //C.SYSDBLIB DD DSN=your.debugger.dataset,DISP=SHR <== VERIFY //* //************************** //* COMPILE WRDCNT2B * //************************** //* //COMPLNK EXEC PROC=LC370C,PARM.C='DEBUG,SNAME(COMPB)' //C.SYSIN DD DSN=prefix.SAMPLE.C(WRDCNT2B),DISP=SHR <== VERIFY //C.SYSLIN DD DSN=your.object.library(WRDCNT2B),DISP=SHR <== VERIFY //C.H DD DSN=prefix.SAMPLE.H,DISP=SHR <== VERIFY //C.SYSDBLIB DD DSN=your.debugger.dataset,DISP=SHR <== VERIFY //* //************************** //* LINK THEM TOGETHER * //************************** //* //LINKIT EXEC PROC=LC370L //LKED.SYSLMOD DD DSN=your.load.library(WRDCNT2),DISP=SHR <== VERIFY //USER DD DSN=your.object.library,DISP=SHR <== VERIFY //SYSIN DD * INCLUDE USER(WRDCNT2A) INCLUDE USER(WRDCNT2B) //* //