IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need COBOL COPY Help in MVS Environment


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
JimDooey

New User


Joined: 16 Apr 2020
Posts: 3
Location: United States

PostPosted: Tue Jun 13, 2023 7:06 am
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Tue Jun 13, 2023 4:57 pm
Reply with quote

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
View user's profile Send private message
JimDooey

New User


Joined: 16 Apr 2020
Posts: 3
Location: United States

PostPosted: Wed Jun 14, 2023 5:45 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Wed Jun 14, 2023 10:08 am
Reply with quote

you might find more useful help here

groups.io/g/H390-MVS/messages
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 14, 2023 6:13 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Copy only TEXT or String from a record SYNCSORT 4
No new posts omegamon for cics -UNSUPPORTED ENVIRO... CICS 2
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
Search our Forums:

Back to Top