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

CICS Statements in COBOL CopyBook


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Fri Mar 11, 2005 3:03 pm
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: 1210
Location: India

PostPosted: Sat Mar 12, 2005 2:46 am
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: 191
Location: hyderabad

PostPosted: Mon Mar 14, 2005 10:37 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top