Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CICS Statements in COBOL CopyBook

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Fri Mar 11, 2005 3:03 pm    Post subject: CICS Statements in COBOL CopyBook
Reply with quote

Hi all

i have doubt in CICS

how to use a CICS copybook,
ie if my COPY book contains CICS statements


As Copy will be at compile time,include at Precompile time

Thanks
Siva
Back to top
View user's profile Send private message

mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1203
Location: India

PostPosted: Sat Mar 12, 2005 2:46 am    Post subject: Re
Reply with quote

Quote:
how to use a CICS copybook


you can use COBOL Copy Statement or DB2 INCLUDE Statement to include your CICS CopyBooks like BMS Symbolic Maps.

Quote:
if my COPY book contains CICS statements

Good Question!

Yes, It's possible only if you have an INTEGERATED CICS TRANSLATOR to perform compilation and translation in one step.

The more recent COBOL and PL/I compilers from IBM provide an Integrated Translator component for embedded EXEC CICS statements. Previously these EXEC CICS statements were translated into native COBOL or PL/I in a separate step prior to the compilation step. Now you can do both translate and compile in one step.

It means no longer will you see different line numbers for the translate step and compile step. Debugging is thus improved, especially since the EXEC CICS is treated as a logical unit (single statement) and not as a series of cryptic COBOL or PL/I code.

Quote:
It means you can now have EXEC CICS (and EXEC SQL, EXEC DL/I,...) in a copybook. Previously, since copybooks were not processed until after any translation, you had to forego the use of EXEC CICS statements in copybooks or, perhaps worse, have copybooks contain already translated statements.


The CICS Transaction Server V2.2 supports the integrated translator
component which is present in the following products:

- IBM Enterprise COBOL for OS/390 and z/OS V3
- IBM Enterprise PL/I for OS/390 and z/OS, V3
- IBM COBOL for OS/390 and VM, V2.2

Use the CICS compiler option to enable the integrated CICS translator and to specify CICS suboptions. If you specify the NOCICS option, the compiler diagnoses and discards any CICS statements that it finds in your source program. If you have already used the separate CICS translator, you must use the NOCICS compiler option.

Check your site for Integrated Translator. So, If you don't have this facility:

1. First Translate your COPY BOOK separately, before including it into your program.

2. Or Try a Precompiler before translation. But you must use INCLUDE statement.

3. Or use ISRSCAN or ISRLEMX Programs to copy the CICS statements using JCL.

4. Or try to compile using Endevor.
Back to top
View user's profile Send private message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Mon Mar 14, 2005 10:37 am    Post subject: Re: CICS Statements in COBOL CopyBook
Reply with quote

Hi mcmillan


Thanks for the wondefull answer



bye
siva
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us