Você está na página 1de 2

CICS Desk Reference Programs

This document summarizes the files used for the model programs that are presented in units 5 and 6 of Murachs CICS Desk Reference. The program files and mapsets are stored in folders by program name; the subprograms are in a single folder; the copy members are in a single folder; and the data files are in a single folder. If you want to run the model programs on a mainframe, youll need to prepare your CIC system beforehand. In particular, youll need to define the CIC resources re!uired by each program through "#$, and youll need to define, create, and load the % &' files. $ne thing to note( )hen you assemble the *' mapset for the order entry program, the symbolic map thats produced will o+erwrite the programmer,generated symbolic map that we+e pro+ided. That, of course, leads to compiler errors because the data names used in the program wont match up with the symbolic map names. o be sure to -eep a bac-up copy of the programmer,generated symbolic map before you assemble the mapset. Then, you can replace the *' ,generated symbolic map with the programmer,generated one we+e pro+ided.

Program files and mapsets


CUSTMNT2 Custmnt..cbl 'ntset..bms 'ntset..cpy & customer maintenance program using traditional design; Trans,id( '/T. The *' mapset for the traditional maintenance program The symbolic map for the traditional maintenance program

CSTMNTP_CSTMNTB Cstmntp.cbl The presentation logic portion of the customer maintenance program using modular design; Trans,id( C'/T Cstmntb.cbl The business logic portion of the customer maintenance program using modular design Cmntset.bms The *' mapset for the modular maintenance program Cmntset.cpy The symbolic map for the modular maintenance program INVM NU In+menu.cbl 'enset2.bms 'enset2.cpy CUSTIN!2 Custin!..cbl In!set..bms In!set..cpy "RDR NT $rdrent.cbl $rdset2.bms

& menu program for an in+oicing application; Trans,id( '0/1 The *' mapset for the menu program The symbolic map for the menu program

& customer in!uiry program that uses browse commands; Trans,id( I/3. The *' mapset for the customer in!uiry program The symbolic map for the customer in!uiry program

&n order entry program; Trans,id( $"#2 The *' mapset for the order entry program

$rdset2.cpy S#$programs yserr.cbl 4etin+.cbl Intedit.cbl /umedit.cbl

The programmer,generated symbolic map for the order entry program

& generalized error handling program & subprogram that retrie+es the ne5t in+oice number 6for the $"#"0/T program7 & subprogram that edits integer data 6for the $"#"0/T program7 & subprogram that edits numeric decimal data 6for the $"#"0/T program7

Cop% mem$ers
&ttr.cpy 0rrparm.cpy Custmas.cpy In+oice.cpy :roduct.cpy In+ctl.cpy & copy member for attribute settings, presented in figure .,28 of Murachs CICS Desk Reference & copy member for error handling +alues 6for the 9 0"" subprogram and all programs e5cept I/%'0/17 The record description for the customer master file 6for all programs e5cept I/%'0/17 The record description for the in+oice file 6for the $"#"0/T program7 The record description for the product file 6for the $"#"0/T program7 The record description for the in+oice control file 6for the $"#"0/T program and the 40TI/% subprogram7

Data files
Custmas.dat In+oice.dat :roduct.dat In+ctl.dat #ata for the customer master file #ata for the in+oice file #ata for the product file & single record for the in+oice control file

Você também pode gostar