View previous topic :: View next topic
|
Author |
Message |
JimDooey
New User
Joined: 16 Apr 2020 Posts: 3 Location: United States
|
|
|
|
I am well versed in using the COPY statement for COBOL programs in the VSE environment (DOS/VSE, VSE/ESA), however I am learning the ways of MVS using an OS/390 system. I have several questions:
1. Is there a "default" library that contain COPYBOOK entries? It seems I need to define a SYSLIB to access it, correct?
Note: I noticed CICS maps are stored in CICSTS13.CICS.SDFHMAC and CICSTS13.CICS.SDFHCOB contains COBOL copybooks.
2. If not, I suppose I need to create one. What is the recommended naming convention and location? I assume I need to use a HLQ format to define it.
3. Can/should I use the same library for both batch and CICS COBOL programs for my applications? |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2141 Location: USA
|
|
|
|
Only your company's System Administration can answer your questions.
Except this one:
No copybook is available to COBOL compiler unless it is listed in //SYSLIB concatenation in compile step. The only "default" library may be specified in //SYSLIB DD of your system's JCL procedure used for compilation. In 99% of companies these stuff is customized for their business needs. |
|
Back to top |
|
|
JimDooey
New User
Joined: 16 Apr 2020 Posts: 3 Location: United States
|
|
|
|
I am a hobbyist working at home from my PC. There is no company nor system administrator. If you be so kind as to answer my questions I would be grateful.
Regarding the MVS environment, would the answers apply to TK4- and MVS/ESA as well?
Thanks in advance. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
1. Is there a "default" library that contain COPYBOOK entries? It seems I need to define a SYSLIB to access it, correct?
Note: I noticed CICS maps are stored in CICSTS13.CICS.SDFHMAC and CICSTS13.CICS.SDFHCOB contains COBOL copybooks.
2. If not, I suppose I need to create one. What is the recommended naming convention and location? I assume I need to use a HLQ format to define it.
3. Can/should I use the same library for both batch and CICS COBOL programs for my applications? |
1. There is no default library for copy books. COBOl looks at the SYSLIB DD statement and that is the copy book library (or libraries if there is concatenated data sets).
2. There is no standard name nor location -- you can define the copy book library wherever makes sense to you using whatever name you want. I recommend using something that you can find later.
3. Using one library for batch and CICS is more a matter of personal preference. The system doesn't really care -- as long as there are no duplicate member names. Since the CICS run time does not use the copy book library, there are no sharing issues. |
|
Back to top |
|
|
|