placeholder for copybook used in COBOL progs

This forum provides the support of Dezhi Mainframe systems. Please post your questions about logon, usage of our mainframe environment.

Moderators: sysprog, prino, sfan, steve-myers, Tim001

placeholder for copybook used in COBOL progs

Postby jinda12 » Sat 21 Jul 2012, 04:51

Hi,

Can you please help me in identifying the dataset where I can create copybooks for using it in various cobol programs.

Thanks,
Jinda
jinda12
 
Posts: 6
Joined: Fri 13 Jul 2012, 05:44

Re: placeholder for copybook used in COBOL progs

Postby monitor » Sat 21 Jul 2012, 07:07

Just create your own library using TSO; PDS or PDSE, FB, LRECL=80, and use it when you compile your program like this:

Code: Select all
//youridX  JOB NOTIFY=&SYSUID
//STEP1   EXEC IGYWCL
//         SET PGMNAME=yourpgmname                               <<-- this is the program you want to compile
//COBOL.SYSIN  DD DSN=&SYSUID..COBOL.SOURCE(&PGMNAME),DISP=SHR
//COBOL.SYSLIB DD DSN=&SYSUID..COBOL.COPYLIB,DISP=SHR            <<-- this is your copy-library
//LKED.SYSLMOD DD DSN=&SYSUID..COBOL.LOADLIB(&PGMNAME),DISP=SHR  <<-- this is your load-library
monitor
 
Posts: 23
Joined: Mon 19 Dec 2011, 15:34

Re: placeholder for copybook used in COBOL progs

Postby jinda12 » Sat 21 Jul 2012, 07:26

Thanks a lot!!!!!!!!!!!!!!!!!!
jinda12
 
Posts: 6
Joined: Fri 13 Jul 2012, 05:44


Return to Dezhi systems: Mainframe

Who is online

Users browsing this forum: No registered users and 0 guests